+
- {/* Body */}
-
-
- {/* Image */}
-
-
-
+
+
+
+
+
- {/* Title and Description */}
-
-
{title}
-
{description}
-
+
+
{title}
+
{description}
-
+
+
+
+
+
+ Written by:
+ {author.name}
+ at
+ {dateForHumans(date)}
- >
+
);
}
diff --git a/components/articles/preview/preview.module.css b/components/articles/preview/preview.module.css
index 5f773145..0ab8e554 100644
--- a/components/articles/preview/preview.module.css
+++ b/components/articles/preview/preview.module.css
@@ -1,5 +1,5 @@
.root {
- margin: 1rem auto 2rem auto;
+ margin: 2rem auto 3rem auto;
display: flex;
flex-direction: column;
justify-content: center;
@@ -9,16 +9,17 @@
.heading {
display: flex;
flex-direction: row;
- align-items: flex-end;
+ align-items: center;
+ margin-top: 1rem;
}
.body {
display: flex;
flex-direction: row;
justify-content: space-between;
- align-items: center;
+ align-items: start;
transition: 0.5s;
- margin-top: 0.3rem;
+ margin-top: 0.5rem;
}
.body:hover {
@@ -32,8 +33,10 @@
}
.imagePreview {
- width: 15rem;
+ width: 100%;
+ max-width: 15em;
margin-right: 1rem;
+ overflow: hidden;
}
.authorImage {
diff --git a/assets/fonts/IncompleetaRegular.woff2 b/public/fonts/IncompleetaRegular.woff2
similarity index 100%
rename from assets/fonts/IncompleetaRegular.woff2
rename to public/fonts/IncompleetaRegular.woff2
diff --git a/styles/global.css b/styles/global.css
index ea92de94..d494abeb 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -14,7 +14,7 @@
font-family: 'Incompleeta';
font-weight: 'normal';
font-display: block;
- src: url('~/assets/fonts/IncompleetaRegular.woff2') format('woff2');
+ src: url('/fonts/IncompleetaRegular.woff2') format('woff2');
}
:root {