From 5721add857efbada8a24c0379f32098d3ed4b81d Mon Sep 17 00:00:00 2001 From: Maggie Appleton Date: Fri, 10 Sep 2021 10:22:45 +0100 Subject: [PATCH] refactored side menu --- components/Sidemenu.js | 98 ++++++++++++++++++++++++------------------ pages/_app.js | 14 ++++-- pages/index.js | 4 +- tailwind.config.js | 9 ++-- 4 files changed, 73 insertions(+), 52 deletions(-) diff --git a/components/Sidemenu.js b/components/Sidemenu.js index bbb191b..c0a642b 100644 --- a/components/Sidemenu.js +++ b/components/Sidemenu.js @@ -3,48 +3,64 @@ import Link from "next/link"; export default function Sidemenu() { return ( - + {[ + { name: leafSVG, path: "/" }, + + { + name: "What's a Digital Garden?", + path: "/what", + style: "font-bold", }, - }} - className="flex flex-col space-y-3 mt-28 ml-6 w-60 mr-12 text-deepGreen" - > - - - What's a Digital Garden? - - - - - Garden Directory - - - - - Tools for Gardening - - - - - Gardening Tutorials and Guides - - - - - Gardening Theory and Navel-Gazing - - + { name: "Directory", path: "/directory" }, + { name: "Tools", path: "/tools" }, + { name: "Tutorials and Guides", path: "/tutorials" }, + { name: "Theory, Philosophy, & Navel-Gazing", path: "/theory" }, + ].map((item, index) => ( + + + {item.name} + + + ))} ); } + +const leafSVG = ( + + + +); diff --git a/pages/_app.js b/pages/_app.js index 4979a44..c87803e 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,7 +1,13 @@ -import '../styles/tailwind.css' +import "../styles/tailwind.css"; +import Sidemenu from "../components/Sidemenu"; -function MyApp({Component, pageProps}) { - return +function MyApp({ Component, pageProps }) { + return ( +
+ + +
+ ); } -export default MyApp; \ No newline at end of file +export default MyApp; diff --git a/pages/index.js b/pages/index.js index 91663fe..04a3e0d 100644 --- a/pages/index.js +++ b/pages/index.js @@ -4,7 +4,6 @@ import Link from "next/link"; import path from "path"; import Container from "../components/Container"; import Layout from "../components/Layout"; -import Sidemenu from "../components/Sidemenu"; import Card from "../components/Card"; import { gardenFilePath, GARDENS_PATH } from "../utils/mdxUtils"; import { motion } from "framer-motion"; @@ -31,7 +30,6 @@ const tools = [ export default function Index({ gardens }) { return ( - -

+

Garden of Digital Gardens

diff --git a/tailwind.config.js b/tailwind.config.js index e54a1b9..3bc1363 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -11,7 +11,7 @@ module.exports = { extend: { fontFamily: { sans: ["Poppins", ...defaultTheme.fontFamily.sans], - serif: ["Source Serif Pro", ...defaultTheme.fontFamily.mono], + serif: ["Source Serif Pro", ...defaultTheme.fontFamily.serif], }, fontSize: { // Set in Perfect Fourth typescale (1.33) @@ -25,10 +25,11 @@ module.exports = { }, colors: { ...colors, + brightGreen: "#189191", deepGreen: "#136464", - offWhite: "#F7F7F5", - black: "#2B2B2B", - lightBlack: "#3F433E", + offWhite: "#F5F4EF", + black: "#373435", + lightBlack: "#514B4C", orangeRed: "#FF6148", }, },