Skip to content

Commit 9cd5fd7

Browse files
committed
features
1 parent 154afd5 commit 9cd5fd7

File tree

2 files changed

+47
-20
lines changed

2 files changed

+47
-20
lines changed

src/pages/index.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,10 @@ import styles from './index.module.css';
1212
function HomepageHeader() {
1313
const {siteConfig} = useDocusaurusContext();
1414

15-
const letters = {
16-
"text-align": "left",
17-
position: "relative",
18-
overflow: "hidden",
19-
background: "white",
20-
color: "#00152A",
21-
float: "right",
22-
width: "30%",
23-
margin: "0",
24-
};
25-
const image = {
26-
float: "right",
27-
width: "35%",
28-
};
2915
return (
3016
<header className={clsx('hero hero--primary', styles.heroBanner)}>
31-
<img src={helmsman} style={image}/>
32-
<div className="container" style={letters}>
17+
<img src={helmsman} className={styles.image}/>
18+
<div className={styles.letters}>
3319
<h1 className="hero__title">{siteConfig.title}</h1>
3420
<p className="hero__subtitle">{siteConfig.tagline}</p>
3521
<div className={styles.buttons}>

src/pages/index.module.css

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,20 @@
2020
justify-content: center;
2121
}
2222

23-
@media screen and (max-width: 996px) {
24-
.heroBanner {
25-
padding: 2rem;
26-
}
23+
.image {
24+
float: right;
25+
width: 35%;
26+
}
27+
28+
.letters {
29+
text-align: left;
30+
position: relative;
31+
overflow: hidden;
32+
background: white;
33+
color: #00152A;
34+
float: right;
35+
width: 30%;
36+
margin: 0;
2737
}
2838

2939
.buttons {
@@ -33,6 +43,37 @@
3343
width: 100%;
3444
}
3545

46+
@media screen and (max-width: 996px) {
47+
.heroBanner {
48+
/*padding: 2rem;*/
49+
width: 100%;
50+
}
51+
}
52+
53+
@media screen and (max-width: 600px) {
54+
.image {
55+
float: right;
56+
width: 100%;
57+
}
58+
59+
.letters {
60+
text-align: center;
61+
position: relative;
62+
overflow: hidden;
63+
background: white;
64+
color: #00152A;
65+
width: 100%;
66+
margin: 0;
67+
}
68+
69+
.buttons {
70+
display: flex;
71+
align-items: center;
72+
justify-content: center;
73+
width: 100%;
74+
}
75+
}
76+
3677
.right {
3778
float: right;
3879
width: 60%;

0 commit comments

Comments
 (0)