Skip to content

Commit 19d25a9

Browse files
committed
Refactor Kanvas banner styles for improved layout and responsiveness
Signed-off-by: Lee Calcote <[email protected]>
1 parent 19fcf0e commit 19d25a9

File tree

1 file changed

+73
-75
lines changed

1 file changed

+73
-75
lines changed

src/sections/Kanvas/kanvas_banner.js

+73-75
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ import KanvasIcon from "./kanvas-icon.svg";
44

55
const BannerSectionWrapper = styled.div`
66
7-
display: flex;
8-
background: #000000;
9-
border-radius: 0% 85% 0% 0% / 0% 80% 0% 0% ;
10-
-webkit-box-shadow: 5px -5px 15px 5px rgba(0,0,0,0.33);
11-
box-shadow: 1px -5px 5px 1px rgba(235,192,23,.5);
12-
13-
padding: 8rem 6rem 3rem 6rem;
14-
max-width: 1140px;
15-
width: 100%;
16-
margin: auto;
17-
min-height: 25rem;
18-
7+
display: flex;
8+
flex-wrap: nowrap;
9+
background: #000000;
10+
border-radius: 0% 85% 0% 0% / 0% 80% 0% 0% ;
11+
-webkit-box-shadow: 5px -5px 15px 5px rgba(0,0,0,0.33);
12+
box-shadow: 1px -5px 5px 1px rgba(235,192,23,.5);
13+
gap: 5rem;
14+
padding: 6rem 6rem 6rem 6rem;
15+
max-width: 1140px;
16+
width: 100%;
17+
margin: auto;
18+
min-height: 25rem;
19+
align-content: end;
20+
21+
div.banner-text {
1922
h1 {
2023
/* background-color: ${props => props.theme.black}; */
2124
font-weight: 500;
@@ -35,7 +38,7 @@ const BannerSectionWrapper = styled.div`
3538
}
3639
@media screen and (max-width: 448px) {
3740
font-size: 38px;
38-
span{
41+
span {
3942
font-size: 48px;
4043
}
4144
}
@@ -44,62 +47,58 @@ const BannerSectionWrapper = styled.div`
4447
margin: 1.5rem 0;
4548
}
4649
}
47-
h2 {
48-
margin-bottom: 1rem;
49-
font-size: 1.95rem;
50-
font-weight: 400;
51-
color: ${props => props.theme.white};
52-
font-style: italic;
53-
span {
50+
h2 {
51+
margin-bottom: 1rem;
52+
font-size: 1.95rem;
53+
font-weight: 400;
54+
color: ${props => props.theme.white};
55+
font-style: italic;
56+
span {
57+
font-style: normal;
58+
}
59+
}
60+
h2.readyPlayer {
61+
margin: 2rem 0rem 0rem 0rem;
62+
background-color: black;
63+
position: absolute;
64+
z-index: 1;
65+
padding: 1.5rem;
66+
color: white;
5467
font-style: normal;
68+
text-transform: uppercase ;
69+
font-size: 2.5rem;
70+
text-align: center;
5571
}
56-
}
57-
h2.readyPlayer {
58-
margin: 2rem 0rem 0rem 0rem;
59-
background-color: black;
60-
position: absolute;
61-
z-index: 1;
62-
padding: 1.5rem;
63-
color: white;
64-
font-style: normal;
65-
text-transform: uppercase ;
66-
font-size: 2.5rem;
67-
text-align: center;
68-
}
69-
70-
}
71-
.banner-text p {
72-
color: ${props => props.theme.saffronColor};
73-
margin-bottom: .5rem;
74-
font-weight: 400;
75-
font-size: 1.75rem;
76-
font-style: italic;
77-
min-width: 18rem;
78-
font-family: "Qanelas Soft";
79-
span {
72+
p {
8073
color: ${props => props.theme.saffronColor};
74+
margin-bottom: .5rem;
75+
font-weight: 400;
76+
font-size: 1.75rem;
77+
font-style: italic;
78+
min-width: 18rem;
79+
font-family: "Qanelas Soft";
80+
span {
81+
color: ${props => props.theme.saffronColor};
82+
}
8183
}
82-
}
83-
h4 {
84-
text-transform: uppercase;
85-
padding-left: 1rem;
86-
font-style: italic;
87-
font-size: 1.25rem;
88-
color: ${props => props.theme.white};
89-
span {
84+
h4 {
85+
text-transform: uppercase;
9086
padding-left: 1rem;
87+
font-style: italic;
88+
font-size: 1.25rem;
89+
color: ${props => props.theme.white};
90+
span {
91+
padding-left: 1rem;
92+
}
9193
}
9294
}
93-
9495
.kanvas-logo {
9596
width: 14rem;
9697
overflow: hidden;
97-
margin-top: -7rem;
98-
position: relative;
99-
left: 30%;
100-
z-index: 0;
101-
102-
}
98+
display: flex;
99+
align-self: center;
100+
flex-wrap: nowrap;
101+
}
103102
div.accent-bubble {
104103
width: 50%;
105104
height: 100%;
@@ -118,47 +117,46 @@ const BannerSectionWrapper = styled.div`
118117
@media screen and (max-width: 1700px) {
119118
.kanvas-logo {
120119
width: 12rem;
121-
/* right: 12rem; */
122-
/* margin-top: -5rem; */
123120
}
124121
.para {
125122
margin-top: -3rem;
126123
}
127124
}
128125
@media screen and (max-width: 1200px) {
129126
.kanvas-logo {
130-
left: 20%;
131127
width: 10rem;
132-
/* right: 8rem; */
133-
margin-top: -5rem;
134128
}
135-
/* border-radius: 0% 85% 0% 0% / 0% 60% 0% 0% ; */
129+
border-radius: 0% 85% 0% 0% / 0% 60% 0% 0% ;
136130
}
137131
@media screen and (max-width: 992px) {
138132
.kanvas-logo {
139133
width: 8rem;
140-
margin-top: -2rem;
141-
left: 15%;
142134
}
135+
.banner-text {
136+
margin-left: 0rem;
137+
margin-bottom: 0rem;
138+
h1 { font-size: 50px; }
139+
h2 { font-size: 1.25rem; }
140+
h4 { font-size: 1rem; }
141+
p { font-size: 1.25rem; }
142+
}
143+
gap: 2.5rem;
144+
min-height: 12rem;
145+
padding: 6rem 2rem 2rem 2rem;
143146
border-radius: 0% 85% 0% 0% / 0% 60% 0% 0% ;
144147
}
145148
146149
@media screen and (max-width: 768px) {
147150
padding: 8rem 2rem 3rem;
148151
.kanvas-logo {
149-
margin-top: -5rem;
150-
margin-right: 2rem;
151-
left: 7%;
152-
min-width: 5rem;
152+
min-width: 6rem;
153153
}
154154
border-radius: 0% 85% 0% 0% / 0% 40% 0% 0% ;
155155
}
156156
@media screen and (max-width: 500px) {
157157
.kanvas-logo {
158-
margin-top: -5rem;
159-
margin-right: 2rem;
160-
left: 0%;
161-
min-width: 3rem;
158+
159+
/* min-width: 3rem; */
162160
}
163161
border-radius: 0% 85% 0% 0% / 0% 40% 0% 0% ;
164162
}

0 commit comments

Comments
 (0)