-
Developers
-
+
Developers
+
This project was planned, designed, and
implemented by: Layan Barrieshee, Dony Wang, Haoran Miao, Ayana Hussain.
+
GitHub
diff --git a/app/taxonomy/page.tsx b/app/taxonomy/page.tsx
new file mode 100644
index 0000000..13c93c0
--- /dev/null
+++ b/app/taxonomy/page.tsx
@@ -0,0 +1,18 @@
+import {taxonomy} from "@/app/taxonomy";
+import styles from "./taxonomy.module.css"
+
+export default function Page() {
+ function tax(n: string, lv: number) {
+ return
+
+
+
{taxonomy[n]["c"].map((s: string) => tax(s, lv + 1))}
+
+ }
+
+ return
+
+ {tax("Viridiplantae", 0)}
+
+
+}
\ No newline at end of file
diff --git a/app/taxonomy/taxonomy.module.css b/app/taxonomy/taxonomy.module.css
new file mode 100644
index 0000000..1fb8696
--- /dev/null
+++ b/app/taxonomy/taxonomy.module.css
@@ -0,0 +1,42 @@
+.tax {
+ padding: 3em;
+ overflow: auto;
+ height: calc(100vh - 96px);
+ font-weight: bold;
+}
+
+.tax input {
+ display: none;
+}
+
+.tax label {
+ padding: 0.2em;
+ border-radius: 0.2em;
+ transition: background-color 0.2s ease;
+}
+
+.tax label:hover {
+ background: #eeffe0 !important;
+}
+
+.tax input:checked ~ label {
+ background: #deffc4;
+}
+
+.tax input:checked ~ .inner {
+ display: block;
+}
+
+.outer {
+ display: flex;
+ align-items: center;
+}
+
+.inner {
+ display: none;
+ margin: 0.2em;
+ padding: 0.2em;
+ border-image: linear-gradient(90deg, #78b75f, #fff 20%) 2;
+ border-width: 2px 0 2px 2px;
+ border-style: solid;
+}
\ No newline at end of file