Skip to content

Commit 0d7355d

Browse files
committed
Mobile: center hero tagline; move services CTA below cards
1 parent d2c79b5 commit 0d7355d

2 files changed

Lines changed: 6 additions & 19 deletions

File tree

src/pages/index.module.css

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
.tech_tagline {
7575
font-size: 20px;
7676
line-height: 150%;
77+
text-align: center;
7778
}
7879
}
7980

@@ -97,25 +98,16 @@
9798
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg);
9899
}
99100

100-
.services_link_mobile {
101-
display: none;
102-
}
103-
104101
.projects_link {
105102
display: none;
106103
}
107104

108105
@media (max-width: 996px) {
109-
.services_link_mobile {
110-
display: block;
111-
}
112-
113106
.projects_link {
114-
display: block;
115-
}
116-
117-
.services_link_desktop {
118-
display: none;
107+
display: flex;
108+
flex-direction: column;
109+
align-items: center;
110+
gap: var(--ifm-spacing-sm);
119111
}
120112
}
121113

src/pages/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ function HomeContent() {
6262

6363
{/* ── How we work with you (services) ───────────────────────────────── */}
6464
<Section fullHeight>
65-
<div className={styles.services_link_mobile}>
66-
<Link className={`link-to-button ${styles.link_to_services}`} href="/services/">DISCOVER OUR SERVICES</Link>
67-
</div>
6865
<h2 className="text--center">How we work with you</h2>
6966
<CardGrid cols={3}>
7067
<li>
@@ -91,9 +88,7 @@ function HomeContent() {
9188
</CardGrid>
9289
<div className={styles.projects_link}>
9390
<Link className={`link-to-button ${styles.link_to}`} href="/projects">DISCOVER ALL OF OUR PROJECTS</Link>
94-
<div className={styles.services_link_desktop}>
95-
<Link className={`link-to-button ${styles.link_to_services}`} href="/services/">DISCOVER OUR SERVICES</Link>
96-
</div>
91+
<Link className={`link-to-button ${styles.link_to_services}`} href="/services/">DISCOVER OUR SERVICES</Link>
9792
</div>
9893
</Section>
9994

0 commit comments

Comments
 (0)