-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf659e4
commit 2a1224c
Showing
17 changed files
with
476 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
import Sticker from "../items/Sticker.astro"; | ||
import StickerText from "../items/StickerText.astro"; | ||
interface Props { | ||
} | ||
const { } = Astro.props; | ||
--- | ||
|
||
<div class="content"> | ||
<!-- <StickerText></StickerText> --> | ||
</div> | ||
|
||
<style lang="scss"> | ||
@use "easy-theme" as theme; | ||
|
||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
// background-color: rgba(0,0,0,0.05); | ||
width: 100%; | ||
height: 100%; | ||
max-width: 800px; | ||
margin: auto; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,46 @@ | ||
<div class="navMenu"> | ||
--- | ||
import { navItems } from '../../lib/Pages.lib'; | ||
import NavigationMenuItem from './NavigationMenuItem.astro' | ||
--- | ||
|
||
<div class="navMenu" id="menuSheet" tabindex="0"> | ||
<ul class="navMenuItems"> | ||
{ navItems.map((item, index) => ( | ||
<NavigationMenuItem {...item} index={index}></NavigationMenuItem> | ||
)) } | ||
</ul> | ||
</div> | ||
|
||
<style lang="scss"> | ||
@use "../../styles/lib/helpers" as helpers; | ||
|
||
@include helpers.showMenu() { | ||
.navMenu { | ||
transform: translateY(0%); | ||
pointer-events: all; | ||
} | ||
} | ||
|
||
.navMenu { | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 0%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: var(--contrast); | ||
color: var(--background); | ||
pointer-events: none; | ||
transition: var(--transitionSlow); | ||
z-index: 5; | ||
transform: translateY(-100%); | ||
transition: var(--transitionSlow); | ||
} | ||
|
||
body:has(#menu:checked) { | ||
.navMenu { | ||
height: 100%; | ||
} | ||
.navMenuItems { | ||
list-style: none; | ||
margin: auto; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
interface Props { | ||
href: string; | ||
label: string; | ||
index: number; | ||
} | ||
const { href, label, index } = Astro.props; | ||
--- | ||
|
||
<li class='navMenuItem'> | ||
<a href={ '#' + href }> | ||
0.{ index + 1 } | ||
|
||
<span> | ||
{ label } | ||
</span> | ||
</a> | ||
</li> | ||
|
||
<style lang="scss"> | ||
@use "easy-theme" as theme; | ||
|
||
.navMenuItem { | ||
transition: .3s ease; | ||
border-left: var(--border); | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
white-space: nowrap; | ||
background-color: var(--background); | ||
overflow: hidden; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="name"> | ||
<p class="nameItem">Haydn</p> | ||
<p class="nameItem">Comley</p> | ||
</div> | ||
|
||
<style lang="scss"> | ||
.name { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.nameItem { | ||
font-family: 'Playfair Display', serif; | ||
font-weight: 900; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
font-style: italic; | ||
|
||
&:nth-child(2) { | ||
margin-left: .4em; | ||
margin-top: -.3em; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
interface Props { | ||
style: 'dark' | 'darker'; | ||
} | ||
const { style } = Astro.props; | ||
--- | ||
|
||
<div class:list={['sidebar', { 'darker': style === 'darker' }]}> | ||
<slot></slot> | ||
</div> | ||
|
||
<style lang="scss"> | ||
@use "easy-theme" as theme; | ||
|
||
.sidebar { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
background-color: theme.Color('primary', 'dark'); | ||
color: theme.Contrast('primary'); | ||
border-right: theme.Variable('border'); | ||
box-sizing: border-box; | ||
width: 15rem; | ||
transition: width 0.5s ease; | ||
|
||
@include theme.Mobile { | ||
width: 100%; | ||
border-right: none; | ||
border-bottom: theme.Variable('border'); | ||
transition: transform 0.5s ease; | ||
} | ||
|
||
&:nth-of-type(2) { | ||
transition-delay: 0.075s; | ||
z-index: -1; | ||
} | ||
|
||
&.darker { | ||
background-color: theme.Color('primary', 'darker'); | ||
} | ||
} | ||
|
||
:global(#sidebar:not(:checked)) ~ .sidebar { | ||
width: calc(theme.Variable('spacing') * 4); | ||
|
||
@include theme.Mobile { | ||
width: 100%; | ||
|
||
&:nth-of-type(2) { | ||
transform: translateY(-100%); | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.