-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhero_banner.html
134 lines (122 loc) · 4.59 KB
/
hero_banner.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<div id="js-hero-banner" class="she-coded-hero-banner">
<style>
.she-coded-hero-banner__container {
background: url(https://res.cloudinary.com/practicaldev/image/fetch/s--1CNwpAk4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nfyiuiosu25i34729rdg.jpg);
margin: 0 auto;
background-size: 1260px 500px;
max-width: 1250px;
min-height: 450px;
color: white;
position: relative;
}
.she-coded-hero-banner__overlay-container {
background: linear-gradient(111.57deg, #3140E7 0%, rgba(49, 64, 231, 0) 100%);
display: flex;
justify-content: space-between;
padding: 50px 48px 5px 48px;
min-height: calc(450px - 55px);
}
.she-coded-hero-banner__logo, .she-coded-hero-banner__sticker {
width: 100%;
height: auto;
max-width: 624px;
}
.she-coded-hero-banner__text {
max-width: 650px;
font-size: 24px;
line-height: 32px;
margin: -16px 0 16px 0;
font-weight: 500;
}
.she-coded-hero-banner__button-container {
display:flex;
margin-bottom: 32px;
}
.she-coded-hero-banner__button {
width: 188px;
height: 24px;
padding: 12px 20px;
border-radius: 3px;
font-size: 20px;
text-align: center;
font-weight: 500;
}
.she-coded-hero-banner__button--share {
background: #22AA9C;
margin-right: 12px;
}
.she-coded-hero-banner__button--see {
background: rgba(255, 255, 255, 0.2);
}
.she-coded-hero-banner__container a {
color: white;
}
.she-coded-hero-banner__x {
top: 1em;
position: absolute;
right: 1em;
cursor: pointer;
}
@media only screen and (max-width: 900px) {
.she-coded-hero-banner__overlay-container {
flex-direction: column;
}
.she-coded-hero-banner__div--left {
order: 2;
}
.she-coded-hero-banner__logo {
height: auto;
width: 60vw;
}
.she-coded-hero-banner__sticker {
height: 13vh;
width: auto;
position: absolute;
top: calc(46px + 1em);
right: 1em;
}
}
@media only screen and (max-width: 550px) {
.she-coded-hero-banner__container, .she-coded-hero-banner__overlay-container {
height: auto;
background-size: 900px 700px;
}
.she-coded-hero-banner__logo {
height: auto;
width: 60vw;
}
.she-coded-hero-banner__sticker {
height: 10vh;
display: none;
}
.she-coded-hero-banner__button-container {
flex-direction: column;
}
.she-coded-hero-banner__button--share {
margin-bottom: 12px;
}
.she-coded-page__story-tags-container{
flex-direction: column;
margin: 2em 1em;
}
}
</style>
<div class="she-coded-hero-banner__container">
<div class="she-coded-hero-banner__overlay-container">
<svg id="js-hero-banner__x" class="she-coded-hero-banner__x " fill="none" height="14" viewbox="0 0 14 14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="m13.9997 1.41-1.41-1.41-5.58996 5.59-5.59-5.59-1.4099994 1.41 5.5899994 5.59-5.5899994 5.59 1.4099994 1.41 5.59-5.59 5.58996 5.59 1.41-1.41-5.58996-5.59z" fill="#fff"></path></svg>
<div class="she-coded-hero-banner__div she-coded-hero-banner__div--left">
<img class="she-coded-hero-banner__logo" src="https://res.cloudinary.com/practicaldev/image/fetch/s--k95W1WYO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0j0cbs668sni2hclgx1o.png">
<div class="she-coded-hero-banner__text">
It’s International Women’s Day, and we’re celebrating self-identifying women and non-binary members of our community, as well as their allies. From now until March 9, share your story.
</div>
<div class="she-coded-hero-banner__button-container">
<a href="https://dev.to/new/shecoded"><div class="she-coded-hero-banner__button she-coded-hero-banner__button--share">Share Your Story</div></a>
<a href="https://dev.to/shecoded"><div class="she-coded-hero-banner__button she-coded-hero-banner__button--see">See All Stories</div></a>
</div>
</div>
<div class="she-coded-hero-banner__div she-coded-hero-banner__div--right">
<img class="she-coded-hero-banner__sticker" src="https://res.cloudinary.com/practicaldev/image/fetch/s--MYRb4laD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_420/https://dev-to-uploads.s3.amazonaws.com/i/wldub08qchqrq2u3c8it.png">
</div>
</div>
</div>
</div>