Skip to content

Commit d43d615

Browse files
authored
Improve homepage hero and footer responsiveness (#760)
1 parent 6ed86d5 commit d43d615

2 files changed

Lines changed: 73 additions & 80 deletions

File tree

‎src/css/custom.css‎

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,6 @@ html[data-theme="dark"] {
9999
font-weight: bold;
100100
color: #53599a;
101101
}
102-
103-
.footer__links {
104-
width: 75%;
105-
float: right;
106-
}
107-
.footer__bottom {
108-
width: 25%;
109-
}
110-
.footer__bottom > div {
111-
text-align: left;
112-
}
113102
.footer--dark {
114103
--ifm-footer-background-color: #0c0c2c;
115104
--ifm-footer-padding-vertical: 100px;
@@ -656,3 +645,35 @@ footer .docusaurus-mt-lg{
656645
.hidden-sidebar-item {
657646
display: none !important;
658647
}
648+
649+
.footer__links {
650+
display: grid;
651+
grid-template-columns: repeat(4, 1fr);
652+
gap: 2rem;
653+
}
654+
.footer__copyright{
655+
text-align: center;
656+
}
657+
@media (max-width: 1024px) {
658+
.footer__links {
659+
grid-template-columns: repeat(2, 1fr);
660+
}
661+
662+
.footer__col {
663+
text-align: center;
664+
}
665+
}
666+
667+
@media (max-width: 400px) {
668+
.footer__links {
669+
grid-template-columns: 1fr;
670+
}
671+
672+
.footer__bottom {
673+
text-align: center;
674+
}
675+
676+
.footer__logo {
677+
margin: 0 auto;
678+
}
679+
}
Lines changed: 41 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,72 @@
11
.heroBanner {
2-
padding: 1rem 0 5rem;
3-
text-align: center;
4-
position: relative;
5-
overflow: hidden;
6-
height: 100vh;
7-
background-image: url('/img/rmq-home-page.png');
8-
background-size: 100%;
2+
padding: 4rem 1rem 5rem;
3+
text-align: center;
4+
position: relative;
5+
overflow: hidden;
6+
min-height: 100vh;
7+
background-image: url('/img/rmq-home-page.png');
8+
background-size: cover;
9+
background-position: center;
10+
}
11+
12+
.herotitle {
13+
font-size: 6.5rem;
14+
line-height: 1.1;
15+
word-break: normal;
916
}
1017

1118
.herosubtitle {
12-
font-size: 1.5rem;
13-
max-width: 600vw;
19+
font-size: 1.5rem;
20+
max-width: 760px;
21+
margin: 1.5rem auto 0;
1422
}
1523

24+
@media (max-width: 966px) {
25+
.herotitle {
26+
font-size: 6rem;
27+
}
1628

17-
@media screen and (max-width: 966px) {
18-
.heroBanner {
19-
padding: 2rem;
20-
}
21-
.heroBanner {
22-
height: 130vh;
23-
}
24-
}
25-
@media screen and (max-width: 680px) {
26-
.heroBanner {
27-
height: 120vh;}
29+
.herosubtitle {
30+
font-size: 1.3rem;
31+
}
2832
}
2933

3034
.buttons {
31-
display: flex;
32-
flex-wrap: wrap;
33-
align-items: center;
34-
justify-content: center;
35-
margin: 30px 0 0;
35+
display: flex;
36+
flex-wrap: wrap;
37+
justify-content: center;
38+
margin-top: 2.5rem;
3639
}
3740

3841
.buttons > a {
39-
margin: 0 5px;
40-
42+
margin: 0 6px;
4143
}
4244

4345
@media (max-width: 650px) {
44-
45-
.herosubtitle{
46-
font-size: medium;
47-
}
48-
.buttons{
49-
text-align: center;
50-
51-
}
52-
.button{
53-
width: 200px!important;
54-
min-width: none;
55-
padding:18px;
56-
57-
}
58-
.button2{
59-
display: none!important;
60-
}
6146
.herotitle{
62-
font-size: 4rem;
47+
font-size: 4rem;
6348
}
6449

65-
.frameworkLogos img {
66-
height: 45px;
67-
}
68-
}
69-
@media (max-width: 800px) {
50+
.herosubtitle {
51+
font-size: 1rem;
52+
}
7053

71-
.frameworkLogos img {
72-
height: 45px;
73-
}
74-
.herotitle{
75-
font-size: 7rem;
76-
}
54+
.button {
55+
width: 200px !important;
56+
}
7757

58+
.button2 {
59+
display: none !important;
60+
}
7861
}
7962

80-
@media (max-width: 500px) {
81-
82-
.heroBanner{
83-
height: 100vh;
84-
}
85-
86-
}
8763
@media (max-width: 400px) {
8864
.herotitle{
89-
font-size: 5rem;
65+
font-size: 3.2rem;
9066
}
91-
.heroBanner{
92-
height: 100vh;
93-
}
94-
9567
}
9668

9769
.github{
98-
padding-top: 30px!important;
70+
margin-top: 2rem;
9971
}
10072

0 commit comments

Comments
 (0)