diff --git a/src/components/Back.astro b/src/components/Back.astro deleted file mode 100644 index 407b737..0000000 --- a/src/components/Back.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -export interface Props { - url: string; - text?: string; -} -const { text = "Back", url } = Astro.props; ---- - - - - diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 368b0a0..ef56f77 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -6,6 +6,8 @@ export type Link = { newTab?: boolean; }; +const url = Astro.url.pathname.toString(); + export interface Props { links: Array; } @@ -13,43 +15,57 @@ export interface Props { const { links } = Astro.props; --- - + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2a7e6ae..6591750 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,5 @@ --- +import "./reset.css"; import Head from "../components/Head.astro"; import Nav from "../components/Nav.astro"; import type { Link } from "../components/Nav.astro"; @@ -9,10 +10,6 @@ export interface Props { const { title, description } = Astro.props; const links: Link[] = [ - { - url: "/", - icon: "home", - }, { url: "https://ayos.blog", icon: "blog", diff --git a/src/layouts/reset.css b/src/layouts/reset.css new file mode 100644 index 0000000..0fc4eb4 --- /dev/null +++ b/src/layouts/reset.css @@ -0,0 +1,76 @@ +/** +THANKS TO JOSH COMEAU FOR HIS CUSTOM CSS RESET +👉 https://www.joshwcomeau.com/css/custom-css-reset/ +**/ + +/* + 1. Use a more-intuitive box-sizing model. +*/ +*, +*::before, +*::after { + box-sizing: border-box; +} +/* + 2. Remove default margin + */ +* { + margin: 0; +} +/* + 3. Allow percentage-based heights in the application + */ +html, +body { + height: 100%; +} +/* + Typographic tweaks! + 4. Add accessible line-height + 5. Improve text rendering + */ +body { + line-height: 1.5; + -webkit-font-smoothing: antialiased; +} +/* + 6. Improve media defaults + */ +img, +picture, +video, +canvas, +svg, +iframe { + display: block; + max-width: 100%; + margin: 0 auto; +} +/* + 7. Remove built-in form typography styles + */ +input, +button, +textarea, +select { + font: inherit; +} +/* + 8. Avoid text overflows + */ +p, +h1, +h2, +h3, +h4, +h5, +h6 { + overflow-wrap: break-word; +} +/* + 9. Create a root stacking context + */ +#root, +#__next { + isolation: isolate; +} \ No newline at end of file diff --git a/src/pages/now/and-then/index.astro b/src/pages/now/and-then/index.astro index 7e053ad..ac76b14 100644 --- a/src/pages/now/and-then/index.astro +++ b/src/pages/now/and-then/index.astro @@ -1,7 +1,6 @@ --- import Layout from "../../../layouts/Layout.astro"; import Footer from "../../../components/Footer.astro"; -import Back from "../../../components/Back.astro"; import Posts from "../../../components/Posts.astro"; const posts = await Astro.glob("./posts/*.astro"); @@ -10,7 +9,6 @@ const title = "Previously...";
-

{title}

What have I been up to? diff --git a/src/pages/now/and-then/posts/09-20-2022.astro b/src/pages/now/and-then/posts/09-20-2022.astro index 4d47555..3f3126e 100644 --- a/src/pages/now/and-then/posts/09-20-2022.astro +++ b/src/pages/now/and-then/posts/09-20-2022.astro @@ -1,7 +1,6 @@ --- import Layout from "../../../../layouts/Layout.astro"; import Footer from "../../../../components/Footer.astro"; -import Back from "../../../../components/Back.astro"; const title = "Settling in The Netherlands"; const description = "This year (2022) I have moved to The Netherlands with my family; specifically to the northern area of Amsterdam."; @@ -9,7 +8,6 @@ const description =
-

{title}

This year (2022) I have moved to The Netherlands with my family; diff --git a/src/pages/now/index.astro b/src/pages/now/index.astro index 3ded66d..31cf8f3 100644 --- a/src/pages/now/index.astro +++ b/src/pages/now/index.astro @@ -1,7 +1,6 @@ --- import Layout from "../../layouts/Layout.astro"; import Footer from "../../components/Footer.astro"; -import Back from "../../components/Back.astro"; import Posts from "../../components/Posts.astro"; const posts = await Astro.glob("./and-then/posts/*.astro"); @@ -9,7 +8,6 @@ const posts = await Astro.glob("./and-then/posts/*.astro");

-

Now

What am I currently up to?

diff --git a/src/pages/showcase/astro-github-stats.astro b/src/pages/showcase/astro-github-stats.astro index 5e8f20f..1369cbe 100644 --- a/src/pages/showcase/astro-github-stats.astro +++ b/src/pages/showcase/astro-github-stats.astro @@ -1,7 +1,6 @@ --- import Layout from "../../layouts/Layout.astro"; import Footer from "../../components/Footer.astro"; -import Back from "../../components/Back.astro"; import GithubStats from "astro-github-stats"; --- @@ -10,7 +9,6 @@ import GithubStats from "astro-github-stats"; description="Embed GitHub stats on your Astro page" >

-

Astro GitHub Stats

Embed GitHub stats on your Astro page

    diff --git a/src/pages/showcase/astro-reactive-form.astro b/src/pages/showcase/astro-reactive-form.astro index 3e557b6..56f170a 100644 --- a/src/pages/showcase/astro-reactive-form.astro +++ b/src/pages/showcase/astro-reactive-form.astro @@ -1,7 +1,6 @@ --- import Layout from "../../layouts/Layout.astro"; import Footer from "../../components/Footer.astro"; -import Back from "../../components/Back.astro"; import Form, { ControlConfig, FormGroup } from "@astro-reactive/form"; import { Validators } from "@astro-reactive/validator"; @@ -70,7 +69,6 @@ const characteristicsForm: FormGroup = new FormGroup( description="Generate a dynamic form based on your data, and modify programatically" >
    -

    Astro Reactive Form

    Generate a dynamic form based on your data, and modify programatically diff --git a/src/pages/showcase/index.astro b/src/pages/showcase/index.astro index 7ae90e7..0a3b79d 100644 --- a/src/pages/showcase/index.astro +++ b/src/pages/showcase/index.astro @@ -2,7 +2,6 @@ import Layout from "../../layouts/Layout.astro"; import Footer from "../../components/Footer.astro"; import Card from "../../components/Card.astro"; -import Back from "../../components/Back.astro"; ---

    -

    Fun Side Projects

      -

      Social Links