+
@@ -32,11 +35,7 @@ const Blog: NextPage<{ content: ContentList }> = ({content}) => {
};
export async function getServerSideProps() {
- const url = process.env.BASE_URL || "https://c0ntroller.de";
- const res = await fetch(`${url}/content/list.json`);
- const content = await res.json();
-
- return { props: { content } };
+ return { props: { content: contentList } };
}
export default Blog;
\ No newline at end of file
diff --git a/styles/Blog/Card.module.scss b/styles/Blog/Card.module.scss
index c0dc922..9a5387b 100644
--- a/styles/Blog/Card.module.scss
+++ b/styles/Blog/Card.module.scss
@@ -18,6 +18,6 @@
font-weight: bold;
}
-.description {
-
-}
\ No newline at end of file
+/* .description {
+
+} */
\ No newline at end of file
diff --git a/styles/Blog/Content.module.scss b/styles/Blog/Content.module.scss
new file mode 100644
index 0000000..e69de29
diff --git a/styles/Blog/Front.module.scss b/styles/Blog/Front.module.scss
index 5514372..b19bba2 100644
--- a/styles/Blog/Front.module.scss
+++ b/styles/Blog/Front.module.scss
@@ -1,16 +1,3 @@
-.container {
-
- header {
- position: sticky;
- top: 10px;
- }
-
- main {
- max-width: 900px;
- margin: 0 auto;
- }
-}
-
.contentList {
display: flex;
flex-wrap: wrap;
diff --git a/styles/globals.css b/styles/globals.scss
similarity index 69%
rename from styles/globals.css
rename to styles/globals.scss
index 431bc96..7c28929 100644
--- a/styles/globals.css
+++ b/styles/globals.scss
@@ -17,3 +17,15 @@ body {
margin: 0;
padding: 0;
}
+
+#blogBody {
+ header {
+ position: sticky;
+ top: 10px;
+ }
+
+ main {
+ max-width: 900px;
+ margin: 0 auto;
+ }
+}
\ No newline at end of file