commit d33f4e8c643f52f796ee394a8a9a3e26223e9609 Author: Logic Kenzie Date: Sun Sep 24 12:21:33 2023 -0500 Upload the first revision of the central site. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8758098 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# build output +dist/ +# generated types +.astro/ + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store + +# ide files +.idea/ +.vscode/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..af49ed5 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# LogicallyLogi Central Site \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..2d8fa4a --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,8 @@ +import { defineConfig } from 'astro/config'; + +import alpinejs from "@astrojs/alpinejs"; + +// https://astro.build/config +export default defineConfig({ + integrations: [alpinejs()] +}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5c3830e --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "logicallylogi", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "start": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "@astrojs/alpinejs": "^0.3.0", + "@types/alpinejs": "^3.0.0", + "alpinejs": "^3.0.0", + "astro": "^3.1.0" + } +} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..19eb42f Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/logo.webp b/public/logo.webp new file mode 100644 index 0000000..8cb9d2e Binary files /dev/null and b/public/logo.webp differ diff --git a/src/components/blogpost.astro b/src/components/blogpost.astro new file mode 100644 index 0000000..b398360 --- /dev/null +++ b/src/components/blogpost.astro @@ -0,0 +1,8 @@ +--- +const { object } = Astro.props +--- +
+

{object.rawContent().split("\n")[0].replaceAll("#", "")}

+

{object.rawContent().split("\n").slice(1, 10).join("").split(" ").slice(0, 200).join(" ").replaceAll("#", "")}

+ Read More => +
\ No newline at end of file diff --git a/src/components/projectdisplay.astro b/src/components/projectdisplay.astro new file mode 100644 index 0000000..bb3c57c --- /dev/null +++ b/src/components/projectdisplay.astro @@ -0,0 +1,47 @@ +--- +const { object } = Astro.props +--- + + + {object.frontmatter.title} + {object.frontmatter.category} + Source on {new URL(object.frontmatter.source).hostname} + {object.frontmatter.status} + View + \ No newline at end of file diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/layouts/primary.astro b/src/layouts/primary.astro new file mode 100644 index 0000000..e3b3211 --- /dev/null +++ b/src/layouts/primary.astro @@ -0,0 +1,68 @@ +--- +const { title } = Astro.props +--- + + + + + {title} ~LogicallyLogi~ + + + + +
+ logo + + Home + About Me + Blog + Projects +
+
+
+ +
+
+ + \ No newline at end of file diff --git a/src/pages/about.astro b/src/pages/about.astro new file mode 100644 index 0000000..4292751 --- /dev/null +++ b/src/pages/about.astro @@ -0,0 +1,14 @@ +--- +import Layout from "../layouts/primary.astro" +--- + +

Hi there!

+ My name is Logic. I'm what you may call... a logical developer. +
+
My goal is to make the world a better place, one line of code at a time.
+
+ logicallylogi@skiff.com +
+ @logi:ixvd.net +
+
\ No newline at end of file diff --git a/src/pages/blog.astro b/src/pages/blog.astro new file mode 100644 index 0000000..faa3383 --- /dev/null +++ b/src/pages/blog.astro @@ -0,0 +1,8 @@ +--- +import Layout from "../layouts/primary.astro" +import BlogPost from "../components/blogpost.astro" +const allPosts = await Astro.glob('../pages/blog/*.md'); +--- + + {allPosts.map((post) => )} + \ No newline at end of file diff --git a/src/pages/blog/first.md b/src/pages/blog/first.md new file mode 100644 index 0000000..a3ae0c7 --- /dev/null +++ b/src/pages/blog/first.md @@ -0,0 +1,6 @@ +--- +title: First Post +layout: ../../layouts/primary.astro +--- +# Welcome to the Logical Blog! +This blog is going to eventually contain lots of writing about psychology, technology, and AI! \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..92be02f --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,6 @@ +--- +import Layout from "../layouts/primary.astro" +--- + +

Welcome to ~LogicallyLogi~

+
\ No newline at end of file diff --git a/src/pages/projects.astro b/src/pages/projects.astro new file mode 100644 index 0000000..94ec95a --- /dev/null +++ b/src/pages/projects.astro @@ -0,0 +1,21 @@ +--- +import Layout from "../layouts/primary.astro" +import ProjectDisplay from "../components/projectdisplay.astro"; +const projects = await Astro.glob('../pages/projects/*.md'); +--- + + + + + + + + + + + + + {projects.map((post) => )} + +
NameCategorySourceStatusLink
+
\ No newline at end of file diff --git a/src/pages/projects/social.md b/src/pages/projects/social.md new file mode 100644 index 0000000..4432929 --- /dev/null +++ b/src/pages/projects/social.md @@ -0,0 +1,7 @@ +--- +title: LogicallySocial +category: Social +status: Planned +source: https://git.ixvd.net/logi/social +layout: ../../layouts/primary.astro +--- diff --git a/src/pages/projects/speedtest.md b/src/pages/projects/speedtest.md new file mode 100644 index 0000000..465c360 --- /dev/null +++ b/src/pages/projects/speedtest.md @@ -0,0 +1,8 @@ +--- +title: LogicalSpeedTest +category: Utility +status: Offline +source: https://git.ixvd.net/logicallylogi.me/speedtest +layout: ../../layouts/primary.astro +--- +[Check your speed now](/speedtest) \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3fd7ae6 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "astro/tsconfigs/strictest" +} \ No newline at end of file