-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
157 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# A2937's Activity log | ||
|
||
Live at https://a2937.github.io/activity-log | ||
Live at https://a2937.github.io/activity-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import { defineCollection, z } from 'astro:content'; | ||
import { defineCollection, z } from "astro:content"; | ||
|
||
const personalCollection = defineCollection({ | ||
schema: z.object({ | ||
title: z.string(), | ||
}) | ||
schema: z.object({ | ||
title: z.string(), | ||
}), | ||
}); | ||
|
||
const fccCollection = defineCollection({ | ||
schema: z.object({ | ||
title: z.string(), | ||
}) | ||
}), | ||
}); | ||
|
||
|
||
export const collections = { | ||
'personal': personalCollection, | ||
'fcc': fccCollection | ||
personal: personalCollection, | ||
fcc: fccCollection, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
--- | ||
import Social from "./Social.astro" | ||
import Social from "./Social.astro"; | ||
--- | ||
|
||
<style> | ||
footer | ||
{ | ||
footer { | ||
display: flex; | ||
gap: 1rem; | ||
margin-top: 2rem; | ||
} | ||
} | ||
</style> | ||
|
||
<footer> | ||
<Social platform="github" username="a2937" /> | ||
</footer> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
--- | ||
|
||
<div class="hamburger"> | ||
<span class="line"></span> | ||
<span class="line"></span> | ||
<span class="line"></span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
import Navigation from "./Navigation.astro"; | ||
import Hamburger from "./Hamburger.astro"; | ||
import ThemeIcon from './ThemeIcon.astro'; | ||
import ThemeIcon from "./ThemeIcon.astro"; | ||
--- | ||
|
||
<header> | ||
<nav> | ||
<Navigation/> | ||
<Navigation /> | ||
<ThemeIcon /> | ||
<Hamburger/> | ||
<Hamburger /> | ||
</nav> | ||
</header> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
const {title,url} = Astro.props; | ||
const { title, url } = Astro.props; | ||
--- | ||
|
||
<li><a href={url}>{title}</a></li> | ||
<li><a href={url}>{title}</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
--- | ||
|
||
<div class="nav-links"> | ||
<a href="/activity-log/">Home</a> | ||
<a href="/activity-log/about/">About</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
--- | ||
import '../styles/global.css'; | ||
import Header from '../components/Header.astro'; | ||
import Footer from '../components/Footer.astro'; | ||
import "../styles/global.css"; | ||
import Header from "../components/Header.astro"; | ||
import Footer from "../components/Footer.astro"; | ||
const { pageTitle } = Astro.props; | ||
--- | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>{pageTitle}</title> | ||
</head> | ||
<body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>{pageTitle}</title> | ||
</head> | ||
<body> | ||
<Header /> | ||
<h1>{pageTitle}</h1> | ||
<h1>{pageTitle}</h1> | ||
<slot /> | ||
<Footer /> | ||
<script> | ||
import "../scripts/menu.js"; | ||
</script> | ||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
import BaseLayout from './BaseLayout.astro'; | ||
import BaseLayout from "./BaseLayout.astro"; | ||
const { frontmatter } = Astro.props; | ||
--- | ||
|
||
<BaseLayout pageTitle={frontmatter.title}> | ||
<slot /> | ||
<slot /> | ||
</BaseLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
const pageTitle = "About"; | ||
import BaseLayout from '../layouts/BaseLayout.astro'; | ||
import BaseLayout from "../layouts/BaseLayout.astro"; | ||
--- | ||
|
||
<BaseLayout pageTitle={pageTitle}> | ||
<h2>And what do I hope to accomplish with this?</h2> | ||
<p>This is where my about section will be.</p> | ||
</BaseLayout> | ||
</BaseLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
--- | ||
import MarkdownPost from '../components/MarkdownPost.astro'; | ||
import BaseLayout from '../layouts/BaseLayout.astro' | ||
const allPosts = Object.values(import.meta.glob('./fcc/*.md', { eager: true })); | ||
import MarkdownPost from "../components/MarkdownPost.astro"; | ||
import BaseLayout from "../layouts/BaseLayout.astro"; | ||
const allPosts = Object.values(import.meta.glob("./fcc/*.md", { eager: true })); | ||
const pageTitle = "FreeCodeCamp Activity Log"; | ||
--- | ||
|
||
<BaseLayout pageTitle={pageTitle}> | ||
<p>This is what I've worked on for FreeCodeCamp.</p> | ||
<ul> | ||
{allPosts.map((post: any) => <MarkdownPost url={post.url} title={post.frontmatter.title}/>)} | ||
{ | ||
allPosts.map((post: any) => ( | ||
<MarkdownPost url={post.url} title={post.frontmatter.title} /> | ||
)) | ||
} | ||
</ul> | ||
</BaseLayout> | ||
</BaseLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.