Compare commits

...

2 Commits

Author SHA1 Message Date
7f4dbebd6f finish split nav out; add directory page 2025-12-28 11:39:01 -08:00
dde23f91de split nav css out 2025-12-28 11:37:58 -08:00
7 changed files with 201 additions and 107 deletions

View File

@ -17,6 +17,7 @@
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- CSS -->
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/nav.css">
<link rel="stylesheet" href="/css/artist.css">
</head>
<body>

48
css/directory.css Normal file
View File

@ -0,0 +1,48 @@
#directory {
display: grid;
flex-flow: row wrap;
grid-template-columns: repeat(2, 1fr);
gap: 3rem;
}
@media (max-width: 850px) {
#directory {
grid-template-columns: 1fr;
}
}
#directory li {
list-style: none;
border: solid thin var(--color-accent);
border-radius: .5rem;
outline-offset: .1rem;
}
@media (any-hover: hover) {
#directory li:hover {
outline: solid .25rem var(--color-accent);
}
}
#directory li:focus-within {
outline: solid .25rem var(--color-accent);
}
#directory a {
text-decoration: none;
margin: 0;
}
#directory a:focus-visible {
outline: none; /* outline handled by li:focus-within */
}
#directory h2 {
text-align: center;
margin-top: 1rem;
}
#directory img {
margin: 0;
border-radius: 0 0 .5rem .5rem;
}

View File

@ -36,7 +36,7 @@ body {
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding-top: 2rem;
padding: 1rem 0 2rem;
}
header,
@ -52,7 +52,7 @@ main {
}
}
@media (min-width: 1800px) {
@media (min-width: 2000px) {
header,
main {
width: 45%;
@ -61,24 +61,7 @@ main {
img {
display: block;
}
header img {
max-height: 25vh;
max-width: 100%;
margin: 0 auto;
}
@media (prefers-color-scheme: light) {
#logo-dark {
display: none;
}
}
@media (prefers-color-scheme: dark) {
#logo-light {
display: none;
}
}
h1 {
@ -134,85 +117,3 @@ main > p {
margin-left: 1.25rem;
}
}
ul {
background-color: var(--color-alt);
padding: .5rem;
border-radius: 0 0 1rem 1rem;
}
main > ul {
margin-left: 2.5rem;
}
@media (max-width: 650px) {
main > ul {
margin-left: 1.25rem;
}
}
li {
line-height: 2rem;
}
nav {
margin: 0 auto 1rem;
}
nav a {
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid thin var(--color-accent);
border-radius: .25rem;
}
@media (any-hover: hover) {
nav a:hover {
outline: solid .25rem var(--color-accent);
}
}
footer {
width: 95%;
margin: 0 auto;
padding: 0 0 1rem;
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
margin: 1rem 0 0;
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}
#contacts {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
column-gap: 3rem;
margin: 0 0 1rem;
}
#market-list {
display: flex;
}
#market-list li {
list-style: none;
font-size: 1rem;
}
#market-list li:not(:last-child)::after {
content: '⦿';
}

72
css/nav.css Normal file
View File

@ -0,0 +1,72 @@
/* top nav */
nav {
margin: 0 auto 1.5rem;
}
nav a {
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
border: solid thin var(--color-accent);
border-radius: .25rem;
}
@media (any-hover: hover) {
nav a:hover {
outline: solid .25rem var(--color-accent);
}
}
nav:has(#directory-link) {
text-align: right;
}
header img {
max-height: 25vh;
max-width: 100%;
margin: 0 auto;
}
@media (prefers-color-scheme: light) {
#logo-dark {
display: none;
}
}
@media (prefers-color-scheme: dark) {
#logo-light {
display: none;
}
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
padding: 0 0 1rem;
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}
#contacts {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
column-gap: 3rem;
margin: 1rem 0 0;
}

71
directory/index.html Normal file
View File

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Directory | Markets at the Beall Greenhouses</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/" />
<meta name="description" content="Directory | Markets at the Beall Greenhouses" />
<meta name="robots" content="index,follow" />
<meta property="og:title" content="Directory | Markets at the Beall Greenhouses" />
<meta property="og:type" content="article" />
<meta property="og:url" content="/" />
<meta property="og:description" content="Directory | Markets at the Beall Greenhouses" />
<meta property="og:image" content="/img/logo-light.png" />
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- CSS -->
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/nav.css">
<link rel="stylesheet" href="/css/directory.css">
<link rel="stylesheet" href="/css/artist.css">
</head>
<body>
<div id="content">
<header>
<nav>
<a href="/">↩ back home</a>
</nav>
<img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
<img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
</header>
<main>
<h1>Markets at the Beall Greenhouses</h1>
<ol id="directory">
<li>
<a href="/2025/solstice">
<h2>Solstice 2025</h2>
<img src="/img/filler0.jpg" alt="a filler image for testing" />
</a>
</li>
<li>
<a href="/2025/solstice">
<h2>Solstice 2025</h2>
<img src="/img/filler0.jpg" alt="a filler image for testing" />
</a>
</li>
</ol>
</main>
</div>
<footer>
<div id="contacts">
<p>
Website questions or feedback?
<a href="mailto:lee.cattarin@gmail.com?cc=montanahawke@gmail.com&subject=Beall%20Greenhouses%20Market">
email Lee
</a>
</p>
<p>Market questions?
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses%20Market">
email Hawke
</a>
</p>
</div>
<p>brought to you in 2026</p>
</footer>
</body>
</html>

BIN
img/filler0.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

@ -17,23 +17,24 @@
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- CSS -->
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/nav.css">
<link rel="stylesheet" href="/css/artist.css">
</head>
<body>
<div id="content">
<header>
<nav>
<a id="directory-link" href="/directory">🧺 past markets</a>
</nav>
<img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
<img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
</header>
<main>
<h1>Markets at the Beall Greenhouses</h1>
<h2>Past markets</h2>
<ul id="market-list">
<li><a href="/2025/solstice">Solstice 2025</a></li>
</ul>
<h2>Status</h2>
<p>We've just completed a successful <a href="/2025/solstice">Solstice 2025</a> market. Stay tuned for more!</p>
</main>
</div>
<footer>