View full database link

This commit is contained in:
Ava Gaiety W 2023-03-15 00:00:50 -05:00
parent a0b4a912f0
commit bdd44afe03
3 changed files with 30 additions and 1 deletions

6
app.js
View file

@ -28,6 +28,12 @@ app.get('/', (req, res) => {
res.render('home', { siteName, pageTitle, data } ) res.render('home', { siteName, pageTitle, data } )
}) })
app.get('/list', (req, res) => {
const pageTitle = "List";
const pronounList = data.map(pronounObject => Object.values(pronounObject).join('/'))
res.render('list', { siteName, pageTitle, pronounList } )
})
app.get('/:nominative/:accusative/:predicative_possessive/:reflexive', (req, res) => { app.get('/:nominative/:accusative/:predicative_possessive/:reflexive', (req, res) => {
const { const {
nominative, nominative,

View file

@ -66,6 +66,26 @@ footer {
background-color: var(--callout); background-color: var(--callout);
} }
.button-cta {
background-color: var(--callout);
color: var(--text-shout);
border-bottom: 2px solid var(--text-shout);
border-left: 1px solid var(--text-shout);
border-radius: 1rem 0.5rem 1rem 0.5rem;
padding: 0.5rem 1rem;
display: inline-block;
}
.button-cta:not(:active) {
margin-bottom: 1px;
margin-left: 1px;
}
.button-cta:active {
border-top: 1px solid var(--text-shout);
border-right: 1px solid var(--text-shout);
transform: translate(-1px, 2px)
}
@media (min-width: 1024px) { @media (min-width: 1024px) {
.t-row:not(:last-child) { .t-row:not(:last-child) {

View file

@ -1,5 +1,8 @@
<div class="flex flex-col gap-8"> <div class="flex flex-col gap-8">
<h1 class="text-3xl">Howl your pronouns loud and proud</h1> <h1 class="text-3xl">Howl your pronouns loud and proud</h1>
<p class="md:w-1/2">Because while we are silly, your gender identity is important. Be your genuine self. Share how you are to be referred to by newer users of neopronouns or English language learners.</p> <p class="md:w-1/2">Because while we are silly, your gender identity is important. Be your genuine self. Share how you are to be referred to by newer users of neopronouns or English language learners.</p>
<div>
<a href="/list" class="button-cta">View full database</a>
</div>
</div> </div>