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
20 changes: 20 additions & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,26 @@ const Footer = () => {
<Link href="/about/contact">Contact</Link>
</p>
</div>
<div id={styles.cell}>
<h3 id={styles.department}>
Want to see past articles?
</h3>
<div className={`${styles.dropdown}`}>
<button className={styles.dropbtn}>
Issues
</button>
<div id={styles.dropDownContent}>
{[...Array(13)].map((_, index) => {
const i = 13 - index;
return (
<div key={i}>
<Link href={`/volume/113/issue/${i}`}>Issue {i}</Link>
</div>
);
})}
</div>
</div>
</div>
<div id={styles.cell}>
<h3
id={styles.department}
Expand Down
13 changes: 13 additions & 0 deletions styles/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,16 @@
justify-self: start;
}
}
.dropbtn {
background-color: #3c3c3c;
color: white;
padding: 16px;
font-size: 16px;
border: none;
}

.dropDownContent a:hover {background-color: #ddd;}

.dropdown:hover .dropDownContent {display:block;}

.dropdown:hover .dropbtn {background-color: #8c8c8c;}
17 changes: 17 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,20 @@ a {
.discrete-link:focus {
text-decoration-color: var(--accent);
}

div#Footer_dropDownContent__500B8 {
display: block;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}

div#Footer_dropDownContent__500B8 a {
text-decoration: none;
display:block;
padding: 5px;
}

div#Footer_dropDownContent__500B8 a:hover {background-color: #ddd;}

.Footer_dropdown__d7nLj:hover .Footer_dropDownContent__500B8 {display:block;}