-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize the website to focus on the main No Agenda entities while …
…moving in-depth information to an About section, and integrate noagenda.stream
- Loading branch information
1 parent
653fe51
commit 26cb2dd
Showing
57 changed files
with
1,790 additions
and
1,251 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
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,44 @@ | ||
import { Controller } from '@hotwired/stimulus'; | ||
|
||
export default class extends Controller { | ||
static targets = [ | ||
'button', | ||
'menu', | ||
]; | ||
|
||
connect() { | ||
this.buttonTarget.setAttribute('role', 'button'); | ||
this.buttonTarget.setAttribute('aria-controls', 'about-menu'); | ||
this.menuTarget.setAttribute('aria-hidden', 'true'); | ||
|
||
this.hide(); | ||
} | ||
|
||
toggle() { | ||
if (this.hidden) { | ||
this.show(); | ||
} else { | ||
this.hide(); | ||
} | ||
} | ||
|
||
show() { | ||
this.menuTarget.style.maxHeight = `${this.menuTarget.scrollHeight}px`; | ||
|
||
this.buttonTarget.setAttribute('title', 'Hide menu'); | ||
this.buttonTarget.setAttribute('aria-expanded', 'true'); | ||
this.menuTarget.setAttribute('aria-hidden', 'false'); | ||
|
||
this.hidden = false; | ||
} | ||
|
||
hide() { | ||
this.menuTarget.style.maxHeight = null; | ||
|
||
this.buttonTarget.setAttribute('title', 'Expand menu'); | ||
this.buttonTarget.setAttribute('aria-expanded', 'false'); | ||
this.menuTarget.setAttribute('aria-hidden', 'true'); | ||
|
||
this.hidden = true; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@import "../mixins"; | ||
@import "../variables"; | ||
|
||
.about-row { | ||
max-width: $container-max-width; | ||
width: $container-width; | ||
margin: 0 auto; | ||
|
||
.about-menu { | ||
display: flex; | ||
flex-direction: column; | ||
gap: $gap-tiny; | ||
|
||
a { | ||
padding: 6px $gap-tiny; | ||
background-color: var(--accent-1); | ||
border-radius: 4px; | ||
text-decoration: none; | ||
|
||
&:active, | ||
&:hover { | ||
background-color: var(--accent-2); | ||
} | ||
|
||
&.active { | ||
background-color: var(--accent-2); | ||
|
||
&:active, | ||
&:hover { | ||
background-color: var(--accent-3); | ||
} | ||
} | ||
} | ||
|
||
.title { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: $gap-small; | ||
font-size: 1.3em; | ||
|
||
@include breakpoint-large-up { | ||
display: none; | ||
} | ||
|
||
&:hover { | ||
color: var(--highlight-color); | ||
} | ||
} | ||
|
||
.menu { | ||
display: flex; | ||
flex-direction: column; | ||
gap: $gap-tiny; | ||
max-height: 0; | ||
overflow: hidden; | ||
transition: max-height .5s; | ||
|
||
@include breakpoint-large-up { | ||
max-height: none !important; | ||
} | ||
} | ||
|
||
.spacer { | ||
height: $gap; | ||
} | ||
} | ||
|
||
@include breakpoint-large-down { | ||
margin-top: $gap-huge; | ||
} | ||
|
||
@include breakpoint-large-up { | ||
display: flex; | ||
align-items: stretch; | ||
gap: $gap; | ||
margin: $gap-huge auto; | ||
|
||
.about-menu { | ||
padding-top: 5em; | ||
width: 25%; | ||
} | ||
|
||
.about-content { | ||
width: 75%; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@import "../mixins"; | ||
@import "../variables"; | ||
|
||
.footer { | ||
border-top: 1px solid var(--accent-2); | ||
margin-bottom: $gap-giga !important; | ||
|
||
ul { | ||
padding-left: 0; | ||
|
||
li { | ||
font-size: 1.1em; | ||
list-style-type: none; | ||
|
||
+ li { | ||
margin-top: $gap-small; | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.