Skip to content

Commit 5d375c2

Browse files
committed
fail on fetching data for ideas
1 parent f916d48 commit 5d375c2

File tree

15 files changed

+56
-222
lines changed

15 files changed

+56
-222
lines changed

old-src/pages/404.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

old-src/pages/index.astro

Lines changed: 0 additions & 58 deletions
This file was deleted.

old-src/services/auth.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

old-src/services/cicd.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

old-src/services/cmss.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/components/servicePage/servicePage.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import Card from "../../components/card/card.jsx";
44
import PageHeader from "../../components/pageHeader/pageHeader.jsx";
55
66
const { service, title, pageHeader, pageSubHeader, intro } = Astro.props;
7-
8-
const data = Astro.fetchContent("../../content/major/*.md");
9-
10-
console.log(`cool`, service, data);
7+
const data = Astro.fetchContent(`../../content/${service}/*.md`);
118
---
129

1310
<BaseLayout {title}>
File renamed without changes.

src/layouts/layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const { title } = Astro.props;
55

66
<html>
77
<head>
8+
<meta charset="utf-8" />
9+
<meta name="viewport" content="width=device-width" />
810
<title>{title}</title>
911
<link rel="stylesheet" href={Astro.resolve("../styles/global.scss")} />
1012
</head>

src/pages/404.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
import BaseLayout from "../layouts/layout.astro";
3+
---
4+
5+
<BaseLayout>
6+
<h1>NOT FOUND</h1>
7+
<p>You just hit a route that doesn&#39;t exist... the sadness.</p>
8+
</BaseLayout>

src/pages/ideas.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
import BaseLayout from "../layouts/layout.astro";
3+
const response = await fetch("../content/ideas.json");
4+
const data = await response.json();
5+
console.log(data);
6+
---
7+
8+
<BaseLayout title="Serverless - Ideas">test</BaseLayout>

src/pages/services/auth.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import ServicePage from "../../components/servicePage/servicePage.astro";
3+
---
4+
5+
<ServicePage
6+
service="auth"
7+
pageTitle="Services | Auth"
8+
pageHeader="Services"
9+
pageSubHeader="Auth"
10+
intro="Services that help you build authentication services (logging in and out with permissions)."
11+
/>

src/pages/services/cicd.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import ServicePage from "../../components/servicePage/servicePage.astro";
3+
---
4+
5+
<ServicePage
6+
service="cicd"
7+
pageTitle="Services | Continuous Integration / Continuous Deployment (CI / CD)"
8+
pageHeader="Services"
9+
pageSubHeader="CI / CD"
10+
intro="Services that help us run our build processes and deploy code based on Git happenings."
11+
/>

src/pages/services/cmss.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import ServicePage from "../../components/servicePage/servicePage.astro";
3+
---
4+
5+
<ServicePage
6+
service="cmss"
7+
pageTitle="Services | CMSs"
8+
pageHeader="Services"
9+
pageSubHeader="Content Management Systems"
10+
intro="Gotta manage that content."
11+
/>

src/pages/services/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
---
2-
// redirect?
3-
---
1+
<script>
2+
window.location.pathname = `/services/major/`;
3+
</script>

src/pages/services/major.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import ServicePage from "../../components/servicePage/servicePage.astro";
33
---
44

55
<ServicePage
6-
title="Major Providers"
76
service="major"
7+
pageTitle="Major Providers"
88
pageTitle="Services | Cloud Providers"
99
pageHeader="Services"
1010
pageSubHeader="The Cloud Providers"

0 commit comments

Comments
 (0)