Skip to content

Commit 582c2b8

Browse files
actions-userclaude
andcommitted
ui: responsive tweaks for homepage hero height and index sections
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8bd3fb0 commit 582c2b8

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Home() {
3737

3838
return (
3939
<div className="font-[family-name:var(--font-geist-sans)]">
40-
<div className="h-[450px] md:h-[550px] relative z-10">
40+
<div className="h-[400px] md:h-[550px] relative z-10">
4141
<div className="preload-images"></div>
4242
<HeroCarousel />
4343
</div>

src/components/index/accordion-tabs.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,20 @@ const AccordionTabsSection: React.FC = () => {
7272
const activeTabData = tabs.find((t) => t.id === activeTab) || tabs[0]
7373

7474
return (
75-
<section className={`${raleway.className} bg-gray-100 py-4 md:py-6`}>
75+
<section className={`${raleway.className} bg-gray-100 py-4 md:py-6 pt-2`}>
7676
<div className="container mx-auto py-4 px-8 md:px-20 lg:px-32">
7777
<h1
78-
className={`mb-2 text-[24px] text-[#333] font-normal tracking-normal ${raleway.className}`}
78+
className={`mb-2 text-[20px] md:text-[24px] text-[#333] font-normal tracking-normal ${raleway.className} hidden md:block`}
7979
style={{ fontFamily: "'Raleway', sans-serif" }}
8080
>
8181
Enlist the Expertise of our Professional <strong>Software Engineers</strong> for your Project!
8282
</h1>
83+
<h1
84+
className={`mb-2 text-[20px] text-[#333] font-normal tracking-normal ${raleway.className} md:hidden`}
85+
style={{ fontFamily: "'Raleway', sans-serif" }}
86+
>
87+
Hire Professional <strong>Software Engineers</strong> for Your Project
88+
</h1>
8389
{/* separator-2 matching Laravel */}
8490
<div
8591
className="w-full h-px mb-2.5"
@@ -88,7 +94,7 @@ const AccordionTabsSection: React.FC = () => {
8894
'linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.12) 35%, rgba(0,0,0,0.05) 70%, transparent 100%)',
8995
}}
9096
/>
91-
<p className="text-[#777] text-lg mb-4" style={{ fontFamily: "'Raleway', sans-serif" }}>
97+
<p className="text-[#999] text-lg mb-4" style={{ fontFamily: "'Raleway', sans-serif" }}>
9298
Opt for our services when seeking professional software solutions; let our{' '}
9399
<Link href="/portfolio" className="text-[#777] underline hover:text-[#555]">
94100
portfolio
@@ -125,7 +131,7 @@ const AccordionTabsSection: React.FC = () => {
125131
transition={{ duration: 0.3, ease: 'easeInOut' }}
126132
className="overflow-hidden"
127133
>
128-
<div className="py-4 text-[14px] text-[#777] font-light leading-relaxed">{item.content}</div>
134+
<div className="py-4 text-[14px] text-[#999] font-light leading-relaxed">{item.content}</div>
129135
</motion.div>
130136
</div>
131137
)

src/components/index/feature-section.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ const FeatureSection = () => {
6565
}, [])
6666

6767
return (
68-
<section className="bg-gray-100 py-4 md:py-8">
68+
<section className="bg-gray-100 pb-2 py-4 md:py-8">
6969
<div className="container mx-auto px-8 md:px-20 lg:px-32">
7070
<div className="z-5 grid grid-cols-1 md:grid-cols-3 gap-2 items-stretch">
7171
{features.map((feature, index) => (
7272
<div
7373
key={index}
7474
data-index={index}
75-
className={`feature-box transition-opacity duration-300 flex flex-col h-full rounded-lg mx-2 ${
75+
className={`feature-box transition-opacity duration-300 flex flex-col h-full rounded-lg mx-2 pt-4 ${
7676
visibleSections.includes(index) ? 'animate__animated animate__slideInDown' : 'opacity-0'
7777
}`}
7878
style={{
@@ -84,10 +84,14 @@ const FeatureSection = () => {
8484
<FontAwesomeIcon icon={feature.icon} {...feature.iconProps} />
8585
</span>
8686
<div className="flex flex-col flex-1 h-full">
87-
<h4 className={`${Raleway.className} text-[#333333] leading-[1.2] text-[19px] font-normal`}>
87+
<h4
88+
className={`${Raleway.className} text-[#333333] leading-[1.2] text-[19px] font-normal whitespace-nowrap`}
89+
>
8890
{feature.title}
8991
</h4>
90-
<p className="mt-2 mb-3 text-[#999999] text-[16px] font-light flex-grow">{feature.description}</p>
92+
<p className="mt-2 mb-3 text-[#999999] text-[15px] leading-relaxed flex-grow ">
93+
{feature.description}
94+
</p>
9195
<CustomButton
9296
text="Read More"
9397
link={feature.link}

0 commit comments

Comments
 (0)