Add Magic 8 Ball, add Status Sorting
This commit is contained in:
parent
1971cf4c25
commit
6b8de4defa
4 changed files with 22 additions and 3 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -7,3 +7,6 @@
|
||||||
[submodule "src/pages/rockpaperscissors"]
|
[submodule "src/pages/rockpaperscissors"]
|
||||||
path = src/pages/rockpaperscissors
|
path = src/pages/rockpaperscissors
|
||||||
url = https://git.ixvd.net/logically.cc/rockpaperscissors
|
url = https://git.ixvd.net/logically.cc/rockpaperscissors
|
||||||
|
[submodule "src/pages/8ball"]
|
||||||
|
path = src/pages/8ball
|
||||||
|
url = https://git.ixvd.net/logically.cc/8ball
|
||||||
|
|
1
src/pages/8ball
Submodule
1
src/pages/8ball
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit c14fb12607739f0acd33e932e8445b895dd95b1a
|
|
@ -2,7 +2,20 @@
|
||||||
import Layout from "layouts/primary.astro"
|
import Layout from "layouts/primary.astro"
|
||||||
import ProjectDisplay from "components/projectdisplay.astro";
|
import ProjectDisplay from "components/projectdisplay.astro";
|
||||||
const projects = await Astro.glob('../pages/projects/*.md');
|
const projects = await Astro.glob('../pages/projects/*.md');
|
||||||
|
|
||||||
|
projects.sort((a, b) => {
|
||||||
|
const statusA = a.frontmatter.status;
|
||||||
|
const statusB = b.frontmatter.status;
|
||||||
|
if (statusA !== statusB) {
|
||||||
|
return statusA.localeCompare(statusB);
|
||||||
|
} else {
|
||||||
|
const titleA = a.frontmatter.title;
|
||||||
|
const titleB = b.frontmatter.title;
|
||||||
|
return titleA.localeCompare(titleB);
|
||||||
|
}
|
||||||
|
});
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout>
|
<Layout>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Magic 8 Ball
|
title: Magic 8 Ball
|
||||||
category: Fun
|
category: Fun
|
||||||
status: Planned
|
status: Online
|
||||||
source: https://git.ixvd.net/logically.cc/8ball
|
source: https://git.ixvd.net/logically.cc/8ball
|
||||||
layout: ../../layouts/primary.astro
|
layout: ../../layouts/primary.astro
|
||||||
---
|
---
|
||||||
|
@ -11,5 +11,7 @@ layout: ../../layouts/primary.astro
|
||||||
## Planned Features
|
## Planned Features
|
||||||
- Random Responses
|
- Random Responses
|
||||||
- "Adult" Mode (Responses with cursing)
|
- "Adult" Mode (Responses with cursing)
|
||||||
- Speak aloud
|
|
||||||
- Detect device shaking instead of requiring button press
|
*Version 1.0.0*
|
||||||
|
|
||||||
|
[Open App](/8ball)
|
Loading…
Reference in a new issue