Skip to content

Commit aeb4394

Browse files
committed
Refactor forms.module.css styles to Tailwind styles in forms
1 parent a7768c8 commit aeb4394

5 files changed

Lines changed: 19 additions & 34 deletions

File tree

‎src/components/Forms/Contact/index.astro‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import GDPRConsent from '@components/Consent/Checkbox/index.astro'
33
import Confetti from '@components/Animations/Confetti/index.astro'
4-
import styles from '../forms.module.css'
54
import './uppy-audio.css'
65
import './uppy-core.css'
76
import './uppy-dashboard.css'
@@ -16,7 +15,7 @@ import './validation.css'
1615
<slot name="contact-form-header" />
1716

1817
<form
19-
class:list={[styles.formScope, 'space-y-8']}
18+
class="space-y-8"
2019
id="contactForm"
2120
method="post"
2221
enctype="multipart/form-data"
@@ -40,7 +39,7 @@ import './validation.css'
4039

4140
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
4241
<div class="space-y-2">
43-
<label for="name" class="block"
42+
<label for="name" class="block text-content-active text-sm font-medium"
4443
>Full Name *</label
4544
>
4645
<input
@@ -65,7 +64,7 @@ import './validation.css'
6564
</div>
6665

6766
<div class="space-y-2">
68-
<label for="email" class="block"
67+
<label for="email" class="block text-content-active text-sm font-medium"
6968
>Email Address *</label
7069
>
7170
<input
@@ -90,7 +89,7 @@ import './validation.css'
9089

9190
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
9291
<div class="space-y-2">
93-
<label for="company" class="block"
92+
<label for="company" class="block text-content-active text-sm font-medium"
9493
>Company Name</label
9594
>
9695
<input
@@ -104,7 +103,7 @@ import './validation.css'
104103
</div>
105104

106105
<div class="space-y-2">
107-
<label for="phone" class="block"
106+
<label for="phone" class="block text-content-active text-sm font-medium"
108107
>Phone Number</label
109108
>
110109
<input
@@ -127,7 +126,7 @@ import './validation.css'
127126

128127
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
129128
<div class="space-y-2">
130-
<label for="project_type" class="block"
129+
<label for="project_type" class="block text-content-active text-sm font-medium"
131130
>Project Type</label
132131
>
133132
<select
@@ -149,7 +148,7 @@ import './validation.css'
149148
</div>
150149

151150
<div class="space-y-2">
152-
<label for="budget" class="block"
151+
<label for="budget" class="block text-content-active text-sm font-medium"
153152
>Budget Range *</label
154153
>
155154
<select
@@ -168,7 +167,7 @@ import './validation.css'
168167
</div>
169168

170169
<div class="space-y-2">
171-
<label for="timeline" class="block"
170+
<label for="timeline" class="block text-content-active text-sm font-medium"
172171
>Project Timeline *</label
173172
>
174173
<select
@@ -187,7 +186,7 @@ import './validation.css'
187186
</div>
188187

189188
<div class="space-y-2">
190-
<label for="message" class="block"
189+
<label for="message" class="block text-content-active text-sm font-medium"
191190
>Project Description *</label
192191
>
193192
<textarea

‎src/components/Forms/Download/index.astro‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// DownloadForm.astro - Gated form for download resources
33
import Confetti from '@components/Animations/Confetti/index.astro'
44
import GDPRConsent from '@components/Consent/Checkbox/index.astro'
5-
import styles from '../forms.module.css'
65
76
export interface Props {
87
title: string
@@ -29,15 +28,15 @@ const downloadUrl = `/downloads/${fileName}`
2928
</div>
3029

3130
<form
32-
class:list={[styles.formScope, 'space-y-4']}
31+
class="space-y-4"
3332
id="downloadForm"
3433
method="post"
3534
data-download-url={downloadUrl}
3635
>
3736
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
3837
<!-- First Name -->
3938
<div class="space-y-2">
40-
<label for="firstName" class="block">
39+
<label for="firstName" class="block text-content-active text-sm font-medium">
4140
First Name <span class="text-red-500">*</span>
4241
</label>
4342
<input
@@ -55,7 +54,7 @@ const downloadUrl = `/downloads/${fileName}`
5554

5655
<!-- Last Name -->
5756
<div class="space-y-2">
58-
<label for="lastName" class="block">
57+
<label for="lastName" class="block text-content-active text-sm font-medium">
5958
Last Name <span class="text-red-500">*</span>
6059
</label>
6160
<input
@@ -74,7 +73,7 @@ const downloadUrl = `/downloads/${fileName}`
7473

7574
<!-- Work Email -->
7675
<div class="space-y-2">
77-
<label for="workEmail" class="block">
76+
<label for="workEmail" class="block text-content-active text-sm font-medium">
7877
Work Email <span class="text-red-500">*</span>
7978
</label>
8079
<input
@@ -91,7 +90,7 @@ const downloadUrl = `/downloads/${fileName}`
9190
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
9291
<!-- Job Title -->
9392
<div class="space-y-2">
94-
<label for="jobTitle" class="block">
93+
<label for="jobTitle" class="block text-content-active text-sm font-medium">
9594
Job Title <span class="text-red-500">*</span>
9695
</label>
9796
<input
@@ -108,7 +107,7 @@ const downloadUrl = `/downloads/${fileName}`
108107

109108
<!-- Company Name -->
110109
<div class="space-y-2">
111-
<label for="companyName" class="block">
110+
<label for="companyName" class="block text-content-active text-sm font-medium">
112111
Company Name <span class="text-red-500">*</span>
113112
</label>
114113
<input

‎src/components/Forms/Privacy/index.astro‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { statusMessages } from '@components/Forms/Privacy/server'
3-
import styles from '../forms.module.css'
43
54
export interface Props {
65
status?: string | null
@@ -55,9 +54,9 @@ const statusMessage = status ? statusMessages[status] : undefined
5554
Request a copy of personal data we have about you, including consent records and newsletter subscriptions.
5655
</p>
5756

58-
<form id="access-form" class:list={[styles.formScope, 'mt-6 space-y-4']} novalidate>
57+
<form id="access-form" class="mt-6 space-y-4" novalidate>
5958
<div class="space-y-2">
60-
<label for="access-email" class="block">Email Address</label>
59+
<label for="access-email" class="block text-content-active text-sm font-medium">Email Address</label>
6160
<input
6261
type="email"
6362
id="access-email"
@@ -96,9 +95,9 @@ const statusMessage = status ? statusMessages[status] : undefined
9695
This action cannot be undone.
9796
</div>
9897

99-
<form id="delete-form" class:list={[styles.formScope, 'mt-6 space-y-4']} novalidate>
98+
<form id="delete-form" class="mt-6 space-y-4" novalidate>
10099
<div class="space-y-2">
101-
<label for="delete-email" class="block">Email Address</label>
100+
<label for="delete-email" class="block text-content-active text-sm font-medium">Email Address</label>
102101
<input
103102
type="email"
104103
id="delete-email"

‎src/components/Forms/forms.module.css‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎src/components/Forms/forms.module.css.d.ts‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)