-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (114 loc) · 3.06 KB
/
index.html
File metadata and controls
121 lines (114 loc) · 3.06 KB
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
<!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="favicon-32x32.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&display=swap">
<title>Frontend Mentor | Blog preview card</title>
<style>
.attribution { font-size: 12px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
body {
margin: 0;
font-family: 'Outfit', sans-serif;
font-weight: 400;
background-color: hsl(47, 88%, 63%);
color: hsl(220, 15%, 55%);
font-family: 'Figtree', sans-serif;
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.main-container {
max-width: 300px;
padding: 10px;
border-radius: 10px;
text-align: left;
box-shadow: 6px 6px 0px rgba(0, 0, 0, 1); /*x and y offset, blur radius, color*/
background-color: white;
box-sizing: border-box;
border: 1px solid hsl(0, 0%, 0%);
}
.f-img {
border-radius: 10px;
width: 100%;
height: auto;
}
.f-p {
background-color: hsl(47, 88%, 63%);
width: fit-content;
padding: 5px 10px;
border-radius: 3px;
color:black;
font-weight: 700;
font-size: 15px;
}
.s-p {
font-size: 15px;
color: black;
}
.f-h {
font-size: 20px;
color: hsl(0, 0%, 0%);
}
.f-h:hover {
color: hsl(47, 88%, 63%);
cursor: pointer;
transition: 0.2s;
}
.f-h:active {
color: hsl(47, 62%, 55%);
}
.s-container {
width: fit-content;
display: flex;
align-items: center;
}
.author-img {
display: block;
width: 40px;
margin: 0px auto;
}
.author-name {
font-size: 14px;
font-weight: 700;
color: hsl(0, 0%, 0%);
margin-left: 12px;
display:inline-block;
}
.content {
text-align: left;
font-size: 16px;
}
</style>
</head>
<body>
<section>
<div class="main-container">
<div>
<img class="f-img" src="illustration-article.svg" alt="Web 3.0 Image">
</div>
<div>
<p class="f-p">Learning</p>
<p class="s-p">Published 21 Dec 2023</p>
<h2 class="f-h">HTML & CSS foundations</h2>
<p class="content">These languages are the backbone of every website, defining structure, content, and presentation.</p>
</div>
<div class="s-container">
<img class="author-img" src="image-avatar.webp" alt="Author image">
<p class="author-name">Greg Hooper</p>
</div>
</div>
</section>
<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/T-kesh">Keshinro Tanitoluwa Joseph</a>.
</div>
</footer>
</body>
</html>