diff --git a/components/Hamburger.vue b/components/Hamburger.vue
new file mode 100644
index 0000000..3e713e5
--- /dev/null
+++ b/components/Hamburger.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
diff --git a/components/Navbar.vue b/components/Navbar.vue
index 21d330e..00c96de 100644
--- a/components/Navbar.vue
+++ b/components/Navbar.vue
@@ -1,19 +1,20 @@
+
@@ -42,29 +43,24 @@ li.home-text {
}
.hamburger {
- height: 1px;
- width: 1px;
+ transform: scale(0);
opacity: 0;
}
* {
--trans: 0.2s ease;
- transition: opacity var(--trans), height var(--trans), width var(--trans),
- padding-left var(--trans);
+ transition: opacity var(--trans), transform var(--trans);
}
@media screen and (max-width: 510px) {
.hamburger {
display: flex;
- padding-left: 1rem;
- height: unset;
- width: unset;
+ transform: none;
opacity: 1;
}
li:not(.home-text) {
- height: 1px;
- width: 1px;
+ transform: scale(0);
opacity: 0;
/* accessibility? screw accessibility
* i want my pretty animations
diff --git a/composables/metadata.ts b/composables/metadata.ts
new file mode 100644
index 0000000..130827a
--- /dev/null
+++ b/composables/metadata.ts
@@ -0,0 +1,7 @@
+/**
+ * Set the page title in the format [title] | Eggworld.
+ * @param title The title string.
+ */
+export function useTitle(title: string) {
+ useHead({ title: `${title} | Eggworld` });
+}
diff --git a/data/navItems.ts b/data/navItems.ts
new file mode 100644
index 0000000..180f6cb
--- /dev/null
+++ b/data/navItems.ts
@@ -0,0 +1,7 @@
+export const navItems = [
+ { href: "/about", title: "About" },
+ { href: "/blog", title: "Blog" },
+ { href: "/stories", title: "Stories" },
+];
+
+export default navItems;
diff --git a/layouts/default.vue b/layouts/default.vue
index 17b7a58..512ba51 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -58,7 +58,7 @@ html.dark::before {
main {
width: 80%;
max-width: 60rem;
- height: 100%;
+ min-height: 100%;
margin: auto;
padding-top: 2rem;
}
diff --git a/pages/[...slug].vue b/pages/[...slug].vue
index d9045c1..3c48198 100644
--- a/pages/[...slug].vue
+++ b/pages/[...slug].vue
@@ -1,3 +1,5 @@
+
+
diff --git a/pages/about.vue b/pages/about.vue
index cd0cc1e..cd90776 100644
--- a/pages/about.vue
+++ b/pages/about.vue
@@ -1,5 +1,5 @@
diff --git a/pages/blog.vue b/pages/blog.vue
index adc8c75..79dfc9c 100644
--- a/pages/blog.vue
+++ b/pages/blog.vue
@@ -1,5 +1,5 @@
diff --git a/pages/index.vue b/pages/index.vue
index c498ab8..063473f 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,5 @@
@@ -11,6 +11,8 @@ useHead({ title: "Home | Eggworld" });
Latest story
Latest commit w/details
+ SERVICES
+ ABOUT
diff --git a/pages/stories.vue b/pages/stories.vue
index 949b9f2..9e82df2 100644
--- a/pages/stories.vue
+++ b/pages/stories.vue
@@ -1,5 +1,5 @@