Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Banner.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
font-weight: bold;
position: relative;
top: 40vh;
margin-left: 85vw;
text-align: right;
margin-right: 4vw;
text-decoration: underline;
text-underline-offset: 0.3em;
Expand Down
28 changes: 28 additions & 0 deletions components/SideNav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.SideNav{
width: max-content;
height: max-content;
font-size: 1.1rem;
background-color: var(--clr-grey-850);
padding-right: 1em;
border-color:var(--clr-grey-100) ;
border-style: solid;
border-width: thin;
position: sticky;
top: 4.3em;
// 4.3 so the navigation box lines up under the navigation bar which is also sticky (I wasn't sure if there was a better way to line them up than using ems)
z-index: 1;


a:link{
color: var(--clr-grey-100);
font-weight: normal;
}
a:visited{
color: var(--clr-grey-100);
font-weight: normal;
}

a:hover{
border-bottom-style: solid;
}
}
20 changes: 20 additions & 0 deletions components/SideNav.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, { ReactPropTypes } from 'react';
import styles from './SideNav.module.scss'

type Props = {
list?: string
link?: string
}
const ListArray = ({list}: Props) => [list]
const LinkArray = ({link}: Props) => [link]

const NavigationAnchor = ({list}: Props) => (
<div className= {styles.SideNav}>
<ul>
<li><a>{ListArray}</a></li>
</ul>
</div>
)


export default NavigationAnchor
1 change: 1 addition & 0 deletions pages/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
--clr-accent-500: hsl(32, 98%, 53%);

--clr-grey-900: hsl(0, 0%, 7%);
--clr-grey-850: hsl(0, 0%, 14%);
--clr-grey-800: hsl(0, 0%, 20%);
--clr-grey-700: hsl(0, 0%, 41%);
--clr-grey-200: hsl(0, 0%, 87%);
Expand Down
15 changes: 0 additions & 15 deletions pages/guides.tsx

This file was deleted.

19 changes: 14 additions & 5 deletions pages/resources.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import Layout from '../components/Layout';
import Layout from '../components/Layout'
import Banner from '../components/Banner';
import Button from '../components/ButtonPrimary';
import Card from '../components/Card'
import SideNav from '../components/SideNav';

const ResourcesPage = () => (
const GuidesPage = () => (
<Layout title="Home | Next.js + TypeScript Example">
<h1>Resources</h1>
<Banner>Resources</Banner>
<SideNav list = 'dsa'></SideNav>
<h1>Hehehaha</h1>
<Button>eat my</Button>
<Card heading='BLSS' link='View full guide'>Blss is a staple of Breath of the wild speedrunning allowing you to traverse large distances almost instantly</Card>
<Card heading='BLSS' link='View full guide'>Blss is a staple of Breath of the wild speedrunning allowing you to traverse large distances almost instantly</Card>
</Layout>
);

export default ResourcesPage;
export default GuidesPage;