131 lines
1.8 KiB
CSS
131 lines
1.8 KiB
CSS
@font-face {
|
|
font-weight: 100 900;
|
|
src: url("/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
|
|
font-family: "Figtree";
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
body {
|
|
background-color: #f4d04e;
|
|
font-family: "Figtree";
|
|
}
|
|
|
|
.container {
|
|
padding: 24px;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
|
|
filter: drop-shadow(8px 8px black);
|
|
border: 1px black solid;
|
|
border-radius: 20px;
|
|
|
|
background-color: white;
|
|
|
|
padding: 24px;
|
|
max-width: 24rem;
|
|
|
|
.image {
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
|
|
.learning {
|
|
border-radius: 4px;
|
|
background-color: #f4d04e;
|
|
padding: 4px 12px;
|
|
width: fit-content;
|
|
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.date {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
h1 {
|
|
font-weight: 800;
|
|
font-size: 24px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.description {
|
|
color: #7f7f7f;
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media screen and (max-width: 576px) {
|
|
.learning {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.date {
|
|
font-size: 12px;
|
|
}
|
|
|
|
& h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.description {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
|
|
p {
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.center {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|