Skip to content

Commit 031231a

Browse files
committed
Adjust hero responsive positioning
1 parent 7d7fdc5 commit 031231a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/pages/index.module.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
display: block;
2828
margin: 1em 0 auto 1.5rem;
2929
float: right;
30+
width: 300px;
3031
}
3132

3233
.heroTitleTextHtml {
@@ -119,17 +120,18 @@
119120

120121
/* Responsive adjustments */
121122
@media screen and (max-width: 996px) {
122-
.hero {
123-
padding: 2rem 1rem;
123+
.heroInner {
124+
padding: 0.5rem 1rem;
124125
}
125126

126127
.heroProjectTagline {
127128
font-size: 2rem;
128129
}
129130

130131
.heroLogo {
131-
width: 150px;
132-
height: 150px;
132+
width: 200px;
133+
float: none;
134+
margin: 0 auto;
133135
}
134136

135137
.section {

src/pages/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ function HeroBanner() {
1818
alt="Context-Generic Programming"
1919
className={styles.heroLogo}
2020
src={useBaseUrl('/img/cgp-hero.png')}
21-
width="300"
22-
height="300"
2321
/>
2422
<div className={styles.heroInner}>
2523
<Heading as="h1" className={styles.heroProjectTagline}>

static/img/cgp-hero.png

-179 KB
Loading

0 commit comments

Comments
 (0)