Skip to content

Commit e52c1aa

Browse files
author
MahalakshmiPFW
committed
fix: make contact section visible and improve styling
1 parent 1312048 commit e52c1aa

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

src/App.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ body[data-theme="dark"] {
133133
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
134134
}
135135

136+
/* Contact section specific styles */
137+
.contact-section {
138+
min-height: 80vh;
139+
padding: 4rem 0;
140+
background: linear-gradient(135deg, var(--bg) 0%, var(--secondary-bg) 100%);
141+
}
142+
143+
.contact-container {
144+
background: linear-gradient(135deg, var(--component-bg) 0%, var(--secondary-bg) 100%);
145+
border: 1px solid var(--border-color);
146+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
147+
}
148+
136149
.hero-section {
137150
margin-top: 120px;
138151
}

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ function App() {
6262
</Suspense>
6363
</LazySection>
6464
<DecorativeElement type="corner" position="right" />
65-
<LazySection>
66-
<Suspense fallback={null}>
65+
<LazySection rootMargin="100px">
66+
<Suspense fallback={<div className="text-center py-5">Loading contact section...</div>}>
6767
<Contact />
6868
</Suspense>
6969
</LazySection>

src/components/Contact.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ const Contact = () => {
4646
return (
4747
<section id="contact" className="contact-section py-5">
4848
<Container>
49+
<motion.div
50+
className="text-center mb-5"
51+
initial={{ opacity: 0, y: 20 }}
52+
whileInView={{ opacity: 1, y: 0 }}
53+
transition={{ duration: 0.6 }}
54+
viewport={{ once: true }}
55+
>
56+
<h2 className="display-5 fw-bold mb-3">Get In Touch</h2>
57+
<p className="lead text-secondary">Ready to collaborate? Let's start a conversation!</p>
58+
</motion.div>
4959
<motion.div
5060
className="contact-container rounded-4 p-4 p-md-5"
5161
initial={{ opacity: 0, y: 40 }}

0 commit comments

Comments
 (0)