Compare commits
17 Commits
9287b4da1a
...
0.0.16
Author | SHA1 | Date | |
---|---|---|---|
7190b306e7 | |||
d9225e36d7 | |||
c957b156d8 | |||
f936bae555 | |||
52ec6d7b81 | |||
49751bb433 | |||
18f711444f | |||
c263bc4573 | |||
c4b5d24186 | |||
b532de646d | |||
283b5d8a49 | |||
e666588cc3 | |||
d98da909ae | |||
c7d3f92558 | |||
591ccc361b | |||
d935608d0c | |||
0ed3a4df64 |
8
.dockerignore
Normal file
8
.dockerignore
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Don't copy node_modules
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# Ignore common folders that we do not need
|
||||||
|
.git
|
||||||
|
.next
|
||||||
|
.github
|
||||||
|
.vscode
|
32
.gitea/workflows/image-build.yaml
Normal file
32
.gitea/workflows/image-build.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Build Production Image
|
||||||
|
run-name: $GITHUB_REF_TYPE Production Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*.*.*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build Production Image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: git.grosinger.net/tgrosinger/runner-image:0.0.3
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Login to Gitea Docker registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.grosinger.net
|
||||||
|
username: tgrosinger
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: git.grosinger.net/tgrosinger/west-sound-hall:${{ gitea.ref_name }}
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM docker.io/library/node:18-alpine AS build-env
|
||||||
|
|
||||||
|
ENV NODE_ENV production
|
||||||
|
ENV PORT 3000
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Building app
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install node modules
|
||||||
|
# Note: We also install dev deps as TypeScript may be needed
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Copy files. Use dockerignore to avoid copying node_modules
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Run app command
|
||||||
|
CMD ["/bin/ash", "/app/entrypoint.sh"]
|
54
README.md
54
README.md
@ -1,10 +1,41 @@
|
|||||||
# Spotlight
|
# West Sound Hall Website
|
||||||
|
|
||||||
Spotlight is a [Tailwind UI](https://tailwindui.com) site template built using [Tailwind CSS](https://tailwindcss.com) and [Next.js](https://nextjs.org).
|
This is the website for the West Sound Hall and Community Club on Orcas Island, WA.
|
||||||
|
|
||||||
## Getting started
|
https://westsoundhall.org
|
||||||
|
|
||||||
To get started with this template, first install the npm dependencies:
|
## Running
|
||||||
|
|
||||||
|
Pre-build containers are created whenever a version is tagged in this
|
||||||
|
repository. Pull the [latest
|
||||||
|
version](https://git.grosinger.net/tgrosinger/-/packages/container/west-sound-hall/)
|
||||||
|
and run on a server with Docker available.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run -p 3000:3000 git.grosinger.net/tgrosinger/west-sound-hall:0.0.14
|
||||||
|
```
|
||||||
|
|
||||||
|
## Updating
|
||||||
|
|
||||||
|
### Events on the Homepage
|
||||||
|
|
||||||
|
The homepage has a list of upcoming events. This list is created from [`src/app/upcoming-events.json`](https://git.grosinger.net/tgrosinger/west-sound-hall/src/branch/main/src/app/upcoming-events.json). To update the events listed, modify that file, tag a new version, and then update the running container to the latest version.
|
||||||
|
|
||||||
|
Events in the past will be automatically hidden from view.
|
||||||
|
|
||||||
|
### News Posts
|
||||||
|
|
||||||
|
News posts are written in [`src/app/news`](https://git.grosinger.net/tgrosinger/west-sound-hall/src/branch/main/src/app/news). Each post requires a directory within this folder, and the directory title will become the last segment of the news post URL.
|
||||||
|
|
||||||
|
To create a new post, create a new directory in that folder, then within that folder create a `page.mdx`. Use an existing news post as a template by copying its `page.mdx` then modify the author, date, title, description, and the body of the post as needed.
|
||||||
|
|
||||||
|
Posts are written in [mdx](https://mdxjs.com/) however for most news posts you can just consider the body of the post to be [standard markdown](https://www.markdownguide.org/basic-syntax/).
|
||||||
|
|
||||||
|
Photos can be added in the same directory as the `page.mdx` file. Refer to another news post for an example of how to embed them.
|
||||||
|
|
||||||
|
## Developing
|
||||||
|
|
||||||
|
To get started, first install the npm dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
@ -24,19 +55,8 @@ npm run dev
|
|||||||
|
|
||||||
Finally, open [http://localhost:3000](http://localhost:3000) in your browser to view the website.
|
Finally, open [http://localhost:3000](http://localhost:3000) in your browser to view the website.
|
||||||
|
|
||||||
## Customizing
|
|
||||||
|
|
||||||
You can start editing this template by modifying the files in the `/src` folder. The site will auto-update as you edit these files.
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This site template is a commercial product and is licensed under the [Tailwind UI license](https://tailwindui.com/license).
|
This site is based off of the Spotlight template from Tailwind, and licensed under the [Tailwind UI license](https://tailwindui.com/license).
|
||||||
|
|
||||||
## Learn more
|
It was purchased by Tony Grosinger.
|
||||||
|
|
||||||
To learn more about the technologies used in this site template, see the following resources:
|
|
||||||
|
|
||||||
- [Tailwind CSS](https://tailwindcss.com/docs) - the official Tailwind CSS documentation
|
|
||||||
- [Next.js](https://nextjs.org/docs) - the official Next.js documentation
|
|
||||||
- [Headless UI](https://headlessui.dev) - the official Headless UI documentation
|
|
||||||
- [MDX](https://mdxjs.com) - the MDX documentation
|
|
||||||
|
7
entrypoint.sh
Executable file
7
entrypoint.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# The build step hard-codes variables from the environment into HTML, so it must
|
||||||
|
# be done with the correct .env.local for runtime.
|
||||||
|
|
||||||
|
./node_modules/next/dist/bin/next build
|
||||||
|
./node_modules/next/dist/bin/next start
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -42,7 +42,7 @@
|
|||||||
"eslint-config-next": "13.4.16",
|
"eslint-config-next": "13.4.16",
|
||||||
"prettier": "^3.0.1",
|
"prettier": "^3.0.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.2",
|
"prettier-plugin-tailwindcss": "^0.5.2",
|
||||||
"sharp": "^0.32.0"
|
"sharp": "0.32.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"node_modules/@aashutoshrathi/word-wrap": {
|
||||||
@ -8714,9 +8714,9 @@
|
|||||||
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
|
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
|
||||||
},
|
},
|
||||||
"node_modules/sharp": {
|
"node_modules/sharp": {
|
||||||
"version": "0.32.4",
|
"version": "0.32.6",
|
||||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.4.tgz",
|
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz",
|
||||||
"integrity": "sha512-exUnZewqVZC6UXqXuQ8fyJJv0M968feBi04jb9GcUHrWtkRoAKnbJt8IfwT4NJs7FskArbJ14JAFGVuooszoGg==",
|
"integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -16578,9 +16578,9 @@
|
|||||||
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
|
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
|
||||||
},
|
},
|
||||||
"sharp": {
|
"sharp": {
|
||||||
"version": "0.32.4",
|
"version": "0.32.6",
|
||||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.4.tgz",
|
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz",
|
||||||
"integrity": "sha512-exUnZewqVZC6UXqXuQ8fyJJv0M968feBi04jb9GcUHrWtkRoAKnbJt8IfwT4NJs7FskArbJ14JAFGVuooszoGg==",
|
"integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"color": "^4.2.3",
|
"color": "^4.2.3",
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"remark-gfm": "^3.0.1",
|
"remark-gfm": "^3.0.1",
|
||||||
|
"sharp": "0.32.6",
|
||||||
"stripe": "14.9.0",
|
"stripe": "14.9.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.1.6"
|
||||||
@ -43,7 +44,6 @@
|
|||||||
"eslint": "8.45.0",
|
"eslint": "8.45.0",
|
||||||
"eslint-config-next": "13.4.16",
|
"eslint-config-next": "13.4.16",
|
||||||
"prettier": "^3.0.1",
|
"prettier": "^3.0.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.2",
|
"prettier-plugin-tailwindcss": "^0.5.2"
|
||||||
"sharp": "^0.32.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,91 +0,0 @@
|
|||||||
import { ArticleLayout } from '@/components/ArticleLayout'
|
|
||||||
import Image from 'next/image'
|
|
||||||
import designSystem from './planetaria-design-system.png'
|
|
||||||
|
|
||||||
export const article = {
|
|
||||||
author: 'Tony Grosinger',
|
|
||||||
date: '2022-09-05',
|
|
||||||
title: 'Crafting a design system for a multiplanetary future',
|
|
||||||
description:
|
|
||||||
'Most companies try to stay ahead of the curve when it comes to visual design, but for Planetaria we needed to create a brand that would still inspire us 100 years from now when humanity has spread across our entire solar system.',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const metadata = {
|
|
||||||
title: article.title,
|
|
||||||
description: article.description,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default (props) => <ArticleLayout article={article} {...props} />
|
|
||||||
|
|
||||||
Most companies try to stay ahead of the curve when it comes to visual design, but for Planetaria we needed to create a brand that would still inspire us 100 years from now when humanity has spread across our entire solar system.
|
|
||||||
|
|
||||||
<Image src={designSystem} alt="" />
|
|
||||||
|
|
||||||
I knew that to get it right I was going to have to replicate the viewing conditions of someone from the future, so I grabbed my space helmet from the closet, created a new Figma document, and got to work.
|
|
||||||
|
|
||||||
## Sermone fata
|
|
||||||
|
|
||||||
Lorem markdownum, bracchia in redibam! Terque unda puppi nec, linguae posterior
|
|
||||||
in utraque respicere candidus Mimasque formae; quae conantem cervice. Parcite
|
|
||||||
variatus, redolentia adeunt. Tyrioque dies, naufraga sua adit partibus celanda
|
|
||||||
torquere temptata, erit maneat et ramos, [iam](#) ait dominari
|
|
||||||
potitus! Tibi litora matremque fumantia condi radicibus opusque.
|
|
||||||
|
|
||||||
Deus feram verumque, fecit, ira tamen, terras per alienae victum. Mutantur
|
|
||||||
levitate quas ubi arcum ripas oculos abest. Adest [commissaque
|
|
||||||
victae](#) in gemitus nectareis ire diva
|
|
||||||
dotibus ora, et findi huic invenit; fatis? Fractaque dare superinposita
|
|
||||||
nimiumque simulatoremque sanguine, at voce aestibus diu! Quid veterum hausit tu
|
|
||||||
nil utinam paternos ima, commentaque.
|
|
||||||
|
|
||||||
```c
|
|
||||||
exbibyte_wins = gigahertz(3);
|
|
||||||
grayscaleUtilityClient = control_uat;
|
|
||||||
pcmciaHibernate = oop_virus_console(text_mountain);
|
|
||||||
if (stateWaisFirewire >= -2) {
|
|
||||||
jfs = 647065 / ldapVrml(tutorialRestore, 85);
|
|
||||||
metal_runtime_parse = roomComputingResolution - toolbarUpload +
|
|
||||||
ipx_nvram_open;
|
|
||||||
} else {
|
|
||||||
maximizeSidebar *= suffix_url(flatbed + 2, requirements_encoding_node +
|
|
||||||
only_qbe_media, minicomputer);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Aere repetiti cognataque natus. Habebat vela solutis saepe munus nondum adhuc
|
|
||||||
oscula nomina pignora corpus deserat.
|
|
||||||
|
|
||||||
## Lethaei Pindumve me quae dinumerat Pavor
|
|
||||||
|
|
||||||
Idem se saxa fata pollentibus geminos; quos pedibus. Est urnis Herses omnes nec
|
|
||||||
divite: et ille illa furit sim verbis Cyllenius.
|
|
||||||
|
|
||||||
1. Captus inpleverunt collo
|
|
||||||
2. Nec nam placebant
|
|
||||||
3. Siquos vulgus
|
|
||||||
4. Dictis carissime fugae
|
|
||||||
5. A tacitos nulla viginti
|
|
||||||
|
|
||||||
Ungues fistula annoso, ille addit linoque motatque uberior verso
|
|
||||||
[rubuerunt](#) confine desuetaque. _Sanguine_ anteit
|
|
||||||
emerguntque expugnacior est pennas iniqui ecce **haeret** genus: peiora imagine
|
|
||||||
fossas Cephisos formosa! Refugitque amata [refelli](#)
|
|
||||||
supplex. Summa brevis vetuere tenebas, hostes vetantis, suppressit, arreptum
|
|
||||||
regna. Postquam conpescit iuvenis habet corpus, et erratica, perdere, tot mota
|
|
||||||
ars talis.
|
|
||||||
|
|
||||||
```c
|
|
||||||
digital.webcam_dual_frequency = webmasterMms;
|
|
||||||
if (5 + language_standalone_google) {
|
|
||||||
cc_inbox_layout *= file_character;
|
|
||||||
task += p;
|
|
||||||
lockUnicode += enterprise_monochrome(tokenFunctionPersonal, keyVirtual,
|
|
||||||
adf);
|
|
||||||
}
|
|
||||||
windows_binary_esports(87734, array(restoreRomTopology, adRaw(407314),
|
|
||||||
dongleBashThumbnail), interpreter);
|
|
||||||
```
|
|
||||||
|
|
||||||
Sit volat naturam; motu Cancri. Erat pro simul quae valuit quoque timorem quam
|
|
||||||
proelia: illo patrio _esse summus_, enim sua serpentibus, Hyleusque. Est coniuge
|
|
||||||
recuso; refert Coroniden ignotos manat, adfectu.
|
|
Binary file not shown.
Before Width: | Height: | Size: 51 KiB |
@ -1,106 +0,0 @@
|
|||||||
import { ArticleLayout } from '@/components/ArticleLayout'
|
|
||||||
|
|
||||||
export const article = {
|
|
||||||
author: 'Tony Grosinger',
|
|
||||||
date: '2022-09-02',
|
|
||||||
title: 'Introducing Animaginary: High performance web animations',
|
|
||||||
description:
|
|
||||||
'When you’re building a website for a company as ambitious as Planetaria, you need to make an impression. I wanted people to visit our website and see animations that looked more realistic than reality itself.',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const metadata = {
|
|
||||||
title: article.title,
|
|
||||||
description: article.description,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default (props) => <ArticleLayout article={article} {...props} />
|
|
||||||
|
|
||||||
When you’re building a website for a company as ambitious as Planetaria, you need to make an impression. I wanted people to visit our website and see animations that looked more realistic than reality itself.
|
|
||||||
|
|
||||||
To make this possible, we needed to squeeze every drop of performance out of the browser possible. And so Animaginary was born.
|
|
||||||
|
|
||||||
```js
|
|
||||||
import { animate } from '@planetaria/animaginary'
|
|
||||||
|
|
||||||
export function MyComponent({ open, children }) {
|
|
||||||
return (
|
|
||||||
<animate.div
|
|
||||||
in={open}
|
|
||||||
animateFrom="opacity-0 scale-95"
|
|
||||||
animateTo="opacity-100 scale-100"
|
|
||||||
duration={350}
|
|
||||||
>
|
|
||||||
{children}
|
|
||||||
</animate.div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Animaginary is our new web animation library that redefines what you thought was possible on the web. Hand-written in optimized WASM, Animaginary can even animate the `height` property of an element at 60fps.
|
|
||||||
|
|
||||||
## Sermone fata
|
|
||||||
|
|
||||||
Lorem markdownum, bracchia in redibam! Terque unda puppi nec, linguae posterior
|
|
||||||
in utraque respicere candidus Mimasque formae; quae conantem cervice. Parcite
|
|
||||||
variatus, redolentia adeunt. Tyrioque dies, naufraga sua adit partibus celanda
|
|
||||||
torquere temptata, erit maneat et ramos, [iam](#) ait dominari
|
|
||||||
potitus! Tibi litora matremque fumantia condi radicibus opusque.
|
|
||||||
|
|
||||||
Deus feram verumque, fecit, ira tamen, terras per alienae victum. Mutantur
|
|
||||||
levitate quas ubi arcum ripas oculos abest. Adest [commissaque
|
|
||||||
victae](#) in gemitus nectareis ire diva
|
|
||||||
dotibus ora, et findi huic invenit; fatis? Fractaque dare superinposita
|
|
||||||
nimiumque simulatoremque sanguine, at voce aestibus diu! Quid veterum hausit tu
|
|
||||||
nil utinam paternos ima, commentaque.
|
|
||||||
|
|
||||||
```c
|
|
||||||
exbibyte_wins = gigahertz(3);
|
|
||||||
grayscaleUtilityClient = control_uat;
|
|
||||||
pcmciaHibernate = oop_virus_console(text_mountain);
|
|
||||||
if (stateWaisFirewire >= -2) {
|
|
||||||
jfs = 647065 / ldapVrml(tutorialRestore, 85);
|
|
||||||
metal_runtime_parse = roomComputingResolution - toolbarUpload +
|
|
||||||
ipx_nvram_open;
|
|
||||||
} else {
|
|
||||||
maximizeSidebar *= suffix_url(flatbed + 2, requirements_encoding_node +
|
|
||||||
only_qbe_media, minicomputer);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Aere repetiti cognataque natus. Habebat vela solutis saepe munus nondum adhuc
|
|
||||||
oscula nomina pignora corpus deserat.
|
|
||||||
|
|
||||||
## Lethaei Pindumve me quae dinumerat Pavor
|
|
||||||
|
|
||||||
Idem se saxa fata pollentibus geminos; quos pedibus. Est urnis Herses omnes nec
|
|
||||||
divite: et ille illa furit sim verbis Cyllenius.
|
|
||||||
|
|
||||||
1. Captus inpleverunt collo
|
|
||||||
2. Nec nam placebant
|
|
||||||
3. Siquos vulgus
|
|
||||||
4. Dictis carissime fugae
|
|
||||||
5. A tacitos nulla viginti
|
|
||||||
|
|
||||||
Ungues fistula annoso, ille addit linoque motatque uberior verso
|
|
||||||
[rubuerunt](#) confine desuetaque. _Sanguine_ anteit
|
|
||||||
emerguntque expugnacior est pennas iniqui ecce **haeret** genus: peiora imagine
|
|
||||||
fossas Cephisos formosa! Refugitque amata [refelli](#)
|
|
||||||
supplex. Summa brevis vetuere tenebas, hostes vetantis, suppressit, arreptum
|
|
||||||
regna. Postquam conpescit iuvenis habet corpus, et erratica, perdere, tot mota
|
|
||||||
ars talis.
|
|
||||||
|
|
||||||
```c
|
|
||||||
digital.webcam_dual_frequency = webmasterMms;
|
|
||||||
if (5 + language_standalone_google) {
|
|
||||||
cc_inbox_layout *= file_character;
|
|
||||||
task += p;
|
|
||||||
lockUnicode += enterprise_monochrome(tokenFunctionPersonal, keyVirtual,
|
|
||||||
adf);
|
|
||||||
}
|
|
||||||
windows_binary_esports(87734, array(restoreRomTopology, adRaw(407314),
|
|
||||||
dongleBashThumbnail), interpreter);
|
|
||||||
```
|
|
||||||
|
|
||||||
Sit volat naturam; motu Cancri. Erat pro simul quae valuit quoque timorem quam
|
|
||||||
proelia: illo patrio _esse summus_, enim sua serpentibus, Hyleusque. Est coniuge
|
|
||||||
recuso; refert Coroniden ignotos manat, adfectu.
|
|
@ -1,101 +0,0 @@
|
|||||||
import { ArticleLayout } from '@/components/ArticleLayout'
|
|
||||||
|
|
||||||
export const article = {
|
|
||||||
author: 'Tony Grosinger',
|
|
||||||
date: '2022-07-14',
|
|
||||||
title: 'Rewriting the cosmOS kernel in Rust',
|
|
||||||
description:
|
|
||||||
'When we released the first version of cosmOS last year, it was written in Go. Go is a wonderful programming language, but it’s been a while since I’ve seen an article on the front page of Hacker News about rewriting some important tool in Go and I see articles on there about rewriting things in Rust every single week.',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const metadata = {
|
|
||||||
title: article.title,
|
|
||||||
description: article.description,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default (props) => <ArticleLayout article={article} {...props} />
|
|
||||||
|
|
||||||
When we released the first version of cosmOS last year, it was written in Go. Go is a wonderful programming language with a lot of benefits, but it’s been a while since I’ve seen an article on the front page of Hacker News about rewriting some important tool in Go and I see articles on there about rewriting things in Rust every single week.
|
|
||||||
|
|
||||||
```rust
|
|
||||||
use ferris_says::say;
|
|
||||||
use std::io::{stdout, BufWriter};
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
let stdout = stdout();
|
|
||||||
let message = String::from("Hello fellow hackers");
|
|
||||||
let width = message.chars().count();
|
|
||||||
|
|
||||||
let mut writer = BufWriter::new(stdout.lock());
|
|
||||||
say(message.as_bytes(), width, &mut writer).unwrap();
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
I derive a large amount of my self-worth from whether or not Hacker News is impressed with the work I'm doing, so when I realized this, I cancelled all of our existing projects and started migrating everything to Rust immediately.
|
|
||||||
|
|
||||||
## Sermone fata
|
|
||||||
|
|
||||||
Lorem markdownum, bracchia in redibam! Terque unda puppi nec, linguae posterior
|
|
||||||
in utraque respicere candidus Mimasque formae; quae conantem cervice. Parcite
|
|
||||||
variatus, redolentia adeunt. Tyrioque dies, naufraga sua adit partibus celanda
|
|
||||||
torquere temptata, erit maneat et ramos, [iam](#) ait dominari
|
|
||||||
potitus! Tibi litora matremque fumantia condi radicibus opusque.
|
|
||||||
|
|
||||||
Deus feram verumque, fecit, ira tamen, terras per alienae victum. Mutantur
|
|
||||||
levitate quas ubi arcum ripas oculos abest. Adest [commissaque
|
|
||||||
victae](#) in gemitus nectareis ire diva
|
|
||||||
dotibus ora, et findi huic invenit; fatis? Fractaque dare superinposita
|
|
||||||
nimiumque simulatoremque sanguine, at voce aestibus diu! Quid veterum hausit tu
|
|
||||||
nil utinam paternos ima, commentaque.
|
|
||||||
|
|
||||||
```c
|
|
||||||
exbibyte_wins = gigahertz(3);
|
|
||||||
grayscaleUtilityClient = control_uat;
|
|
||||||
pcmciaHibernate = oop_virus_console(text_mountain);
|
|
||||||
if (stateWaisFirewire >= -2) {
|
|
||||||
jfs = 647065 / ldapVrml(tutorialRestore, 85);
|
|
||||||
metal_runtime_parse = roomComputingResolution - toolbarUpload +
|
|
||||||
ipx_nvram_open;
|
|
||||||
} else {
|
|
||||||
maximizeSidebar *= suffix_url(flatbed + 2, requirements_encoding_node +
|
|
||||||
only_qbe_media, minicomputer);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Aere repetiti cognataque natus. Habebat vela solutis saepe munus nondum adhuc
|
|
||||||
oscula nomina pignora corpus deserat.
|
|
||||||
|
|
||||||
## Lethaei Pindumve me quae dinumerat Pavor
|
|
||||||
|
|
||||||
Idem se saxa fata pollentibus geminos; quos pedibus. Est urnis Herses omnes nec
|
|
||||||
divite: et ille illa furit sim verbis Cyllenius.
|
|
||||||
|
|
||||||
1. Captus inpleverunt collo
|
|
||||||
2. Nec nam placebant
|
|
||||||
3. Siquos vulgus
|
|
||||||
4. Dictis carissime fugae
|
|
||||||
5. A tacitos nulla viginti
|
|
||||||
|
|
||||||
Ungues fistula annoso, ille addit linoque motatque uberior verso
|
|
||||||
[rubuerunt](#) confine desuetaque. _Sanguine_ anteit
|
|
||||||
emerguntque expugnacior est pennas iniqui ecce **haeret** genus: peiora imagine
|
|
||||||
fossas Cephisos formosa! Refugitque amata [refelli](#)
|
|
||||||
supplex. Summa brevis vetuere tenebas, hostes vetantis, suppressit, arreptum
|
|
||||||
regna. Postquam conpescit iuvenis habet corpus, et erratica, perdere, tot mota
|
|
||||||
ars talis.
|
|
||||||
|
|
||||||
```c
|
|
||||||
digital.webcam_dual_frequency = webmasterMms;
|
|
||||||
if (5 + language_standalone_google) {
|
|
||||||
cc_inbox_layout *= file_character;
|
|
||||||
task += p;
|
|
||||||
lockUnicode += enterprise_monochrome(tokenFunctionPersonal, keyVirtual,
|
|
||||||
adf);
|
|
||||||
}
|
|
||||||
windows_binary_esports(87734, array(restoreRomTopology, adRaw(407314),
|
|
||||||
dongleBashThumbnail), interpreter);
|
|
||||||
```
|
|
||||||
|
|
||||||
Sit volat naturam; motu Cancri. Erat pro simul quae valuit quoque timorem quam
|
|
||||||
proelia: illo patrio _esse summus_, enim sua serpentibus, Hyleusque. Est coniuge
|
|
||||||
recuso; refert Coroniden ignotos manat, adfectu.
|
|
124
src/app/board-of-directors/page.tsx
Normal file
124
src/app/board-of-directors/page.tsx
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
|
||||||
|
import { type Metadata } from 'next'
|
||||||
|
import Link from 'next/link'
|
||||||
|
import clsx from 'clsx'
|
||||||
|
|
||||||
|
import { Container } from '@/components/Container'
|
||||||
|
import { UserPlusIcon, GiftIcon, EnvelopeIcon } from '@heroicons/react/24/solid'
|
||||||
|
import { TableCell, TableHeading, TableLeftHeading } from '@/components/Table'
|
||||||
|
|
||||||
|
function SocialLink({
|
||||||
|
className,
|
||||||
|
href,
|
||||||
|
children,
|
||||||
|
icon: Icon,
|
||||||
|
}: {
|
||||||
|
className?: string
|
||||||
|
href: string
|
||||||
|
icon: React.ComponentType<{ className?: string }>
|
||||||
|
children: React.ReactNode
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<li className={clsx(className, 'flex')}>
|
||||||
|
<Link
|
||||||
|
href={href}
|
||||||
|
className="group flex text-sm font-medium text-zinc-800 transition hover:text-teal-500 dark:text-zinc-200 dark:hover:text-teal-500"
|
||||||
|
>
|
||||||
|
<Icon className="h-6 w-6 flex-none fill-zinc-500 transition group-hover:fill-teal-500" />
|
||||||
|
<span className="ml-4">{children}</span>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'West Sound Community Club - Board of Directory',
|
||||||
|
description:
|
||||||
|
'The West Sound Community Club on Orcas Island.',
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export default function Club() {
|
||||||
|
return (
|
||||||
|
<Container className="mt-16 sm:mt-32">
|
||||||
|
<div className="grid grid-cols-1 gap-y-16 lg:grid-cols-2 lg:grid-rows-[auto_1fr] lg:gap-y-12">
|
||||||
|
<div className="lg:order-first lg:row-span-2">
|
||||||
|
<h1 className="text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-5xl">
|
||||||
|
The Board of Directors
|
||||||
|
</h1>
|
||||||
|
<div className="mt-6 space-y-7 text-base text-zinc-600 dark:text-zinc-400">
|
||||||
|
<p>
|
||||||
|
Elections for the Board of Directors are held annually at the October member meeting and potluck.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you are interested in being one the ballot at the upcoming
|
||||||
|
election, please
|
||||||
|
<a href="mailto:board@westsoundhall.org"
|
||||||
|
className="pl-1 text-blue-600 visited:text-purple-600 hover:underline">
|
||||||
|
contact the board
|
||||||
|
</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="overflow-x-auto -mx-4 sm:-mx-0">
|
||||||
|
<div className="inline-block min-w-full py-2 align-middle">
|
||||||
|
<table className="min-w-full divide-y divide-gray-300">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col" className="py-3.5 pl-4 pr-3 sm:pl-0">Name</th>
|
||||||
|
<TableHeading>Position</TableHeading>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody className="divide-y divide-gray-200 ">
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Lisa Pedersen</TableLeftHeading>
|
||||||
|
<TableCell>President</TableCell>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Betsy Wareham</TableLeftHeading>
|
||||||
|
<TableCell>Vice President</TableCell>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Tony Grosinger</TableLeftHeading>
|
||||||
|
<TableCell>Secretary</TableCell>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Temporarily performed by Secretary</TableLeftHeading>
|
||||||
|
<TableCell>Treasurer</TableCell>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Mark Gasser</TableLeftHeading>
|
||||||
|
<TableCell>Director</TableCell>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<TableLeftHeading>Leslie Brown</TableLeftHeading>
|
||||||
|
<TableCell>Director</TableCell>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="lg:pl-20">
|
||||||
|
<ul role="list">
|
||||||
|
<SocialLink
|
||||||
|
href="mailto:contact@westsoundhall.org"
|
||||||
|
icon={EnvelopeIcon}
|
||||||
|
className="mt-4 border-zinc-100 dark:border-zinc-700/40"
|
||||||
|
>
|
||||||
|
contact@westsoundhall.org
|
||||||
|
</SocialLink>
|
||||||
|
<SocialLink
|
||||||
|
href="mailto:contact@westsoundhall.org"
|
||||||
|
icon={EnvelopeIcon}
|
||||||
|
className="mt-4 border-zinc-100 dark:border-zinc-700/40"
|
||||||
|
>
|
||||||
|
board@westsoundhall.org
|
||||||
|
</SocialLink>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Container>
|
||||||
|
)
|
||||||
|
}
|
@ -5,7 +5,7 @@ import Link from 'next/link'
|
|||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
|
||||||
import { Container } from '@/components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import { UserPlusIcon, GiftIcon, EnvelopeIcon } from '@heroicons/react/24/solid'
|
import { UserPlusIcon, GiftIcon, EnvelopeIcon, UserGroupIcon } from '@heroicons/react/24/solid'
|
||||||
import interiorEmptyImage from '@/images/photos/interior-empty.jpg'
|
import interiorEmptyImage from '@/images/photos/interior-empty.jpg'
|
||||||
import { ClubPayment } from './payment';
|
import { ClubPayment } from './payment';
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ function SocialLink({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'History',
|
title: 'West Sound Community Club',
|
||||||
description:
|
description:
|
||||||
'The West Sound Community Club on Orcas Island.',
|
'The West Sound Community Club on Orcas Island.',
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ export default function Club() {
|
|||||||
src={interiorEmptyImage}
|
src={interiorEmptyImage}
|
||||||
alt=""
|
alt=""
|
||||||
sizes="(min-width: 1024px) 32rem, 20rem"
|
sizes="(min-width: 1024px) 32rem, 20rem"
|
||||||
className="aspect-square rotate-3 rounded-2xl bg-zinc-100 object-cover dark:bg-zinc-800"
|
className="aspect-square rounded-2xl bg-zinc-100 object-cover dark:bg-zinc-800"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -98,9 +98,15 @@ export default function Club() {
|
|||||||
>
|
>
|
||||||
contact@westsoundhall.org
|
contact@westsoundhall.org
|
||||||
</SocialLink>
|
</SocialLink>
|
||||||
|
<SocialLink href="/board-of-directors" icon={UserGroupIcon} className="mt-4">
|
||||||
|
Board of Directors
|
||||||
|
</SocialLink>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<h2 className="text-2xl mb-4 font-semibold leading-6 text-gray-900">
|
||||||
|
Join or Renew your Membership
|
||||||
|
</h2>
|
||||||
<ClubPayment />
|
<ClubPayment />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,7 +59,6 @@ function CheckoutForm({
|
|||||||
const [selectedAdditionalDonation, setSelectedAdditionalDonation] = useState<number | null>(null);
|
const [selectedAdditionalDonation, setSelectedAdditionalDonation] = useState<number | null>(null);
|
||||||
const [customAmount, setCustomAmount] = useState('');
|
const [customAmount, setCustomAmount] = useState('');
|
||||||
const [email, setEmail] = useState('');
|
const [email, setEmail] = useState('');
|
||||||
const [offsetFees, setOffsetFees] = useState(true);
|
|
||||||
const [totalAmount, setTotalAmount] = useState(300);
|
const [totalAmount, setTotalAmount] = useState(300);
|
||||||
const [message, setMessage] = useState<string>('');
|
const [message, setMessage] = useState<string>('');
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
@ -111,9 +110,7 @@ function CheckoutForm({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offsetFees) {
|
subtotal = Math.ceil(subtotal * 1.03)
|
||||||
subtotal = Math.ceil(subtotal * 1.03)
|
|
||||||
}
|
|
||||||
|
|
||||||
setTotalAmount(subtotal);
|
setTotalAmount(subtotal);
|
||||||
|
|
||||||
@ -128,7 +125,7 @@ function CheckoutForm({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}, [paymentIntentID, selectedMembershipLevel, selectedAdditionalDonation, customAmount, offsetFees, email])
|
}, [paymentIntentID, selectedMembershipLevel, selectedAdditionalDonation, customAmount, email])
|
||||||
|
|
||||||
const handleSubmit = async (e: FormEvent) => {
|
const handleSubmit = async (e: FormEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -303,33 +300,16 @@ function CheckoutForm({
|
|||||||
Payment
|
Payment
|
||||||
</h2>
|
</h2>
|
||||||
<div className="mt-1 text-sm text-gray-500">
|
<div className="mt-1 text-sm text-gray-500">
|
||||||
If you would like to pay by cash or check, please instead
|
Credit card fees included. If you would like to avoid these fees or
|
||||||
<a className="underline mx-1" href="/WSCC-Membership-Form.pdf">fill out a paper form</a>
|
to pay by cash or check, please instead <a className="underline
|
||||||
and mail to the address on the form.
|
mx-1" href="/WSCC-Membership-Form.pdf">fill out a paper form</a> and
|
||||||
|
mail to the address on the form.
|
||||||
</div>
|
</div>
|
||||||
<PaymentElement id="payment-element" />
|
<PaymentElement id="payment-element" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* TODO: Automatically renew toggle? */}
|
{/* TODO: Automatically renew toggle? */}
|
||||||
|
|
||||||
<div className="relative flex gap-x-3">
|
|
||||||
<div className="flex h-6 items-center">
|
|
||||||
<input
|
|
||||||
id="offsetFees"
|
|
||||||
name="offsetFees"
|
|
||||||
type="checkbox"
|
|
||||||
checked={offsetFees}
|
|
||||||
onChange={(e) => setOffsetFees(e.target.checked)}
|
|
||||||
className="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className="text-sm leading-6">
|
|
||||||
<label htmlFor="offsetFees" className="font-medium text-gray-900">
|
|
||||||
Help offset credit card fees
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="mt-6 w-full rounded-md flex justify-center border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
className="mt-6 w-full rounded-md flex justify-center border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
||||||
disabled={isLoading || !stripe || !elements}
|
disabled={isLoading || !stripe || !elements}
|
||||||
|
@ -36,17 +36,17 @@ export async function GET(req: Request) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let articleIds = require
|
let articleIds = require
|
||||||
.context('../blog', true, /\/page\.mdx$/)
|
.context('../news', true, /\/page\.mdx$/)
|
||||||
.keys()
|
.keys()
|
||||||
.filter((key) => key.startsWith('./'))
|
.filter((key) => key.startsWith('./'))
|
||||||
.map((key) => key.slice(2).replace(/\/page\.mdx$/, ''));
|
.map((key) => key.slice(2).replace(/\/page\.mdx$/, ''));
|
||||||
|
|
||||||
for (let id of articleIds) {
|
for (let id of articleIds) {
|
||||||
let url = String(new URL(`/blog/${id}`, req.url));
|
let url = String(new URL(`/news/${id}`, req.url));
|
||||||
let html = await (await fetch(url)).text();
|
let html = await (await fetch(url)).text();
|
||||||
let $ = cheerio.load(html);
|
let $ = cheerio.load(html);
|
||||||
|
|
||||||
let publicUrl = `${siteUrl}/blog/${id}`;
|
let publicUrl = `${siteUrl}/news/${id}`;
|
||||||
let article = $('article').first();
|
let article = $('article').first();
|
||||||
let title = article.find('h1').first().text();
|
let title = article.find('h1').first().text();
|
||||||
let date = article.find('time').first().attr('datetime');
|
let date = article.find('time').first().attr('datetime');
|
||||||
|
@ -9,7 +9,7 @@ function Article({ article }: { article: BlogPostWithSlug }) {
|
|||||||
return (
|
return (
|
||||||
<article className="md:grid md:grid-cols-4 md:items-baseline">
|
<article className="md:grid md:grid-cols-4 md:items-baseline">
|
||||||
<Card className="md:col-span-3">
|
<Card className="md:col-span-3">
|
||||||
<Card.Title href={`/blog/${article.slug}`}>
|
<Card.Title href={`/news/${article.slug}`}>
|
||||||
{article.title}
|
{article.title}
|
||||||
</Card.Title>
|
</Card.Title>
|
||||||
<Card.Eyebrow
|
<Card.Eyebrow
|
||||||
@ -35,7 +35,7 @@ function Article({ article }: { article: BlogPostWithSlug }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'Blog',
|
title: 'Club News',
|
||||||
description: 'History, Announcements, and more from the West Sound Hall and Community Club.',
|
description: 'History, Announcements, and more from the West Sound Hall and Community Club.',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ export default async function ArticlesIndex() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SimpleLayout
|
<SimpleLayout
|
||||||
title="West Sound Hall Blog"
|
title="West Sound Hall News"
|
||||||
intro="History, Announcements, and more from the West Sound Hall and Community Club."
|
intro="History, Announcements, and more from the West Sound Hall and Community Club."
|
||||||
>
|
>
|
||||||
<div className="md:border-l md:border-zinc-100 md:pl-6 md:dark:border-zinc-700/40">
|
<div className="md:border-l md:border-zinc-100 md:pl-6 md:dark:border-zinc-700/40">
|
48
src/app/news/welcome-to-the-wscc-website/page.mdx
Normal file
48
src/app/news/welcome-to-the-wscc-website/page.mdx
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { ArticleLayout } from '@/components/ArticleLayout'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import originalWebsite from './westsoundhall-original-website.png'
|
||||||
|
|
||||||
|
export const article = {
|
||||||
|
author: 'Tony Grosinger',
|
||||||
|
date: '2024-01-01',
|
||||||
|
title: 'Welcome to the New WSCC Website',
|
||||||
|
description: "In the early 2000's, the West Sound Community Club leadership put a massive effort into improving the hall's physical foundation, however it's easy to overlook the incredible amount of work that was also put into less tangible aspects of the hall.",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const metadata = {
|
||||||
|
title: article.title,
|
||||||
|
description: article.description,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default (props) => <ArticleLayout article={article} {...props} />
|
||||||
|
|
||||||
|
In the early 2000's, the West Sound Community Club leadership put a massive
|
||||||
|
effort into improving the hall's physical foundation, however it's
|
||||||
|
easy to overlook the incredible amount of work that was also put into less
|
||||||
|
tangible aspects of the hall.
|
||||||
|
|
||||||
|
The original version of this website was launched in 2004. It was one of the
|
||||||
|
first digital archives of the history of West Sound and how central the hall was
|
||||||
|
to this community. This updated version of the website preserves this historical
|
||||||
|
collection and aims to expand it with information collected by the Club over the
|
||||||
|
years.
|
||||||
|
|
||||||
|
|
||||||
|
<div className="not-prose flex flex-col items-center">
|
||||||
|
<Image src={originalWebsite} alt="Screenshot of the original West Sound Hall website" />
|
||||||
|
<span className="mt-2 text-sm text-zinc-400 dark:text-zinc-500">
|
||||||
|
Screenshot of the original West Sound Hall website.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
Along with the website, past Boards have worked to incorporate the Club, make
|
||||||
|
the hall available for rental by the community, and even added the hall to the
|
||||||
|
WA Heritage Register. There's so much more to the hall than just potlucks,
|
||||||
|
and this website hopes to share this with the West Sound Community.
|
||||||
|
|
||||||
|
If you'd like to follow along, please <a target="_blank"
|
||||||
|
href="https://orcas.community/mailinglists/7">sign up for email
|
||||||
|
announcements</a> when new blog posts are published.
|
||||||
|
|
||||||
|
Thanks for being a part of the West Sound Community!
|
Binary file not shown.
After Width: | Height: | Size: 644 KiB |
184
src/app/page.tsx
184
src/app/page.tsx
@ -1,22 +1,36 @@
|
|||||||
import Image, { type ImageProps } from 'next/image'
|
import Image from 'next/image'
|
||||||
import clsx from 'clsx'
|
|
||||||
|
|
||||||
import { Button } from '@/components/Button'
|
import Link from 'next/link'
|
||||||
import { Card } from '@/components/Card'
|
import { Card } from '@/components/Card'
|
||||||
import { Container } from '@/components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import { CalendarDaysIcon, EnvelopeIcon } from '@heroicons/react/24/solid'
|
import { CalendarDaysIcon } from '@heroicons/react/24/solid'
|
||||||
import exteriorFrontImage from '@/images/photos/exterior-front.png'
|
import exteriorFrontImage from '@/images/photos/exterior-front.png'
|
||||||
import stageImage from '@/images/photos/stage.jpg'
|
|
||||||
import exteriorSoutheastImage from '@/images/photos/exterior-southeast.jpg'
|
|
||||||
import interorEmptyImage from '@/images/photos/interior-empty.jpg'
|
|
||||||
import kitchenImage from '@/images/photos/kitchen.jpg'
|
|
||||||
import { type BlogPostWithSlug, getAllBlogPosts } from '@/lib/articles'
|
import { type BlogPostWithSlug, getAllBlogPosts } from '@/lib/articles'
|
||||||
import { formatDate } from '@/lib/formatDate'
|
import { formatDate } from '@/lib/formatDate'
|
||||||
|
import { promises as fs } from 'fs';
|
||||||
|
|
||||||
|
|
||||||
|
function LinkButton({
|
||||||
|
href,
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
href: string
|
||||||
|
children: React.ReactNode
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
href={href}
|
||||||
|
className="rounded-md px-3 py-2 font-semibold text-center transition dark:hover:text-teal-400 bg-sky-300 hover:bg-sky-400 dark:bg-zinc-700/40 dark:hover:bg-zinc-600/40"
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</Link>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
function Article({ article }: { article: BlogPostWithSlug }) {
|
function Article({ article }: { article: BlogPostWithSlug }) {
|
||||||
return (
|
return (
|
||||||
<Card as="article">
|
<Card as="article">
|
||||||
<Card.Title href={`/blog/${article.slug}`}>
|
<Card.Title href={`/news/${article.slug}`}>
|
||||||
{article.title}
|
{article.title}
|
||||||
</Card.Title>
|
</Card.Title>
|
||||||
<Card.Eyebrow as="time" dateTime={article.date} decorate>
|
<Card.Eyebrow as="time" dateTime={article.date} decorate>
|
||||||
@ -28,35 +42,6 @@ function Article({ article }: { article: BlogPostWithSlug }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function Newsletter() {
|
|
||||||
return (
|
|
||||||
<form
|
|
||||||
action="/thank-you"
|
|
||||||
className="rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40"
|
|
||||||
>
|
|
||||||
<h2 className="flex text-sm font-semibold text-zinc-900 dark:text-zinc-100">
|
|
||||||
<EnvelopeIcon className="h-6 w-6 flex-none fill-zinc-100 stroke-zinc-400 dark:fill-zinc-100/10 dark:stroke-zinc-500" />
|
|
||||||
<span className="ml-3">Stay up to date</span>
|
|
||||||
</h2>
|
|
||||||
<p className="mt-2 text-sm text-zinc-600 dark:text-zinc-400">
|
|
||||||
Get notified about upcoming events and stay in touch with the community.
|
|
||||||
</p>
|
|
||||||
<div className="mt-6 flex">
|
|
||||||
<input
|
|
||||||
type="email"
|
|
||||||
placeholder="Email address"
|
|
||||||
aria-label="Email address"
|
|
||||||
required
|
|
||||||
className="min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(spacing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-teal-500 focus:outline-none focus:ring-4 focus:ring-teal-500/10 dark:border-zinc-700 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500 dark:focus:border-teal-400 dark:focus:ring-teal-400/10 sm:text-sm"
|
|
||||||
/>
|
|
||||||
<Button type="submit" className="ml-4 flex-none">
|
|
||||||
Join
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Meeting {
|
interface Meeting {
|
||||||
title: string
|
title: string
|
||||||
date: string
|
date: string
|
||||||
@ -99,21 +84,36 @@ function MeetingListItem({ meeting }: { meeting: Meeting }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function Events() {
|
async function Events() {
|
||||||
let events: Array<Meeting> = [
|
const now = new Date();
|
||||||
{
|
const nowYear = now.getFullYear();
|
||||||
title: 'Christmas Potluck',
|
const nowMonth = now.getMonth() + 1;
|
||||||
date: '2023-12-16',
|
const nowDay = now.getDate();
|
||||||
startTime: '6:00pm',
|
|
||||||
},
|
const file = await fs.readFile(process.cwd() + '/src/app/upcoming-events.json', 'utf8');
|
||||||
{
|
const allEvents: Array<Meeting> = JSON.parse(file);
|
||||||
title: 'Member Meeting',
|
|
||||||
date: '2023-12-20',
|
// Remove any events in the past.
|
||||||
startTime: '6:00pm',
|
const events = allEvents.filter((e) => {
|
||||||
endTime: '8:00pm',
|
const [year, month, day] = e.date.split('-');
|
||||||
notes: 'Bring your own chair.'
|
|
||||||
},
|
const parsedYear = parseInt(year)
|
||||||
]
|
if (parsedYear > nowYear) {
|
||||||
|
return true
|
||||||
|
} else if (parsedYear < nowYear) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
const parsedMonth = parseInt(month)
|
||||||
|
if (parsedMonth > nowMonth) {
|
||||||
|
return true
|
||||||
|
} else if (parsedMonth < nowMonth) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
const parsedDay = parseInt(day)
|
||||||
|
return parsedDay >= nowDay
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40">
|
<div className="rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40">
|
||||||
@ -126,36 +126,11 @@ function Events() {
|
|||||||
<MeetingListItem key={idx} meeting={meeting} />
|
<MeetingListItem key={idx} meeting={meeting} />
|
||||||
))}
|
))}
|
||||||
</ol>
|
</ol>
|
||||||
|
{/*
|
||||||
<Button href="#" variant="secondary" className="group mt-6 w-full">
|
<Button href="#" variant="secondary" className="group mt-6 w-full">
|
||||||
Full Calendar
|
Full Calendar
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
*/}
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function Photos() {
|
|
||||||
let rotations = ['rotate-2', '-rotate-2', 'rotate-2', 'rotate-2', '-rotate-2']
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="mt-16 sm:mt-20">
|
|
||||||
<div className="-my-4 flex justify-center gap-5 overflow-hidden py-4 sm:gap-8">
|
|
||||||
{[exteriorSoutheastImage, stageImage, exteriorFrontImage, interorEmptyImage, kitchenImage].map((image, imageIndex) => (
|
|
||||||
<div
|
|
||||||
key={image.src}
|
|
||||||
className={clsx(
|
|
||||||
'relative aspect-[9/10] w-44 flex-none overflow-hidden rounded-xl bg-zinc-100 dark:bg-zinc-800 sm:w-72 sm:rounded-2xl',
|
|
||||||
rotations[imageIndex % rotations.length],
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Image
|
|
||||||
src={image}
|
|
||||||
alt=""
|
|
||||||
sizes="(min-width: 640px) 18rem, 11rem"
|
|
||||||
className="absolute inset-0 h-full w-full object-cover"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -165,23 +140,37 @@ export default async function Home() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Container className="mt-9">
|
<div className="mx-auto max-w-7xl px-6 mt-24 lg:px-8">
|
||||||
<div className="max-w-2xl">
|
<div className="relative px-4 sm:px-8 lg:px-12">
|
||||||
<h1 className="text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-5xl">
|
<div className="mx-auto max-w-2xl lg:mx-0 grid lg:max-w-none grid-cols-1 lg:grid-cols-2 lg:gap-x-8 gap-y-10">
|
||||||
West Sound Community Hall
|
<h1 className="text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-6xl lg:col-span-2">
|
||||||
</h1>
|
West Sound Community Hall
|
||||||
<p className="mt-6 text-base text-zinc-600 dark:text-zinc-400">
|
</h1>
|
||||||
The West Sound Community Hall is located in the hamlet of West Sound
|
<div className="max-w-xl">
|
||||||
on Orcas Island, about 10 minutes from the ferry landing and
|
<p className="mt-6 text-base text-zinc-600 dark:text-zinc-400">
|
||||||
Eastsound. It has served as a public assembly hall since it was
|
The West Sound Community Hall is located in the hamlet of West Sound
|
||||||
built by volunteers in 1902.
|
on Orcas Island, about 10 minutes from the ferry landing and
|
||||||
</p>
|
Eastsound. It has served as a public assembly hall since it was
|
||||||
<p className="mt-6 text-base text-zinc-600 dark:text-zinc-400">
|
built by volunteers in 1902.
|
||||||
Facing West Sound, the Hall is at the heart of the West Sound community.
|
</p>
|
||||||
</p>
|
<p className="mt-6 text-base text-zinc-600 dark:text-zinc-400">
|
||||||
|
Facing West Sound, the Hall is at the heart of the West Sound community.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<Image
|
||||||
|
src={exteriorFrontImage}
|
||||||
|
alt="Exterior front of the West Sound Hall"
|
||||||
|
className="lg:row-span-2 w-full max-w-xl rounded-2xl object-cover lg:max-w-none"
|
||||||
|
/>
|
||||||
|
<div className="h-fit max-w-xl rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40">
|
||||||
|
<div className="flex flex-col gap-y-4">
|
||||||
|
<LinkButton href='/club'>Join or Renew your Membership</LinkButton>
|
||||||
|
<LinkButton href='/rental'>Rent the Hall</LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</div>
|
||||||
<Photos />
|
|
||||||
<Container className="mt-24 md:mt-28">
|
<Container className="mt-24 md:mt-28">
|
||||||
<div className="mx-auto grid max-w-xl grid-cols-1 gap-y-20 lg:max-w-none lg:grid-cols-2">
|
<div className="mx-auto grid max-w-xl grid-cols-1 gap-y-20 lg:max-w-none lg:grid-cols-2">
|
||||||
<div className="flex flex-col gap-16">
|
<div className="flex flex-col gap-16">
|
||||||
@ -189,8 +178,7 @@ export default async function Home() {
|
|||||||
<Article key={article.slug} article={article} />
|
<Article key={article.slug} article={article} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-10 lg:pl-16 xl:pl-24">
|
<div className="lg:pl-16 xl:pl-24">
|
||||||
<Newsletter />
|
|
||||||
<Events />
|
<Events />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,6 +6,8 @@ import clsx from 'clsx'
|
|||||||
import { Container } from '@/components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import exteriorFront from '@/images/photos/exterior-front.png'
|
import exteriorFront from '@/images/photos/exterior-front.png'
|
||||||
import { EnvelopeIcon, PencilSquareIcon, QuestionMarkCircleIcon } from '@heroicons/react/24/solid'
|
import { EnvelopeIcon, PencilSquareIcon, QuestionMarkCircleIcon } from '@heroicons/react/24/solid'
|
||||||
|
import React from 'react'
|
||||||
|
import { TableCell, TableHeading, TableLeftHeading } from '@/components/Table'
|
||||||
|
|
||||||
function SocialLink({
|
function SocialLink({
|
||||||
className,
|
className,
|
||||||
@ -32,9 +34,9 @@ function SocialLink({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'History',
|
title: 'West Sound Hall Rental',
|
||||||
description:
|
description:
|
||||||
'The history of the West Sound Community Hall on Orcas Island.',
|
'Rental information for the West Sound Hall.',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Rental() {
|
export default function Rental() {
|
||||||
@ -107,42 +109,42 @@ export default function Rental() {
|
|||||||
<table className="min-w-full divide-y divide-gray-300">
|
<table className="min-w-full divide-y divide-gray-300">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" className="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0"></th>
|
<th scope="col" className="py-3.5 pl-4 pr-3 sm:pl-0"></th>
|
||||||
<th scope="col" className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Half day (4 hr)</th>
|
<TableHeading>Half day (4 hr)</TableHeading>
|
||||||
<th scope="col" className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">All day</th>
|
<TableHeading>All day</TableHeading>
|
||||||
<th scope="col" className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Deposit</th>
|
<TableHeading>Deposit</TableHeading>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-gray-200">
|
<tbody className="divide-y divide-gray-200 ">
|
||||||
<tr>
|
<tr>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">Orcas non-profit organizations</td>
|
<TableLeftHeading>Orcas non-profit organizations</TableLeftHeading>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$50 or 2 hours for $30*</td>
|
<TableCell>$50 or 2 hours for $30*</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$100</td>
|
<TableCell>$100</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">None†</td>
|
<TableCell>None†</TableCell>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">WSCC and OIYC Members</td>
|
<TableLeftHeading>WSCC and OIYC Members</TableLeftHeading>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$50 or 2 hours for $30*</td>
|
<TableCell>$50 or 2 hours for $30*</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$100</td>
|
<TableCell>$100</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">None†</td>
|
<TableCell>None†</TableCell>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">Off-island non-profit organizations</td>
|
<TableLeftHeading>Off-island non-profit organizations</TableLeftHeading>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$50</td>
|
<TableCell>$50</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$100</td>
|
<TableCell>$100</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$300</td>
|
<TableCell>$300</TableCell>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">Individuals and non-public use</td>
|
<TableLeftHeading>Individuals and non-public use</TableLeftHeading>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$40 per hour</td>
|
<TableCell>$40 per hour</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$300</td>
|
<TableCell>$300</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$300</td>
|
<TableCell>$300</TableCell>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">Government sponsored activities</td>
|
<TableLeftHeading>Government sponsored activities</TableLeftHeading>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$50</td>
|
<TableCell>$50</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">$50</td>
|
<TableCell>$50</TableCell>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">None†</td>
|
<TableCell>None†</TableCell>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -168,23 +170,23 @@ export default function Rental() {
|
|||||||
The West Sound Community Hall may not be used for either personal or
|
The West Sound Community Hall may not be used for either personal or
|
||||||
organizational monetary gain or to promote business activities.
|
organizational monetary gain or to promote business activities.
|
||||||
The only exceptions to this restriction are:
|
The only exceptions to this restriction are:
|
||||||
|
|
||||||
<ol className="list-decimal ml-8 mt-5">
|
|
||||||
<li>
|
|
||||||
Use for fund raising activities sponsored by the West Sound
|
|
||||||
Community Club, a nonprofit corporation, for purposes specified in
|
|
||||||
Article II of the Bylaws of the West Sound Community Club.
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Use for fund raising activities sponsored by qualified nonprofit
|
|
||||||
organizations with prior approval by the President of the West Sound
|
|
||||||
Community Club. (Such activities must be less than five days in
|
|
||||||
length and more than 50% of the proceeds must be distributed to the
|
|
||||||
sponsoring nonprofit organization.)
|
|
||||||
</li>
|
|
||||||
</ol>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<ol className="list-decimal ml-8 mt-5">
|
||||||
|
<li>
|
||||||
|
Use for fund raising activities sponsored by the West Sound
|
||||||
|
Community Club, a nonprofit corporation, for purposes specified in
|
||||||
|
Article II of the Bylaws of the West Sound Community Club.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Use for fund raising activities sponsored by qualified nonprofit
|
||||||
|
organizations with prior approval by the President of the West Sound
|
||||||
|
Community Club. (Such activities must be less than five days in
|
||||||
|
length and more than 50% of the proceeds must be distributed to the
|
||||||
|
sponsoring nonprofit organization.)
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Any individual or organizational nonpublic use of the hall which
|
Any individual or organizational nonpublic use of the hall which
|
||||||
requires payment of a fee by those attending or offers items for
|
requires payment of a fee by those attending or offers items for
|
||||||
|
24
src/app/upcoming-events.json
Normal file
24
src/app/upcoming-events.json
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"title": "January Potluck",
|
||||||
|
"date": "2024-01-20",
|
||||||
|
"startTime": "6:00pm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "February Potluck",
|
||||||
|
"date": "2024-02-17",
|
||||||
|
"startTime": "6:00pm",
|
||||||
|
"notes": "With historic West Sound slide show."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Town Hall Meeting",
|
||||||
|
"date": "2024-03-06",
|
||||||
|
"startTime": "6:00pm",
|
||||||
|
"endTime": "8:00pm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "March Potluck",
|
||||||
|
"date": "2024-03-16",
|
||||||
|
"startTime": "6:00pm"
|
||||||
|
}
|
||||||
|
]
|
@ -28,12 +28,18 @@ export function Footer() {
|
|||||||
<div className="flex flex-col items-center justify-between gap-6 sm:flex-row">
|
<div className="flex flex-col items-center justify-between gap-6 sm:flex-row">
|
||||||
<div className="flex flex-wrap justify-center gap-x-6 gap-y-1 text-sm font-medium text-zinc-800 dark:text-zinc-200">
|
<div className="flex flex-wrap justify-center gap-x-6 gap-y-1 text-sm font-medium text-zinc-800 dark:text-zinc-200">
|
||||||
<NavLink href="/hall-history">History</NavLink>
|
<NavLink href="/hall-history">History</NavLink>
|
||||||
|
<NavLink href="/news">News</NavLink>
|
||||||
<NavLink href="/rental">Rental</NavLink>
|
<NavLink href="/rental">Rental</NavLink>
|
||||||
<NavLink href="/club">Club</NavLink>
|
<NavLink href="/club">Club</NavLink>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm text-zinc-400 dark:text-zinc-500">
|
<div>
|
||||||
© {new Date().getFullYear()} West Sound Community Club. All rights reserved.
|
<p className="text-sm text-zinc-400 dark:text-zinc-500">
|
||||||
</p>
|
© {new Date().getFullYear()} West Sound Community Club. All rights reserved.
|
||||||
|
</p>
|
||||||
|
<p className="text-sm text-zinc-400 dark:text-zinc-500">
|
||||||
|
WSCC is a 501c3 nonprofit organization - 91-1283768
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContainerInner>
|
</ContainerInner>
|
||||||
</div>
|
</div>
|
||||||
|
File diff suppressed because one or more lines are too long
25
src/components/Table.tsx
Normal file
25
src/components/Table.tsx
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
export function TableHeading({
|
||||||
|
children
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode
|
||||||
|
}) {
|
||||||
|
return <th scope="col" className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-zinc-100">{children}</th>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export function TableLeftHeading({
|
||||||
|
children
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode
|
||||||
|
}) {
|
||||||
|
return <td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 dark:text-zinc-100 sm:pl-0">{children}</td>
|
||||||
|
}
|
||||||
|
|
||||||
|
export function TableCell({
|
||||||
|
children
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode
|
||||||
|
}) {
|
||||||
|
return <td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-zinc-400">{children}</td>
|
||||||
|
}
|
@ -12,7 +12,7 @@ export interface BlogPostWithSlug extends BlogPost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function importBlogPost(filename: string): Promise<BlogPostWithSlug> {
|
async function importBlogPost(filename: string): Promise<BlogPostWithSlug> {
|
||||||
let { article } = (await import(`../app/blog/${filename}`)) as {
|
let { article } = (await import(`../app/news/${filename}`)) as {
|
||||||
default: React.ComponentType;
|
default: React.ComponentType;
|
||||||
article: BlogPost;
|
article: BlogPost;
|
||||||
};
|
};
|
||||||
@ -25,7 +25,7 @@ async function importBlogPost(filename: string): Promise<BlogPostWithSlug> {
|
|||||||
|
|
||||||
export async function getAllBlogPosts() {
|
export async function getAllBlogPosts() {
|
||||||
let articleFilenames = await glob('*/page.mdx', {
|
let articleFilenames = await glob('*/page.mdx', {
|
||||||
cwd: './src/app/blog',
|
cwd: './src/app/news',
|
||||||
});
|
});
|
||||||
|
|
||||||
const posts = await Promise.all(articleFilenames.map(importBlogPost));
|
const posts = await Promise.all(articleFilenames.map(importBlogPost));
|
||||||
|
Reference in New Issue
Block a user