-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
220 lines (217 loc) · 6.58 KB
/
index.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<title>Frontend Mentor | Blog preview card</title>
<style>
html {
background-color: #f5d04e;
font-family: Arial, Helvetica, sans-serif;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
svg {
width: 270px;
border-radius: 15%;
}
.container {
margin-top: 100px;
border-radius: 5%;
background-color: white;
width: 300px;
display: flex;
flex-direction: column;
align-items: center;
height: 430px;
border-bottom: 8px solid black;
border-right: 8px solid black;
}
.tag {
background-color: #f5d04e;
width: 80px;
font-size: small;
font-weight: bold;
padding: 10px auto;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
margin-left: -190px;
}
.date {
font-size: 13px;
margin-left: -130px;
}
h1 {
font-size: 18px;
margin-left: -50px;
margin-bottom: 5px;
}
.description {
font-size: smaller;
color: #838383;
margin-left: 15px;
margin-top: 10px;
}
.avatar {
margin-left: -160px;
}
#avatar-img {
width: 30px;
}
.name {
font-weight: bold;
font-size: 11px;
float: right;
margin-left: 10px;
}
.attribution {
margin-top: 10px;
color: gray;
font-size: 11px;
text-align: center;
}
.attribution a {
color: black;
}
</style>
</head>
<body>
<main>
<div class="container">
<svg
xmlns="http://www.w3.org/2000/svg"
width="336"
height="201"
fill="none"
viewBox="0 0 336 201"
>
<g clip-path="url(#a)">
<path fill="#F4D04E" d="M0 .5h336v200H0z" />
<rect
width="139"
height="95"
x="87.996"
y="77.729"
fill="#fff"
rx="47.5"
transform="rotate(-45 87.996 77.729)"
/>
<rect
width="139"
height="95"
x="54.055"
y="77.729"
fill="#111"
rx="47.5"
transform="rotate(-45 54.055 77.729)"
/>
<path
fill="#111"
d="M234.864 209.036 451.4-7.5l67.175 67.175-216.536 216.536z"
/>
<rect
width="139"
height="95"
x="20.114"
y="77.729"
fill="#fff"
rx="47.5"
transform="rotate(-45 20.114 77.729)"
/>
<rect
width="204.19"
height="270.554"
fill="#111"
rx="102.095"
transform="scale(-1 1) rotate(45 -103.887 14.564)"
/>
<path
stroke="#fff"
stroke-width="3"
d="m6.69-357.5 135.583 135.727c12.481 12.494 12.481 32.737 0 45.231L-45.544 11.475c-12.481 12.494-12.481 32.737 0 45.23L107.088 209.5"
/>
<path
stroke="#111"
stroke-width="3"
d="M69.965 71.719v23.334h23.334M136.079 52.273V28.94h-23.334M102.845 38.838v46.67M210.364-37.5l60.873 60.873c12.497 12.496 12.497 32.758 0 45.254l-77.745 77.746c-12.497 12.496-12.497 32.758 0 45.254l69.872 69.873"
/>
<path
stroke="#111"
stroke-width="3"
d="m253.339 149.574-12.144 12.145 14.256 14.257v12.672h12.673l13.729 13.729 12.145-12.145M278.685 124.228l-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145M304.031 98.883l-12.145 12.144 14.257 14.257v12.673h12.673l13.729 13.729 12.144-12.145M329.376 73.537l-12.145 12.145 14.257 14.257v12.672h12.673l13.729 13.729 12.145-12.144"
/>
<path
stroke="#fff"
stroke-width="5"
d="m354.722 48.191-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145"
/>
<mask
id="b"
width="285"
height="285"
x="234"
y="-8"
maskUnits="userSpaceOnUse"
style="mask-type: alpha"
>
<path
fill="#111"
d="M234.864 209.036 451.4-7.5l67.175 67.175-216.536 216.536z"
/>
</mask>
<g stroke="#fff" mask="url(#b)">
<path
stroke-width="3"
d="m253.339 149.574-12.144 12.145 14.256 14.257v12.672h12.673l13.729 13.729 12.145-12.145M278.685 124.228l-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145M304.031 98.883l-12.145 12.144 14.257 14.257v12.673h12.673l13.729 13.729 12.144-12.145M329.376 73.537l-12.145 12.145 14.257 14.257v12.672h12.673l13.729 13.729 12.145-12.145"
/>
<path
stroke-width="5"
d="m354.722 48.191-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145"
/>
</g>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M0 .5h336v200H0z" />
</clipPath>
</defs>
</svg>
<div class="tag">
<p>Learning</p>
</div>
<p class="date right">Published 21 Dec 2023</p>
<h1>HTML & CSS foundations</h1>
<p class="description">
These languages are the backbone of every website, defining structure,
content, and presentation. Greg Hooper
</p>
<div class="avatar">
<img src="image-avatar.webp" alt="avatar" id="avatar-img" />
<p class="name">Greg Hooper</p>
</div>
</div>
</main>
<footer>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="/~https://github.com/alexisgale/">Alexis Gale</a>❤️.
</div>
</footer>
</body>
</html>