Skip to content

Commit 0699736

Browse files
committed
fix: smaller screen size format
1 parent 0ef4143 commit 0699736

2 files changed

Lines changed: 30 additions & 11 deletions

File tree

app/contact/components/YourDetails.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export default function YourDetails() {
1010

1111
{/* Email Input */}
1212
<div className="mb-4">
13-
<label htmlFor="email" className="block mb-2 font-semibold">
13+
<label
14+
htmlFor="email"
15+
className="block mb-2 font-semibold text-web-body-font "
16+
>
1417
Email
1518
</label>
1619
<Input
@@ -24,7 +27,10 @@ export default function YourDetails() {
2427

2528
{/* Subject Input */}
2629
<div className="mb-4">
27-
<label htmlFor="subject" className="block mb-2 font-semibold">
30+
<label
31+
htmlFor="subject"
32+
className="block mb-2 font-semibold text-web-body-font "
33+
>
2834
Subject
2935
</label>
3036
<Input
@@ -38,19 +44,25 @@ export default function YourDetails() {
3844

3945
{/* Message Textarea */}
4046
<div className="mb-4">
41-
<label htmlFor="message" className="block mb-2 font-semibold">
47+
<label
48+
htmlFor="message"
49+
className="block mb-2 font-semibold text-web-body-font "
50+
>
4251
Message
4352
</label>
4453
<textarea
4554
id="message"
4655
placeholder="Your Message"
47-
className="w-full p-2 bg-transparent rounded text-base focus:outline-none caret-white"
56+
className="w-full p-2 bg-transparent rounded text-base focus:outline-none caret-white text-web-body-font "
4857
rows={4}
4958
style={{ resize: 'none', maxHeight: '150px' }}
5059
/>
5160
</div>
5261

53-
<Button variant="footer" className="max-w-[148px] text-dark-green">
62+
<Button
63+
variant="footer"
64+
className="max-w-[148px] text-dark-green text-web-body-font "
65+
>
5466
Send
5567
</Button>
5668
</div>

app/contact/page.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,30 +88,37 @@ export default function ContactPage() {
8888
</svg>
8989
<Container
9090
className={`relative min-h-screen justify-center items-center flex gap-[46px] ${
91-
width < 1024 ? 'flex-col' : 'flex-row'
91+
width < 1024 ? 'flex-col mt-[100px]' : 'flex-row'
9292
}`}
9393
>
9494
<div
9595
className={`flex flex-col gap-[80px] items-start justify-start ${
96-
width < 1024 ? 'text-center w-[531px] items-center' : ''
96+
width < 1024
97+
? 'text-center justify-center sw-[531px] items-center'
98+
: ''
9799
}`}
98100
>
99-
<div className="flex flex-col gap-[20px] text-white">
101+
<div className="flex flex-col gap-[20px] text-white sm:items-center lg:items-start">
100102
<h1 className="text-web-title-font font-bold">Contact Us</h1>
101-
<p className="text-web-body-font">
103+
<p className="text-web-body-font sm:w-[300px]">
102104
Get in touch with us for any questions, concerns, or to learn more
103105
about our organization and initiatives
104106
</p>
105107
</div>
106-
<div className="flex gap-[28px]">
108+
<div
109+
className={`flex gap-[28px] ${
110+
width < 1024 ? 'flex-col items-center gap-[10px]' : 'flex-row'
111+
}`}
112+
>
107113
<Image
108114
src={'/assets/icons/email-us.svg'}
109115
width={63}
110116
height={63}
111117
alt=""
118+
className=""
112119
/>
113120
<div className="flex flex-col text-white">
114-
<p className="text-[#FFC201] leading-[49px] text-web-medium-font font-bold text-left">
121+
<p className="text-[#FFC201] leading-[49px] text-web-medium-font font-bold">
115122
E-mail us
116123
</p>
117124
<p className="text-web-body-font">durianpy.davao@gmail.com</p>

0 commit comments

Comments
 (0)