-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
134 lines (117 loc) · 3.53 KB
/
Copy pathindex.html
File metadata and controls
134 lines (117 loc) · 3.53 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
122
123
124
125
126
127
128
129
130
131
132
133
134
<!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">
<link href="https://fonts.googleapis.com/css2?family=Figtree:wght@500;800&display=swap" rel="stylesheet">
<title>Frontend Mentor | Blog preview card</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
html {
font-family: 'Figtree', sans-serif;
background-color: hsl(47, 88%, 63%);
}
body {
margin: 0;
}
.page {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 16px;
}
.card {
border: 2px solid hsl(0, 0%, 7%);
border-radius: 20px;
padding: 24px;
margin: 0 auto 24px;
width: 24rem;
box-shadow: 8px 8px 0px 0px hsl(0, 0%, 7%);
background-color: hsl(0, 0%, 100%);
transition: all 0.3s ease;
cursor: pointer;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 12px 12px 0px 0px hsl(0, 0%, 7%);
}
.one-off {
background-color: hsl(47, 88%, 63%);
color: hsl(0, 0%, 7%);
padding: 4px 12px;
border-radius: 4px;
font-weight: 800;
font-size: 14px;
text-align: left;
}
.badge-container {
text-align: left;
margin: 0 0 8px 0;
}
.card-title {
font-weight: 800;
font-size: 24px;
margin: 12px 0;
color: hsl(0, 0%, 7%);
text-align: left;
}
.card-title:hover {
outline: 2px solid hsl(47, 88%, 63%);
outline-offset: 2px;
background-color: rgba(71, 136, 99, 0.1);
color: hsl(47, 88%, 63%);
}
.card-date {
color: hsl(0, 0%, 42%);
font-size: 14px;
margin: 8px 0;
text-align: left;
}
.card-text {
color: hsl(0, 0%, 42%);
font-size: 16px;
line-height: 1.5;
text-align: left;
}
.author-info {
display: flex;
align-items: center;
gap: 12px;
font-weight: 800;
color: hsl(0, 0%, 7%);
font-size: 14px;
margin: 16px 0 0 0;
}
.page p {
max-width: 30rem;
margin: 0 0 16px;
}
.attribution { font-size: 0.6875rem; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<div class="page">
<div class="card">
<img src="./assets/images/illustration-article.svg" class="card-img-top" alt="..." width="100%" height="auto" style="border-radius: 10px;">
<div class="card-body">
<p class="badge-container"><span class="one-off">Learning</span></p>
<p class="card-date">Published 21 Dec 2023</p>
<h3 class="card-title">HTML & CSS foundations</h3>
<p class="card-text">These languages are the backbone of every website, defining structure, content, and presentation.</p>
<div class="card-author">
<p class="author-info"><img src="./assets/images/image-avatar.webp" alt="Greg Hooper's avatar" width="32px" height="32px" style="border-radius: 50%;">Greg Hooper</p>
</div>
</div>
</div>
<footer class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge">Frontend Mentor</a>.
Coded by <a href="https://github.com/RedheadedProgrammer">@RedheadedProgrammer</a>.
</footer>
</div>
</body>
</html>