Skip to content

Commit 857383c

Browse files
authored
refactor: create container for heading+subtitle+quick links (#20)
* refactor: create container for heading+subtitle+quick links * refactor: change gap for header container
1 parent d363f33 commit 857383c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/pages/index.module.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
mask-image: radial-gradient(ellipse at center, transparent 20%, black);
4242
}
4343

44-
.headerContainer {
44+
.headerWrapper {
4545
position: relative;
4646
z-index: 10;
4747
display: flex;
@@ -54,27 +54,31 @@
5454
}
5555

5656
@media (width < 48rem) {
57-
.headerContainer {
57+
.headerWrapper {
5858
padding-top: 1rem;
5959
flex-direction: column;
6060
justify-content: space-between;
6161
gap: 2rem;
6262
}
6363
}
6464

65+
.headerContainer {
66+
display: flex;
67+
flex-direction: column;
68+
gap: 0.5rem;
69+
}
70+
6571
.headerTitle {
6672
color: #3e63dd;
6773
font-size: 4.25rem;
6874
font-weight: bold;
69-
margin-bottom: 0.5rem;
7075
}
7176

7277
.headerSubtitle {
7378
color: var(--ifm-color-primary-darkest);
7479
font-size: 1rem;
7580
font-weight: 400;
7681
max-width: 36rem;
77-
margin-bottom: 0.5rem;
7882
}
7983

8084
.quickLinks {
@@ -87,10 +91,6 @@
8791
.quickLinks {
8892
grid-template-columns: 1fr 1fr;
8993
}
90-
91-
.headerSubtitle {
92-
margin-bottom: 2rem;
93-
}
9494
}
9595

9696
.quickLink {

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function Header() {
1414
<div className={styles.gridContainer}>
1515
<div className={styles.gridLines} />
1616
<div className={styles.radialFade} />
17-
<div className={styles.headerContainer}>
18-
<div>
17+
<div className={styles.headerWrapper}>
18+
<div className={styles.headerContainer}>
1919
<Heading as="h1" className={styles.headerTitle}>
2020
{siteConfig.title}
2121
</Heading>

0 commit comments

Comments
 (0)