diff --git a/src/assets/banner-alt.webp b/src/assets/banner-alt.webp deleted file mode 100644 index d6aa905..0000000 Binary files a/src/assets/banner-alt.webp and /dev/null differ diff --git a/src/assets/banner.png b/src/assets/banner.png new file mode 100644 index 0000000..0c426cb Binary files /dev/null and b/src/assets/banner.png differ diff --git a/src/assets/cupcake.jpg b/src/assets/cupcake.jpg new file mode 100644 index 0000000..c1abfa5 Binary files /dev/null and b/src/assets/cupcake.jpg differ diff --git a/src/assets/leg.jpg b/src/assets/fumble.jpg similarity index 100% rename from src/assets/leg.jpg rename to src/assets/fumble.jpg diff --git a/src/content/content.ts b/src/content/content.ts index 0febbe0..e932ca1 100644 --- a/src/content/content.ts +++ b/src/content/content.ts @@ -7,7 +7,6 @@ const postsCollection = defineCollection({ title: z.string(), description: z.string(), pubDate: z.date(), - image: z.string().optional(), tags: z.array(z.string()), }), }); @@ -18,7 +17,6 @@ const projectsCollection = defineCollection({ draft: z.boolean().optional(), title: z.string(), description: z.string(), - image: z.string().optional(), tags: z.array(z.string()), }), }); diff --git a/src/content/posts/code-examples.md b/src/content/posts/code-examples.md index 261b723..37c708f 100644 --- a/src/content/posts/code-examples.md +++ b/src/content/posts/code-examples.md @@ -2,15 +2,10 @@ title: "Code Examples" description: "Aurghhhhhh" pubDate: 2022-07-08 -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Tennis balls" tags: - "Gaybo" --- -Penitc - ```astro --- import { getPosts } from "../../utils"; diff --git a/src/content/posts/example.md b/src/content/posts/example.md deleted file mode 100644 index 439e493..0000000 --- a/src/content/posts/example.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: This is an example Post -description: "Blamby ford" -pubDate: 2022-07-08 -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Thumbnail of Astro arcs." -tags: - - "GwaGwa" - - "Gaming" - - "Urchin" - - "Fortnite" ---- - -aurgh diff --git a/src/content/posts/image-examples.md b/src/content/posts/image-examples.md new file mode 100644 index 0000000..2056dcc --- /dev/null +++ b/src/content/posts/image-examples.md @@ -0,0 +1,11 @@ +--- +title: "Image Examples" +description: "fug" +pubDate: 2024-07-08 +tags: + - "Faggo" +--- + +![Image](../../assets/cupcake.jpg) + +critter time!!!! diff --git a/src/content/posts/markdown-cheat-sheet.md b/src/content/posts/markdown-cheat-sheet.md index 0b66d2a..1687d75 100644 --- a/src/content/posts/markdown-cheat-sheet.md +++ b/src/content/posts/markdown-cheat-sheet.md @@ -1,12 +1,7 @@ --- -#draft: true - title: This is an example Post description: "Cheat Sheet for Markdown" pubDate: 2022-07-08 -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Thumbnail of Astro arcs." tags: - "Faggor" --- diff --git a/src/content/projects/example-2.md b/src/content/projects/example-2.md deleted file mode 100644 index 2de77b3..0000000 --- a/src/content/projects/example-2.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Project 2 -description: Another one -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Thumbnail of Astro arcs." -tags: - - "GwaGwa" - - "Gaming" - - "Urchin" - - "Fortnite" ---- - -AURGH diff --git a/src/content/projects/example.md b/src/content/projects/example.md deleted file mode 100644 index 91aad6f..0000000 --- a/src/content/projects/example.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Project 1 -description: Example Project Im working on -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Thumbnail of Astro arcs." -tags: - - "GwaGwa" - - "Gaming" - - "Urchin" - - "Fortnite" ---- - -Gay Balls even diff --git a/src/content/projects/gwagwa.md b/src/content/projects/gwagwa.md index d306616..a53aec6 100644 --- a/src/content/projects/gwagwa.md +++ b/src/content/projects/gwagwa.md @@ -1,9 +1,6 @@ --- title: GwaGwa -description: :3 -image: - url: "https://docs.astro.build/assets/arc.webp" - alt: "Thumbnail of Astro arcs." +description: This astro page tags: - "GwaGwa" - "Gaming" @@ -11,4 +8,8 @@ tags: - "Fortnite" --- -gwagwa +Im actually going to blow up + + +I FUCKING HATE JAVASCRIPT + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 1a2574c..49cf87f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,7 +1,6 @@ --- -import { Picture, getImage } from 'astro:assets'; - import "../styles/styles.scss"; +import Banner from "../assets/banner.png"; interface Props { title: string; @@ -9,14 +8,7 @@ interface Props { alt: string, } -const { title, image, alt } = Astro.props; - -let imageData = await getImage({ - src: image, - format: "jpeg", - width: 1080, - height: 700, -}); +const { title} = Astro.props; --- @@ -36,15 +28,13 @@ let imageData = await getImage({
@@ -52,9 +42,10 @@ let imageData = await getImage({
diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro index 4bb38a9..12040c9 100644 --- a/src/layouts/Markdown.astro +++ b/src/layouts/Markdown.astro @@ -9,8 +9,6 @@ interface Props { } const { post, prev, next, base } = Astro.props; - -const { Content } = await post.render(); --- @@ -29,7 +27,7 @@ const { Content } = await post.render();
- +
@@ -68,9 +66,6 @@ const { Content } = await post.render(); align-content: center; > li > .button { - // background-color: transparent; - // padding: 0 16px; - min-width: 35px; height: 35px; @@ -181,22 +176,12 @@ const { Content } = await post.render(); } } - // pre { - // padding: 8px; - // - // white-space: pre-wrap; - // word-wrap: break-word; - // - // border-radius: $radius; - // background-color: $gray !important; - // color: $light; - // - // overflow-x: scroll; - // - // > code { - // padding: 0; - // } - // } + img { + max-width: 100%; + height: auto; + + border-radius: $radius; + } .astro-code { margin: 16px 0; @@ -241,7 +226,7 @@ const { Content } = await post.render(); background-color: $gray; > h2 { - padding-top: 0; + margin-top: 0; } } } diff --git a/src/pages/index.astro b/src/pages/index.astro index 388089b..52fe857 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,13 +1,11 @@ --- import { getCollection } from "astro:content"; -import { getImage } from "astro:assets"; import { getPosts } from "../utils"; import Layout from "../layouts/Layout.astro"; import Card from "../components/Card.astro"; import Certificate from "../components/Certificate.astro"; import Music from "../components/Music.astro"; -import BannerImg from "../assets/banner-alt.webp"; const tools = ["Proxmox", "JetBrain IDEs", "Docker", "Linux", "SQLite", "Postgres", "MySQL"]; const languages = ["Go", "Python", "HTML", "CSS", "Sass", "TypeScript", "JavaScript", "Scratch", "PHP", "SQL", "Bash"]; @@ -15,11 +13,9 @@ const frameworks = ["Gin", "Echo", "Flask", "Svelte", "Astro", "raylib"]; const certificates = await getCollection("certificates"); const projects = await getPosts("projects"); const posts = await getPosts("posts"); - -const image = await getImage({src: BannerImg}); --- - +

Leggy Land

Made with Coffee, lots of it.

diff --git a/src/pages/leg.astro b/src/pages/leg.astro index e7f42ad..48b6977 100644 --- a/src/pages/leg.astro +++ b/src/pages/leg.astro @@ -1,15 +1,10 @@ --- -import { Picture, getImage } from "astro:assets"; - import Layout from "../layouts/Layout.astro"; import HomeButton from "../components/HomeButton.astro"; -import GwaGwa from "../assets/leg.jpg"; -import BannerImg from "../assets/banner-alt.webp"; - -const image = await getImage({src: BannerImg}); +import GwaGwa from "../assets/fumble.jpg"; --- - +
@@ -19,14 +14,11 @@ const image = await getImage({src: BannerImg});
- diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 46c3509..652b507 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -17,8 +17,12 @@ export async function getStaticPaths() { } const { post, prev, next } = Astro.props; + +const { Content } = await post.render(); --- - - + + + + diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro index 91de683..8d11cf7 100644 --- a/src/pages/posts/index.astro +++ b/src/pages/posts/index.astro @@ -1,17 +1,13 @@ --- -import { getImage } from "astro:assets"; - import { getPosts } from "../../utils"; import Layout from "../../layouts/Layout.astro"; import HomeButton from "../../components/HomeButton.astro"; import Card from "../../components/Card.astro"; -import BannerImg from "../../assets/banner-alt.webp"; -const image = await getImage({src: BannerImg}); const posts = await getPosts("posts"); --- - +
diff --git a/src/pages/projects/[...slug].astro b/src/pages/projects/[...slug].astro index c4763ac..61b04ba 100644 --- a/src/pages/projects/[...slug].astro +++ b/src/pages/projects/[...slug].astro @@ -17,8 +17,12 @@ export async function getStaticPaths() { } const { post, prev, next } = Astro.props; + +const { Content } = await post.render(); --- - - - + + + + + \ No newline at end of file diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index df15563..38d4308 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -1,17 +1,13 @@ --- -import { getImage } from "astro:assets"; - import { getPosts } from "../../utils"; import Layout from "../../layouts/Layout.astro"; import Card from "../../components/Card.astro"; import HomeButton from "../../components/HomeButton.astro"; -import BannerImg from "../../assets/banner-alt.webp"; -const image = await getImage({src: BannerImg}); const projects = await getPosts("projects"); --- - +
diff --git a/src/styles/_banner.scss b/src/styles/_banner.scss index ff54528..8af614b 100644 --- a/src/styles/_banner.scss +++ b/src/styles/_banner.scss @@ -9,7 +9,7 @@ overflow: hidden; - > picture > img { + > img { width: 100%; height: 100%;