File tree Expand file tree Collapse file tree 2 files changed +47
-20
lines changed Expand file tree Collapse file tree 2 files changed +47
-20
lines changed Original file line number Diff line number Diff line change @@ -12,24 +12,10 @@ import styles from './index.module.css';
1212function 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 } >
Original file line number Diff line number Diff line change 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 {
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% ;
You can’t perform that action at this time.
0 commit comments