diff --git a/components/common/NavBar.tsx b/components/common/NavBar.tsx index 1f6d8cf..aab2666 100644 --- a/components/common/NavBar.tsx +++ b/components/common/NavBar.tsx @@ -39,12 +39,12 @@ function NavBar({ options }: NavProps) { const [navList, setNavList] = useState(options); return ( - + -

- InvestBot -

+
+

InvestBot

+

+ Serving anny's community est. 2022 +

+
{navList.map((nav, index) => ( @@ -87,11 +90,11 @@ function NavBar({ options }: NavProps) { ))}

- Login blah blah + Login blah

diff --git a/layouts/HomeLayout.tsx b/layouts/HomeLayout.tsx index fe56766..9485d41 100644 --- a/layouts/HomeLayout.tsx +++ b/layouts/HomeLayout.tsx @@ -1,7 +1,8 @@ // Layout/container used for the main mostly empty landing page, can be used for related pages (credits, about, etc.) -import { AnimatePresence, domAnimation, LazyMotion } from "framer-motion"; +import { AnimatePresence, domAnimation, LazyMotion, m } from "framer-motion"; import Head from "next/head"; +import router from "next/router"; import NavBar from "../components/common/NavBar"; import { NavTemplate } from "./NavTemplates"; @@ -27,7 +28,15 @@ function HomeLayout(props: HomeLayoutProps) { -
{props.children}
+ + {props.children} +
diff --git a/layouts/NavTemplates.tsx b/layouts/NavTemplates.tsx index 4b74c1c..b0ba0c3 100644 --- a/layouts/NavTemplates.tsx +++ b/layouts/NavTemplates.tsx @@ -39,6 +39,10 @@ interface NavTemplate { content: ReactComponentElement | ReactElement; } -const homeMain: NavTemplate[] = []; +const homeMain: NavTemplate[] = [ + { content: }, + { content: }, + { content: }, +]; export { type NavTemplate, homeMain }; diff --git a/pages/about.tsx b/pages/about.tsx new file mode 100644 index 0000000..e42f884 --- /dev/null +++ b/pages/about.tsx @@ -0,0 +1,18 @@ +import Head from "next/head"; +import { ReactElement } from "react"; +import HomeLayout from "../layouts/HomeLayout"; +import { homeMain } from "../layouts/NavTemplates"; + +function About() { + return ( +
+

about

+
+ ); +} + +About.getLayout = function getLayout(page: ReactElement) { + return {page}; +}; + +export default About; diff --git a/pages/contact.tsx b/pages/contact.tsx new file mode 100644 index 0000000..407bd17 --- /dev/null +++ b/pages/contact.tsx @@ -0,0 +1,18 @@ +import Head from "next/head"; +import { ReactElement } from "react"; +import HomeLayout from "../layouts/HomeLayout"; +import { homeMain } from "../layouts/NavTemplates"; + +function About() { + return ( +
+

contact

+
+ ); +} + +About.getLayout = function getLayout(page: ReactElement) { + return {page}; +}; + +export default About; diff --git a/pages/index.tsx b/pages/index.tsx index 2118f0e..5276a4b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,6 +4,7 @@ import HomeLayout from "../layouts/HomeLayout"; import { homeMain } from "../layouts/NavTemplates"; import type { NextPageWithLayout } from "./_app"; import Image from "next/image"; +import Slider from "@mui/material/Slider"; const Home: NextPageWithLayout = () => { let api7tvEmotes = `/api/7tv/emotes?c=61ad997effa9aba101bcfddf`; @@ -33,7 +34,7 @@ const Home: NextPageWithLayout = () => { emoteUrls = emoteUrls.filter((emote: any) => emote !== null); setEmotes(emoteUrls); - console.log(emoteUrls); + setCurrentEmote(Math.floor(Math.random() * emoteUrls.length)); }); console.log(currentEmote); @@ -72,14 +73,53 @@ const Home: NextPageWithLayout = () => { } return ( -
-
-
- Buy high - Sell low - ...or something like that -
-
{slideShow}
+
+
+ + + Buy high + Sell low + + + ...or something like that + + + + {slideShow} +
); diff --git a/styles/globals.css b/styles/globals.css index b5c61c9..800f679 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -1,3 +1,51 @@ @tailwind base; @tailwind components; @tailwind utilities; +@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"); +@import url("https://fonts.googleapis.com/css?family=Plus+Jakarta+Sans:300,400,500,700&display=swap"); + +html, +body { + scroll-behavior: smooth; + overflow-x: hidden; +} + +body { + @apply invisible-scrollbar min-h-screen w-screen overflow-x-hidden overflow-y-scroll scroll-smooth bg-zinc-900 text-white; + position: relative; +} + +body::-webkit-scrollbar, +div::-webkit-scrollbar { + width: 16px; + height: 16px; +} + +.invisible-scrollbar::-webkit-scrollbar { + display: none; +} + +body::-webkit-scrollbar-track, +div::-webkit-scrollbar-track { + background-color: #202225; +} + +body::-webkit-scrollbar-thumb, +body::-webkit-scrollbar-track, +div::-webkit-scrollbar-thumb, +div::-webkit-scrollbar-track { + border: 4px solid transparent; + background-clip: padding-box; + border-radius: 8px; +} + +body::-webkit-scrollbar-thumb, +div::-webkit-scrollbar-thumb { + background-color: #2f3136; + min-height: 40px; +} + +body::-webkit-scrollbar-corner, +div::body::-webkit-scrollbar-corner { + background-color: transparent; +} diff --git a/tailwind.config.js b/tailwind.config.js index e189919..68e017a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -6,7 +6,12 @@ module.exports = { "./layouts/**/*.{js,ts,jsx,tsx}", ], theme: { - extend: {}, + extend: { + fontFamily: { + roboto: ["Roboto", "sans-serif"], + plusJakarta: ["Plus Jakarta Sans", "sans-serif"], + }, + }, }, plugins: [], };