-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.html
175 lines (150 loc) · 3.78 KB
/
temp.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<title>Test page</title>
<style>
* {
box-sizing: border-box;
}
@media (min-width: 858px) {
html {
font-size: 12px;
}
.wrapper {
padding: 10rem 20rem;
}
}
@media (min-width: 780px) {
html {
font-size: 11px;
}
.wrapper {
padding: 10rem 20rem;
}
}
@media (min-width: 702px) {
html {
font-size: 10px;
}
.wrapper {
padding: 10rem 20rem;
}
}
@media (min-width: 624px) {
html {
font-size: 9px;
}
.wrapper {
padding: 10rem 20rem;
}
}
@media (max-width: 623px) {
html {
font-size: 8px;
}
.wrapper {
padding: 10rem 0rem;
}
}
body {
font-family: "Barlow Condensed", Helvetica, Arial, Sans-Serif;
/* font-size: calc(12px + 0.390625vw); */
}
.wrapper {
/* max-width: 940px;
margin: 0 auto; */
background-image: url('1024px-Portland_panorama3.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
width: 100vw;
position: relative;
background-color: #D1EAFF;
left: calc(-1 * (100vw - 100%) / 2);
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
grid-auto-rows: minmax(100px, auto);
text-align: center;
}
.wrapper>div {
/* border: 2px solid rgb(233 171 88); */
border-radius: 5px;
padding: 1em;
color: white !important;
}
.wrapper>div>a {
color: inherit;
text-decoration: none;
}
.one {
vertical-align: middle;
height: 100%;
line-height: 100%;
text-align: center;
grid-column: 2 / 4;
grid-row: 1/2;
padding-bottom: 0 !important;
font-size: 5.5rem;
/* font-size: calc(12px + 3vw); */
}
.two {
grid-column: 2 / 4;
grid-row: 2;
font-size: 10rem;
font-weight: bold;
padding: 0;
}
.three {
grid-column: 2;
grid-row: 3;
font-size: 6rem;
font-weight: bold;
background-color: rgba(169, 4, 4, 0.8);
padding: 0.3em !important;
}
.four {
grid-column: 3;
grid-row: 3;
font-size: 6rem;
font-weight: bold;
background-color: rgba(169, 4, 4, 0.8);
padding: 0.3em !important;
}
.five {
grid-column: 2;
grid-row: 4;
font-size: 2.6rem;
border: 2px solid white;
}
.six {
grid-column: 3;
grid-row: 4;
font-size: 2.6rem;
border: 2px solid white;
}
</style>
</head>
<body>
<p>Grid Test</p>
<div class="wrapper">
<div class="one">Emergencies can happen any time</div>
<div class="two" style="padding: 0;">LET'S BE PREPARED!</div>
<div class="three"><a href="#">SIGN UP</a></div>
<div class="four"><a href="#">GET READY</a></div>
<div class="five">PublicAlerts sends lifesaving info when an emergency is happening in the Portland-Vancouver Metro
Region</div>
<div class="six">Preparing for disasters is a community effort. Get yourself ready. Help those around you get ready.
Start small, but start today.</div>
</div>
<!-- <script type="text/javascript" src="js/index.js"></script> -->
<script>
</script>
</body>
</html>