Compare commits

...

26 Commits

Author SHA1 Message Date
85234ce522 Sync package-lock.json as well
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 16m0s
2025-09-01 10:34:07 +09:30
f743618b5f Don't delete node_modules to hopefully speed up remote deployment 2025-09-01 10:19:50 +09:30
ce6dffbaf5 Better handle project URLs
Some checks failed
Build and Deploy to Web Server / deploy (push) Has been cancelled
2025-08-29 15:02:25 +09:30
d0c1319258 Why did I do package-lock and not package?
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 19m33s
2025-08-29 14:12:06 +09:30
7c8ab1c988 Better handle contact form JS
Some checks failed
Build and Deploy to Web Server / deploy (push) Failing after 11m57s
2025-08-29 12:52:22 +09:30
52362b748b Add SSR deployment method
Some checks are pending
Build and Deploy to Web Server / deploy (push) Has started running
2025-08-29 12:43:07 +09:30
e46a4a560a Add SSR contact form
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 18m1s
2025-08-29 11:36:58 +09:30
1c3b37a70c Merge branch 'main' of git.nathancummins.com.au:encie22/portfolio
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 16m51s
2025-08-28 16:06:56 +09:30
ca15fa782d Expand DNDT, add TrackInline, more tracks 2025-08-28 16:03:29 +09:30
ba8eec5879 Add colour options for primary colour 2025-08-28 16:02:32 +09:30
0802b69c56 Add Y space to tokens on projects page
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m56s
2025-08-26 13:45:39 +09:30
c74299c2b1 Add links and key figures to project pages
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 16m35s
2025-08-25 17:49:45 +09:30
982589927f Allow filtering of projects
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m24s
2025-08-25 11:18:39 +09:30
025914083c Add MWM, fix max-h
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 16m13s
2025-08-25 09:45:23 +09:30
69a17c48f3 Fix about page black padding
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m55s
2025-08-22 17:09:25 +09:30
352a9c18f5 Flesh out about a little more, still temporary
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m49s
2025-08-22 16:42:08 +09:30
51723e0c44 Small correction to old bio
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m46s
2025-08-22 10:53:41 +09:30
17f185f953 Add automatic development webserver launch 2025-08-22 10:42:06 +09:30
7805a7dfa9 Sound designer, footer wasn't clickable
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m51s
2025-08-22 10:22:25 +09:30
41079e93c1 Add alt as caption, add details to header, add some early writing to DNDT
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m17s
2025-08-21 17:11:19 +09:30
a4423b18cf Small fix to projects page
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m5s
2025-08-21 16:26:43 +09:30
a37051afce Pad content to footer, better handle carousel
Some checks are pending
Build and Deploy to Web Server / deploy (push) Has started running
2025-08-21 16:19:18 +09:30
e790264b99 Add Jeff's website
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m16s
2025-08-21 14:47:34 +09:30
aa392b8122 Key figures, minor fixes
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 17m42s
2025-08-21 14:02:09 +09:30
583e2ba10b Editor config
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m39s
2025-08-15 12:11:29 +09:30
e97c58a7a1 Finish (?) code snippets, add to do regarding blockquote author 2025-08-15 12:01:31 +09:30
65 changed files with 2745 additions and 241 deletions

6
.editorconfig Normal file
View File

@@ -0,0 +1,6 @@
[*]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = crlf

View File

@@ -47,4 +47,12 @@ jobs:
- name: Deploy via rsync
run: |
rsync -avz --delete --exclude '.git' --exclude '.gitea' --exclude 'README.md' --exclude 'LICENSE.md' --exclude 'LICENSE' --exclude '.github' --exclude '.gitignore' --exclude '.gitattributes' --exclude 'deploy.yml' ./dist/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_DIRECTORY }}
rsync -avz --delete --exclude 'node_modules/' ./dist/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_DIRECTORY }}
- name: Copy package.json via rsync
run: |
rsync -avz ./package*.json ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_DIRECTORY }}
- name: Install and restart service
run: |
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} '/home/deployers/${{ secrets.DEPLOY_USER }}/deploy.sh'

View File

@@ -4,7 +4,8 @@
"bradlc.vscode-tailwindcss",
"unifiedjs.vscode-mdx",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig"
],
"unwantedRecommendations": []
}

View File

@@ -17,5 +17,8 @@
],
"css.customData": [
".vscode/tailwind.json"
]
],
"[mdx]": {
"editor.wordWrap": "on"
}
}

18
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run development webserver on startup",
"type": "shell",
"command": "npm run dev",
"windows": {
"command": "npm run dev"
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"runOptions": { "runOn": "folderOpen" }
}
]
}

View File

@@ -14,6 +14,8 @@ import robotsTxt from "astro-robots-txt";
import { transformerMetaHighlight } from "@shikijs/transformers";
import node from "@astrojs/node";
// https://astro.build/config
export default defineConfig({
vite: {
@@ -51,12 +53,15 @@ export default defineConfig({
},
site: "https://www.nathancummins.com.au",
trailingSlash: "always",
image: {
responsiveStyles: false
},
output: "static"
});
output: "static",
adapter: node({
mode: "standalone"
})
});

1650
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,6 +10,7 @@
},
"dependencies": {
"@astrojs/mdx": "^4.3.1",
"@astrojs/node": "^9.4.3",
"@astrojs/sitemap": "^3.4.2",
"@iconify-json/fa": "^1.2.1",
"@iconify-json/fa7-brands": "^1.2.0",
@@ -22,6 +23,7 @@
"astro-robots-txt": "^1.0.0",
"astro-seo-schema": "^5.1.0",
"get-audio-duration": "^4.0.1",
"nodemailer": "^7.0.5",
"schema-dts": "^1.1.5",
"tailwindcss": "^4.1.11"
},
@@ -29,6 +31,7 @@
"@cspell/dict-en-au": "^1.1.4",
"@shikijs/transformers": "^3.9.2",
"@types/howler": "^2.2.12",
"@types/nodemailer": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"eslint": "^9.32.0",

View File

@@ -5,6 +5,12 @@ type: Feature Film
date: 2019-07-01
slug: awoken
description: A young medical student attempts to cure her brother from a terminal sleep illness, called fatal familial insomnia, where you are unable to sleep until you die. On her quest to help him, a more sinister reason for his condition is revealed.
keyFigure:
- title: Composed by
name: Christopher Larkin
href: https://composerlarkin.com
- title: Directed by
name: Daniel J. Phillips
images:
{
"hero":

View File

@@ -5,6 +5,12 @@ type: Feature Film
date: 2017-07-01
slug: barbecue
description: The rituals, stories and traditions surrounding the process of cooking meat over an open flame are shared by numerous cultures around the world.
keyFigure:
- title: Composed by
name: Christopher Larkin
href: https://composerlarkin.com
- title: Directed by
name: Matthew Salleh
images:
{
"hero":

View File

@@ -4,6 +4,9 @@ role: Composer
type: Short Film
date: 2020-07-01
slug: down-to-earth
keyFigure:
- title: Directed by
name: Nick Crowhurst
description: Three young misfits venture into the Australian outback to find what they believe is a meteorite that has crash landed near their country town, only to discover it's something far more mysterious.
images:
{

View File

@@ -6,7 +6,11 @@ date: 2026-07-01
slug: dungeons-and-dining-tables
ongoing: true
description: "Delve dungeons to collect rare furniture, take that furniture back to your home to decorate and the cosier your house is, the higher your stats! 🪑🏡⚔️ Go forth and drive the grumpiness from the land: Your perfect home is just a dungeon away! Oh, and you play as an Axolotl 🥳"
frontPage: { "order": 1 }
keyFigure:
- title: Developed by
name: Catalyst Games
frontPage:
order: 1
images:
{
"hero":
@@ -26,3 +30,62 @@ externalLinks:
}
]
---
import TrackInline from "@components/TrackInline.astro";
<small>
_This page contains just a few details of my involvement in the project. I
will continue to update it and add more details while the game develops (and
when I get the time to!)_.
</small>
Since late 2023 I have had the pleasure of working with the team at Catalyst Games on the cozy-adventure RPG _Dungeons and Dining Tables_, a game where you play as an axolotl on a quest to decorate their house.
This little axolotl and the team around it have since become key figures in my life and I consider myself privileged to be a part of the project's development.
![The axolotl, which I affectionately name Frank after the axolotl of a friend. Screenshot from a development build.](/src/assets/img/projects/dungeons-and-dining-tables/nathan-cummins-dungeons-and-dining-tables-13.jpg)
# My Role
While I joined the team partway through the development of the project, I have still been involved since quite early in the development timeline as a composer, sound designer, and also as a programmer responsible for almost all integration of audio.
This has allowed me to deeply integrate both music and sound into the game and with cross-pollination of the two together, from birds that tweet the melody of the area that you are in, to music that mixes between highly orchestrated pieces to music for jazz quartet, to custom designed logic allowing sounds to be obscured by objects in the game-world.
# The Gameplay and My Approach
While I can't share too much currently, the [steam page](https://store.steampowered.com/app/2941630/Dungeons_and_Dining_Tables/) has a good overview of the the gameplay:
> Dungeons and Dining Tables is a Cozy-Adventure RPG where you play as an Axolotl on a quest to decorate their house and defeat the termites out to eat their furniture!
>
> Randomly generated dungeons to explore with puzzles to complete, enemies to defeat and rare furniture loot to collect. Travel through the World Tree, take on new rogue-like challenges and defeat bosses for the most epic of furnishings (maybe even a Legendary Bed of Maximum Health!)
>
> Furniture collected on a dungeon run can be used to decorate not only your humble home but also the homes of the cute and quirky characters of the town of Kindlerest! Decorating your home will give you comfy points that are used to level up your house, improve player stats, upgrade shops and other quality of life features for your dungeon runs.
Considering the gameplay, my approach to the audio has been to make it as dynamic and responsive to the gameplay as possible, with reactive music and sound design that not only compliments but heightens the user experience.
This is best exemplified by the music of the town _Kindlerest_, which is a cosy orchestral piece (with some hustle-and-bustle for good measure) that transitions seamlessly to a jazz quartet piece (_Pine for a Tune_) while you are decorating your house via some simple layering in FMOD.
<div class="my-4">
<TrackInline id="dndt-kindlerest" />
<TrackInline id="dndt-pine-for-a-tune" />
</div>
![The decoration mode. Screenshot from a development build.](/src/assets/img/projects/dungeons-and-dining-tables/nathan-cummins-dungeons-and-dining-tables-4.jpeg)
# My Inspiration
Throughout the project my inspiration has been drawn from a variety of sources.
Primarily and probably unsurprisingly, I have drawn a lot of inspiration from the art style itself and in particular the animations done by the extremely talented Ty Hemi.
The art style and animations are so full of character that it is difficult not to be inspired by them and as a result my sound design work tries to reflect the same character and charm.
I have also of course taken a lot of inspiration from games that have been significant to my development as a composer and as a sound designer.
The games that have inspired me the most include _Super Mario Galaxy_ and many games from the _The Legend of Zelda_ series, in particular the approach to the sound design of _The Legend of Zelda: Breath of the Wild_.
It is also impossible to ignore the influence of the _Animal Crossing_ series, in particular _Animal Crossing: New Horizons_ which is most evident in the UI sounds.
# Listen
<div class="my-4">
<TrackInline id="dndt-lampshade-grove" />
<TrackInline id="dndt-kindlerest" />
<TrackInline id="dndt-pine-for-a-tune" />
<TrackInline id="dndt-the-couch-troll" />
<TrackInline id="dndt-the-couch-trolls-lair" />
<TrackInline id="dndt-gameplay-trailer" />
</div>

View File

@@ -5,6 +5,11 @@ type: Short Film
date: 2013-07-01
slug: ella
description: When Ella learns that her sister Gracie is sick, Ella must turn to the stars to help heal her sister.
keyFigure:
- title: Directed by
name: Jess Cahill
- title: Winner of
name: NASA Humans In Space Art Challenge, viewed in the International Space Station
images:
{
"hero":

View File

@@ -5,6 +5,10 @@ type: Video Game
date: 2021-02-01
slug: frontier-quest
description: Rebuild a frontier town and become acquainted with its community in puzzle-RPG Frontier Quest! Explore the frontier, collect materials and defeat monsters with the right equipment in order to restore the town and uncover the secrets of the frontier.
keyFigure:
- title: Developed by
name: Stellar Advent
href: https://stellaradvent.com/
images:
{
"hero":

View File

@@ -5,6 +5,10 @@ type: Video Game
date: 2023-02-01
slug: lucies-potager
description: Farm and sell exotic plants with Lucie in this shopkeeping RPG!
keyFigure:
- title: Developed by
name: Stellar Advent
href: https://stellaradvent.com/
images:
{
"hero":

View File

@@ -1,10 +1,14 @@
---
title: Meowing Point
role: Additional Music
role: Additional Music (Single Track)
type: Video Game
date: 2023-10-01
slug: meowing-point
description: Point and meow. 3D hidden cat game. These creatures have been turned into stone. Find and save them all.
keyFigure:
- title: Developed by
name: Francisco Martinez
href: https://yofrancisco.com/
images:
{
"hero":

View File

@@ -4,6 +4,10 @@ role: Conductor / Artistic Director
type: Concert
date: 2025-11-15
slug: music-with-motion-down-under
keyFigure:
- title: Performed by
name: Woodville Concert Band
href: https://www.woodvillecb.com.au/2025/music-with-motion-down-under/
description: "Music With Motion: Down Under is a dynamic celebration of Australia's video game soundtracks—performed live by a full wind orchestra and synchronised in real time with stunning visuals on the big screen. Premiering all-new orchestrations created especially for this event by award-winning Artistic Director Dr Nathan Cummins, the performance showcases music from games developed across the country, including several from right here in South Australia. Many of these games have never had their music performed live, and you'll be among the very first to hear it."
frontPage: { "order": 2 }
images:

View File

@@ -4,8 +4,12 @@ role: Conductor / Artistic Director
type: Concert
date: 2025-03-09
slug: pixelated-symphonies
description: "Experience the magic of these legendary symphonic video game soundtracks like never before! Join [the Adelaide Wind Orchestra] for an unforgettable concert of musical enchantment as video game industry insider and composer Dr Nathan Cummins and AWO take you on a wild ride through this iconic music. From the epic adventures of Super Mario to the heartwarming melodies of The Legend of Zelda, immerse yourself and be swept away by the brilliance of Australia's leading symphonic wind orchestra."
description: "A symphonic exploration of video game music with 14 commissioned arrangements. Experience the magic of these legendary symphonic video game soundtracks like never before! Join [the Adelaide Wind Orchestra] for an unforgettable concert of musical enchantment as video game industry insider and composer Dr Nathan Cummins and AWO take you on a wild ride through this iconic music. From the epic adventures of Super Mario to the heartwarming melodies of The Legend of Zelda, immerse yourself and be swept away by the brilliance of Australia's leading symphonic wind orchestra."
frontPage: { "order": 3 }
keyFigure:
- title: Performed by
name: Adelaide Wind Orchestra
href: https://www.awo.org.au/
images:
{
"hero":

View File

@@ -6,6 +6,12 @@ date: 2025-02-21
slug: rocs-odyssey
description: Explore vast landscapes and get lost in a beautiful yet dangerous world in Roc's Odyssey. Filled with intense combat, strange allies, platforming, enemies, treasures, secrets, upgrades, friendships and lore this hand drawn action adventure will have you hooked!
frontPage: { "order": 4 }
keyFigure:
- title: Developed by
name: Sunshine Festival Studios
href: https://www.sunshinefestivalstudios.com/
- title: Director / Lead Developer
name: Hari "Graig" Dimitriou
images:
{
"hero":

View File

@@ -5,6 +5,10 @@ type: Short Film
date: 2022-02-21
slug: scooter
description: An eccentric senior citizen who would like to visit his daughter one last time sets him off on an epic 250km journey from the outback to the city on his trusty scooter.
keyFigure:
- title: Directed by
name: John deCaux / Six Foot Four Productions
href: https://sixfootfourproductions.com.au
images:
{
"hero":

View File

@@ -5,6 +5,10 @@ type: Video Game
date: 2020-10-22
slug: submerged-hidden-depths
description: Boat, climb, interact and explore in the beautiful ruins of a sunken world.
keyFigure:
- title: Composed by
name: Jeff van Dyck
href: https://jeffvandyck.com/
images:
{
"hero":

View File

@@ -5,6 +5,10 @@ type: Concert Music
date: 2024-10-12
slug: the-lion-and-the-mouse
description: "A piece for narrator and orchestra (or wind orchestra) that aims to teach children about music and the instruments of the orchestra. Experience the beloved Aesop fable come to life, through wind instruments and storytelling designed to inspire the imagination of children and families."
keyFigure:
- title: Performed by
name: Woodville Concert Band
href: https://www.woodvillecb.com.au/2024/the-lion-and-the-mouse/
frontPage: { "order": 5 }
images:
{

View File

@@ -5,6 +5,10 @@ type: Video Game
date: 2021-10-22
slug: tohu
description: Experience a brand new adventure game set amongst a world of weird and wonderful fish planets. Explore beautiful environments, solve intricate puzzles and discover the truth about a mysterious little girl and her mechanical alter-ego, Cubus.
keyFigure:
- title: Composed by
name: Christopher Larkin
href: https://composerlarkin.com
images:
{
"hero":

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/Kindlerest.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/Pine_for_a_Tune.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/The_Couch_Troll.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
Nathan Cummins is an award-winning composer, orchestrator, conductor, and performer, based in Adelaide, South Australia.
Nathan Cummins is an award-winning composer, orchestrator, conductor, and sound designer based in Adelaide, South Australia.
He specialises in crafted orchestration for video games, film, and television with a focus on live and vibrant textures across multiple genres and mediums.
His original works and orchestrations have featured prominently in media and in the concert hall, including performances by the Australian String Quartet, the Elder Conservatorium Wind Orchestra, and the Gold Coast Philharmonic Orchestra.
His orchestrations have been used in concerts and recording sessions throughout the world.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Dungeons_and_Dining_Tables.mp3",
"metadata": {
"title": "Gameplay Trailer",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Kindlerest.mp3",
"metadata": {
"title": "Kindlerest",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Pine_for_a_Tune.mp3",
"metadata": {
"title": "Pine for a Tune",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/The_Couch_Troll.mp3",
"metadata": {
"title": "The Couch Troll",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/The_Couch_Trolls_Lair.mp3",
"metadata": {
"title": "The Couch Troll's Lair",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,105 @@
---
import { Icon } from "astro-icon/components";
const ID = `contact-form-${Math.random().toString(36)}`;
---
<form
class="mx-auto mt-8 max-w-xl space-y-6 rounded bg-white p-8 shadow-lg dark:bg-gray-900"
id={ID}
>
<div>
<label for="name" class="block font-bold">Name</label>
<input
type="text"
id="name"
name="name"
required
class="mt-2 block w-full rounded p-2 shadow dark:bg-gray-600"
/>
</div>
<div>
<label for="email" class="block font-bold">Your email</label>
<input
type="email"
id="email"
name="email"
required
class="mt-2 block w-full rounded p-2 shadow dark:bg-gray-600"
/>
</div>
<div>
<label for="subject" class="block font-bold">Subject</label>
<input
type="text"
id="subject"
name="subject"
class="mt-2 block w-full rounded p-2 shadow dark:bg-gray-600"
/>
</div>
<div>
<label for="message" class="block font-bold">Message</label>
<textarea
id="message"
name="message"
rows="4"
class="mt-2 block w-full rounded p-2 shadow dark:bg-gray-600"></textarea>
</div>
<button
id="submit"
type="submit"
class="bg-primary text-md font-header hover:text-primary repeat hover:ring-primary mx-auto inline-block rounded px-6 py-3 font-light text-white uppercase drop-shadow transition hover:bg-white hover:ring-2"
><Icon
name="mdi:loading"
id="loading-icon"
class="mr-4 hidden animate-spin"
/><span id="response-message" class="inline">Send message</span></button
>
</form>
<script define:vars={{ ID }}>
function init() {
const form = document.getElementById(ID);
const responseMsg = form.querySelector("#response-message");
const button = form.querySelector("#submit");
const loadingIcon = form.querySelector("#loading-icon");
form.addEventListener("submit", async function (event) {
event.preventDefault();
loadingIcon.classList.replace("hidden", "inline");
responseMsg.textContent = "Sending...";
button.disabled = true;
try {
const formData = new FormData(form);
const response = await fetch("/api/email/contact/", {
method: "POST",
body: formData
});
const data = await response.json();
if (response.ok) {
responseMsg.textContent = data.message;
form.reset();
} else {
responseMsg.textContent = data.message;
}
} catch (err) {
responseMsg.textContent =
"An error occurred. Please refresh the page and try again.";
}
loadingIcon.classList.replace("inline", "hidden");
setTimeout(() => {
responseMsg.textContent = "Send message";
button.disabled = false;
}, 10000);
});
}
init();
document.addEventListener("astro:after-swap", init);
</script>

View File

@@ -6,7 +6,7 @@ import TextLink from "@components/TextLink.astro";
---
<footer
class="footer -z-10 bg-gray-900 px-8 py-8 text-center text-white"
class="footer bg-gray-900 px-8 py-8 text-center text-white"
transition:name="footer"
>
<div class="socials p-2">

View File

@@ -43,8 +43,8 @@ const IDs: string[] = [];
const imagesArray = shuffle ? shuffleArray(images) : images;
---
<div class:list={[className]}>
<div class="relative h-full w-full overflow-hidden">
<div class:list={[className, "relative overflow-hidden"]}>
<div>
<div class:list={[backgroundColour, backgroundOpacity, "absolute inset-0"]}>
</div>
@@ -85,9 +85,8 @@ const imagesArray = shuffle ? shuffleArray(images) : images;
/>
)
}
<slot />
</div>
<slot />
</div>
<script define:vars={{ imagesArray, interval, IDs }}>

View File

@@ -1,7 +1,9 @@
<div class="flex w-full items-center">
<blockquote
class="border-primary mx-auto my-8 max-w-xl border-l-6 py-2 pl-4 italic"
>
---
// TODO: Handle author, etc., via inclusion of some sort of tag in the quote, either frontmatter tags or simply [author=Person Name]
---
<div class="my-4 flex w-full items-center px-2 md:px-8">
<blockquote class="border-primary mx-auto border-l-6 pl-4 italic">
<p class="text-lg font-light"><slot /></p>
</blockquote>
</div>

View File

@@ -17,10 +17,18 @@ if (dataMeta) {
}
const languageIcons: Record<string, string> = {
javascript: "mdi:language-javascript"
javascript: "mdi:language-javascript",
typescript: "mdi:language-typescript",
csharp: "mdi:language-csharp",
css: "mdi:language-css3",
html: "mdi:language-html5",
bash: "mdi:bash",
astro: "simple-icons:astro"
};
const languageIcon = languageIcons[props["data-language"]];
const language = props["data-language"];
const languageIcon = languageIcons[language];
const title = meta.title;
@@ -28,31 +36,29 @@ const copyID = Math.random().toString(36);
---
<figure class="my-4 rounded-b">
{
title && (
<figcaption>
<div class="bg-primary w-full rounded-t-md border-1 border-gray-600 px-4 py-2 text-white">
<div class="flex justify-between">
<div class="flex items-center justify-between gap-2 font-bold">
{languageIcon && <Icon name={languageIcon} />}
<p>{title}</p>
</div>
<button class="font-bold" id=`copy-${copyID}`>
Copy <Icon name="mdi:content-copy" class="ml-0.5 inline-block" />
</button>
</div>
<figcaption>
<div
class="bg-primary w-full rounded-t-md border-1 border-gray-600 px-4 py-2 text-white"
>
<div class="flex justify-between">
<div class="flex items-center justify-between gap-2 font-bold">
{languageIcon && <Icon name={languageIcon} />}
{
!languageIcon && language !== "plaintext" && (
<p class="uppercase">{language}</p>
)
}
{title && <p>{title}</p>}
</div>
</figcaption>
)
}
<button class="font-bold" id=`copy-${copyID}`>
Copy <Icon name="mdi:content-copy" class="ml-0.5 inline-block" />
</button>
</div>
</div>
</figcaption>
<pre
class:list={[
"border-x border-b border-gray-600",
"rounded-b",
!title ? "rounded-t border-t" : "",
className
]}
class:list={["border-x border-b border-gray-600", "rounded-b", className]}
{...props}><slot /></pre>
</figure>

View File

@@ -7,4 +7,11 @@ import { getImageByPath } from "@lib/utils";
const image = getImageByPath(src);
---
{image && <Image src={image} alt={alt} />}
{
image && (
<div class="my-8">
<Image src={image} alt={alt} />
<div class="mt-2 block w-full text-center text-sm italic">{alt}</div>
</div>
)
}

View File

@@ -54,7 +54,7 @@ const initialQueue = await Promise.all(
</div>
<div
id="player:time:progress:played"
class="bg-primary absolute top-0 left-0 m-0 h-full p-0"
class="from-primary to-primary-50 absolute top-0 left-0 m-0 h-full bg-gradient-to-r p-0"
>
</div>
</div>
@@ -342,7 +342,7 @@ const initialQueue = await Promise.all(
return { bufferedSeconds: 0, bufferedPercent: 0 };
}
addFromTrackCard(track) {
addToQueue(track, immediatePlay = false) {
var current = this.playlist[this.index];
if (
@@ -356,7 +356,7 @@ const initialQueue = await Promise.all(
this.play();
}
} else {
this.queue(track, true);
this.queue(track, immediatePlay);
}
}
}

View File

@@ -1,5 +1,5 @@
---
import { getAllProjectImages } from '@lib/utils';
import { getAllProjectImages } from "@lib/utils";
import Paragraph from "@components/Paragraph.astro";
import TextLink from "@components/TextLink.astro";
@@ -8,15 +8,22 @@ import { Icon } from "astro-icon/components";
import { Image } from "astro:assets";
import type { CollectionEntry } from "astro:content";
import { slugify } from '@lib/utils';
import { slugify } from "@lib/utils";
interface Props {
project: CollectionEntry<"projects">;
textOn?: "left" | "right";
quality?: number;
class?: string;
}
const { project, textOn = "left", quality = "80" } = Astro.props;
const {
project,
textOn = "left",
quality = "80",
class: className,
...attrs
} = Astro.props;
const images = getAllProjectImages(project);
@@ -121,9 +128,13 @@ const rotateOptions = [
];
const projectHasBody = project.body && project.body.trim().length > 0;
const link = `/projects/${slugify(project.data.type)}/${slugify(project.data.slug)}/`;
---
<div class="grid grid-cols-1 text-left md:grid-cols-2">
<div
class:list={["grid grid-cols-1 text-left md:grid-cols-2", className]}
{...attrs}
>
<div
class:list={[
"order-1 flex flex-col items-start justify-center py-4",
@@ -132,20 +143,58 @@ const projectHasBody = project.body && project.body.trim().length > 0;
>
<span
><h2 class="font-header-alt inline-block text-lg font-semibold">
{projectHasBody && <TextLink href=`/projects/${slugify(project.data.type)}/${slugify(project.data.slug)}/`>{project.data.title}</TextLink>}{!projectHasBody && project.data.title }{!project.data.ongoing && <span class="italic text-sm font-light"> ({project.data.date.getFullYear()})</span>}</h2></span
{
projectHasBody && (
<TextLink href={link}>{project.data.title}</TextLink>
)
}{!projectHasBody && project.data.title}{
!project.data.ongoing && (
<span class="text-sm font-light italic">
{" "}
({project.data.date.getFullYear()})
</span>
)
}
</h2></span
>
<h3 class="font-header-alt font-base font-medium">
{project.data.role}
</h3>
<div class="pt-2">
<div class="mt-2">
<Token>{project.data.type}</Token>
</div>
<Paragraph>{project.data.description}</Paragraph>
{
project.data.keyFigure && project.data.keyFigure.length > 0 && (
<div class="mt-2 text-sm">
{project.data.keyFigure.map((figure) => {
return (
<div>
<span class="font-bold">{figure.title}:</span>
<span>
{figure.href && (
<TextLink href={figure.href}>{figure.name}</TextLink>
)}
{!figure.href && figure.name}
</span>
</div>
);
})}
</div>
)
}
<Paragraph
class:list={["px-0", "my-2", textOn === "right" ? "" : "md:pr-10"]}
>{project.data.description}</Paragraph
>
{
project.data.externalLinks !== undefined && (
<span class="relative order-3 ml-auto flex w-full items-start justify-start space-x-2 text-xl">
{project.data.externalLinks.map((link, index) => (
<TextLink href={link.href} includeExternalLinkIcon={false} aria-label={link.name}>
{project.data.externalLinks.map((link) => (
<TextLink
href={link.href}
includeExternalLinkIcon={false}
aria-label={link.name}
>
<Icon name={link.icon} />
</TextLink>
))}

View File

@@ -3,14 +3,18 @@ interface Props {
Tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
lineColour?: string;
lineColourDark?: string;
class?: string;
}
const {
Tag = "h1",
lineColour = "border-primary",
lineColourDark = "dark:text-primary"
lineColourDark = "dark:text-primary",
class: className
} = Astro.props;
---
<Tag class="font-header m-0 text-center text-3xl"><slot /></Tag>
<hr class={`mx-auto my-4 w-16 border-2 ${lineColour} ${lineColourDark}`} />
<div class={className}>
<Tag class="font-header m-0 text-center text-3xl"><slot /></Tag>
<hr class={`mx-auto my-4 w-16 border-2 ${lineColour} ${lineColourDark}`} />
</div>

View File

@@ -14,6 +14,10 @@ import { getAudioDurationInSeconds } from "get-audio-duration";
import { join } from "path";
const fullFilePath = join(process.cwd(), "public", track.data.src);
const duration = await getAudioDurationInSeconds(fullFilePath);
if (!track.data.card) {
throw new Error(`Track with ID "${track.id}" is missing card data.`);
}
---
<div
@@ -21,7 +25,7 @@ const duration = await getAudioDurationInSeconds(fullFilePath);
"relative flex min-h-42 flex-auto hover:cursor-pointer",
index < 2 ? "lg:w-1/2" : "sm:w-1/2 md:w-1/3 lg:w-1/4"
]}
onclick=`window.player.addFromTrackCard({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" })`
onclick=`window.player.addToQueue({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" }, true);`
>
<Image
src={track.data.card.image.src}

View File

@@ -0,0 +1,34 @@
---
import { getTrackByID } from "@lib/utils";
import { Icon } from "astro-icon/components";
interface Props {
id: string;
class?: string;
}
const { id, class: className, ...attrs } = Astro.props as Props;
const track = getTrackByID(id);
if (!track) {
throw new Error(`Track with ID "${id}" not found.`);
}
import { getAudioDurationInSeconds } from "get-audio-duration";
import { join } from "path";
const fullFilePath = join(process.cwd(), "public", track.data.src);
const duration = await getAudioDurationInSeconds(fullFilePath);
---
<div
class:list={[
"text-primary flex items-center transition hover:cursor-pointer hover:text-gray-300",
className
]}
onclick=`window.player.addToQueue({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" }, true);`
{...attrs}
>
<Icon name="fa7-solid:play-circle" class="mr-2 inline-block" />
<span class="inline-block">{track.data.metadata.title}</span>
</div>

View File

@@ -11,6 +11,15 @@ const projects = defineCollection({
description: z.string(),
slug: z.string(),
ongoing: z.boolean().optional().default(false),
keyFigure: z
.array(
z.object({
title: z.string(),
name: z.string(),
href: z.string().optional()
})
)
.optional(),
frontPage: z
.object({
order: z.number()
@@ -59,23 +68,30 @@ const tracks = defineCollection({
subtitle: z.string().optional(),
extra: z.string().optional(),
artist: z.string().optional().default("Nathan Cummins"),
artwork: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
artwork: z
.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
.optional()
}),
autoQueue: z
.object({
order: z.number()
})
.optional(),
card: z.object({
image: z.object({
src: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image()),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
card: z
.object({
image: z.object({
src: z.preprocess(
(val) => `/src/assets/img/tracks/${val}`,
image()
),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
})
})
})
.optional()
})
});

View File

@@ -4,6 +4,6 @@ export default {
last: "Cummins"
},
title: "Dr",
jobTitle: "Composer, Orchestrator, Conductor, Sound Designer, Performer",
jobTitle: "Composer, Orchestrator, Conductor, Sound Designer, Sound Designer",
email: "nathan@nathancummins.com.au"
};

View File

@@ -1,10 +1,10 @@
import person from "@data/person";
export default {
title: `${person.names.first} ${person.names.last} - Adelaide Composer, Orchestrator, Conductor, and Performer`,
title: `${person.names.first} ${person.names.last} - Adelaide Composer, Orchestrator, Conductor, and Sound Designer`,
description:
"Nathan Cummins is an award-winning composer, orchestrator, sound designer, and conductor known for his vibrant music across video games, film, and live performance. Based in Adelaide, he brings classical craft, bold creativity, and technical innovation to every project.",
tagline: "Composer, Orchestrator, Conductor, Performer",
tagline: "Composer, Orchestrator, Conductor, Sound Designer",
image: {
externalURL: `${import.meta.env.SITE}/nathan-cummins-composer-orchestrator-conductor.jpg`,
src: "nathan-cummins-composer-orchestrator-conductor.jpg",

13
src/env.d.ts vendored
View File

@@ -12,3 +12,16 @@ interface Window {
player: any;
playerIsInitialised: boolean;
}
interface ImportMetaEnv {
readonly EMAIL_USER: string;
readonly EMAIL_PASS: string;
readonly EMAIL_PORT: number;
readonly EMAIL_SECURE: "true" | "false";
readonly EMAIL_HOST: string;
readonly EMAIL_FROM: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}

View File

@@ -26,9 +26,9 @@ import MainHead from "@layouts/MainHead.astro";
<!doctype html>
<html lang="en">
<MainHead {title} {subtitle} {description} {image} />
<body>
<body class="flex min-h-svh flex-col">
<Navbar {navbarDisplay} />
<main>
<main class="grow">
<slot />
</main>
<Footer />

46
src/lib/email.ts Normal file
View File

@@ -0,0 +1,46 @@
import { createTransport } from "nodemailer";
import SMTPTransport from "nodemailer/lib/smtp-transport";
import type { Options } from "nodemailer/lib/mailer";
interface Email {
email: string;
message: string;
html?: string;
subject: string;
name: string;
}
export function constructEmailHtml(props: Email) {
return `<div>${props.message}</div>`;
}
export default async function (props: Email) {
const transporter = createTransport({
host: process.env.EMAIL_HOST || import.meta.env.EMAIL_HOST,
port: process.env.EMAIL_PORT || import.meta.env.EMAIL_PORT,
secure:
process.env.EMAIL_SECURE === "true" ||
import.meta.env.EMAIL_SECURE === "true",
auth: {
user: process.env.EMAIL_USER || import.meta.env.EMAIL_USER,
pass: process.env.EMAIL_PASS || import.meta.env.EMAIL_PASS
}
} as SMTPTransport.Options);
if (!props.html) {
props.html = constructEmailHtml(props);
}
const message: Options = {
from: `${props.name} (Website) <${process.env.EMAIL_FROM || import.meta.env.EMAIL_FROM}>`,
to: "nathan@nathancummins.com.au",
replyTo: props.email,
subject: props.subject,
text: props.message,
html: props.html
};
const info = await transporter.sendMail(message);
return info;
}

View File

@@ -1,9 +1,11 @@
import type { ImageMetadata } from "astro";
import { getImage } from "astro:assets";
import type { CollectionEntry } from "astro:content";
import { getCollection, type CollectionEntry } from "astro:content";
type Project = CollectionEntry<"projects">;
const tracks = await getCollection("tracks");
const allProjectOtherImages = import.meta.glob<{ default: ImageMetadata }>(
"/src/assets/img/projects/**/*",
{ eager: true }
@@ -137,3 +139,13 @@ export function slugify(input: string): string {
slug = slug.replace(/^-+|-+$/g, "");
return slug;
}
export function getTrackByID(id: string): CollectionEntry<"tracks"> | null {
for (const track of tracks) {
if (track.id === id) {
return track;
}
}
return null;
}

View File

@@ -11,32 +11,35 @@ const heroImages = import.meta.glob<{ default: ImageMetadata; eager: true }>(
const heroImagesArray = await convertEagerImagesImportGlobToArray(heroImages);
---
<MainLayout title="Oops! 404">
<div class="flex h-screen w-full items-center justify-center">
<MainLayout title="Oops! 404" navbarDisplay="transparent">
<div class="absolute inset-0 h-full w-full bg-black">
<ImageCarousel
images={heroImagesArray}
class="absolute z-10 h-full w-full"
class="h-full w-full"
foreground={true}
foreground={true}
foregroundOpacity="opacity-80"
/>
<div class="z-20 p-36 text-center">
<h1
class="font-header pb-8 text-5xl font-medium text-white uppercase text-shadow-lg/75 md:text-7xl lg:text-9xl"
>
Oops!
</h1>
<h2
class="font-header text-2xl font-medium text-gray-300 uppercase text-shadow-lg/75 md:text-2xl lg:text-4xl"
>
404 - Page not found
</h2>
</div>
<div
class="absolute inset-0 flex h-full w-full flex-col justify-center px-8 py-36 text-center"
>
<h1
class="font-header pb-8 text-5xl font-medium text-white uppercase text-shadow-lg/75 md:text-7xl lg:text-9xl"
>
Oops!
</h1>
<h2
class="font-header text-2xl font-medium text-gray-300 uppercase text-shadow-lg/75 md:text-2xl lg:text-4xl"
>
404 - Page not found
</h2>
<a
href="/"
class="bg-primary text-md font-header hover:text-primary repeat hover:ring-primary mx-auto mt-8 inline-block rounded px-6 py-3 font-light text-white uppercase drop-shadow-lg/75 transition hover:bg-white hover:ring-2"
>
Home
</a>
</div>
<a
href="/"
class="bg-primary text-md font-header hover:text-primary repeat hover:ring-primary mx-auto mt-8 inline-block rounded px-6 py-3 font-light text-white uppercase drop-shadow-lg/75 transition hover:bg-white hover:ring-2"
>
Home
</a>
</div>
</MainLayout>

View File

@@ -1,32 +1,176 @@
---
import aboutImage from "@assets/img/about.jpg";
import conductingImage from "@assets/img/about/nathan-cummins-composer-orchestrator-conductor-conducting-1.jpg";
import generalImage from "@assets/img/about/nathan-cummins-composer-orchestrator-conductor-general-1.png";
import H2 from "@components/MDX/H2.astro";
import Paragraph from "@components/Paragraph.astro";
import SectionTitle from "@components/SectionTitle.astro";
import TextLink from "@components/TextLink.astro";
import site from "@data/site";
import MainLayout from "@layouts/MainLayout.astro";
import { Image } from "astro:assets";
import { Content } from "../assets/bios/about.mdx";
import aboutImage from "../assets/img/about.jpg";
import Paragraph from "../components/Paragraph.astro";
import SectionTitle from "../components/SectionTitle.astro";
import TextLink from "../components/TextLink.astro";
import MainLayout from "../layouts/MainLayout.astro";
---
<MainLayout title="About">
<div class="w-full">
<section id="about" class="bg-white dark:bg-gray-950">
<div class="mx-auto max-w-4xl px-8 py-16 text-justify sm:text-center">
<SectionTitle>About</SectionTitle>
<Content components={{ p: Paragraph, a: TextLink }} />
<div class="w-full bg-white py-16 dark:bg-gray-950">
<section id="about">
<div class="mx-auto max-w-4xl px-8 text-left">
<Image
src={aboutImage}
alt="A photo of Nathan conducting the Woodville Concert Band"
class="mx-auto mt-8 size-96 rounded-full object-cover drop-shadow-lg/75 transition ease-in-out md:hover:scale-150 md:hover:shadow-xl/50"
class="mx-auto mb-8 size-96 rounded-full object-cover drop-shadow-lg/75 transition ease-in-out md:hover:scale-150 md:hover:shadow-xl/50"
transition:name="aboutImage"
/>
<span class="block w-full text-center"
><a
href="/contact/"
class="bg-primary text-md font-header hover:text-primary repeat hover:ring-primary mx-auto mt-8 inline-block rounded object-center px-6 py-3 font-light text-white uppercase drop-shadow-lg/75 transition hover:bg-white hover:ring-2"
>
Get in touch!
</a></span
<SectionTitle class="py-8">Dr Nathan Cummins</SectionTitle>
<H2>{site.tagline}</H2>
<Paragraph
>Nathan Cummins is a composer, orchestrator, conductor, and sound
designer based in Adelaide, South Australia. He holds a PhD in Sonic
Arts and Music Composition from the Elder Conservatorium of Music, and
his work spans concert performance, video games, film scores, and
interactive media.</Paragraph
>
<Paragraph
><Image
src={generalImage}
alt="Nathan conducting, asking all members of the ensemble to stand for applause."
class="mx-auto max-h-64 w-auto object-cover pb-8 md:float-right md:h-94 md:pl-8"
layout="full-width"
fit="cover"
height={256}
/>With a practice grounded in orchestral craft and enriched by
technological innovation, Nathan creates music and sound that is
vibrant, immersive, and deeply connected to its medium. His work
ranges from symphonic writing and choral music through to jazz and
electronic sound worlds.</Paragraph
>
<Paragraph
>Nathan is passionate about the power of music and sound to shape
stories, connect communities, and transform interactive experiences.
Whether collaborating with game developers, film directors,
choreographers, or fellow composers, he brings a combination of
artistry, innovation, and pragmatism that makes him a versatile and
distinctive voice in contemporary audio.</Paragraph
>
</div>
</section>
<section id="composition">
<div class="mx-auto max-w-4xl px-8 text-left">
<H2>Composition</H2>
<Paragraph
>At the heart of Nathan's career is composition. His concert works
have been performed by ensembles across Australia, and his music for
video games is recognised for its distinctive voice and adaptability.</Paragraph
>
<Paragraph>Recent projects include:</Paragraph>
<ul class="list-disc pl-4">
<li>
<span class="font-bold"
><TextLink
href="/projects/video-game/dungeons-and-dining-tables/"
>
Dungeons and Dining Tables</TextLink
>:</span
> a cosy, highly orchestral score full of warmth and colour.
</li>
<li>
<span class="font-bold">Roc's Odyssey:</span> an edgy, symphonic metal
soundtrack blending excitement with orchestral grandeur.
</li>
<li>
<span class="font-bold">The Lion and the Mouse:</span> a narrative work
for orchestra (or wind orchestra) that aims to teach children about music
and the instruments of the orchestra.
</li>
</ul>
<Paragraph
>Nathan thrives on tailoring music to story and gameplay, crafting
scores that not only support but heighten the emotional and narrative
experience.</Paragraph
>
</div>
</section>
<section id="orchestration">
<div class="mx-auto max-w-4xl px-8 text-left">
<H2>Orchestration</H2>
<Paragraph
>As an orchestrator, Nathan is highly sought after for his ability to
bring clarity, energy, and colour to music across genres. His
orchestrations have been performed and recorded internationally,
ranging from intimate chamber textures to full symphonic works.</Paragraph
>
<Paragraph
>He is also an expert in preparing scores and parts for recording
sessions, with a focus on legibility and efficiency. By translating
the composer's intent into clear, practical sheet music, Nathan helps
ensembles and composers save valuable time and money while ensuring
players can deliver their best performance.</Paragraph
>
</div>
</section>
<section id="Conducting">
<div class="mx-auto max-w-4xl px-8 text-left">
<H2>Conducting</H2>
<Paragraph
>Nathan is a versatile conductor with specialisations in concert
performance, video game music, and studio recording. He is one of
Australias leading directors of concerts featuring video game music,
and is equally at home on the podium of a symphonic performance or in
the precision-driven environment of a recording session.</Paragraph
>
<Paragraph
><Image
src={conductingImage}
alt="Nathan conducting the Woodville Concert Band, smiling while standing in front of the ensemble with his arm outstretched."
class="mx-auto max-h-96 w-auto pb-8 md:float-left md:h-94 md:pr-8"
layout="full-width"
fit="cover"
height={384}
/>Highlights of his conducting work include <span class="italic"
>Music With Motion</span
>, a cross-media concert series tying the performance of video game
music with live video projection, and <span class="italic"
>Pixelated Symphonies</span
>, a landmark concert with the <TextLink
href="https://www.awo.org.au/">Adelaide Wind Orchestra</TextLink
> that featured 14 newly commissioned video game arrangements by Nathan
himself. His repertoire as a conductor spans contemporary media music,
classical works, and cross-genre collaborations, always with a focus on
clarity, energy, and connection with performers.</Paragraph
>
<Paragraph
>Nathan is also the Artistic Director of the <TextLink
href="https://www.woodvillecb.com.au/"
>Woodville Concert Band</TextLink
>, an active, diverse, and inclusive community ensemble of around 45
members. Under his direction, the band has become a cultural hub,
reflecting the motto “music played for the community, by the
community.” Through performances that engage 8,0009,000 community
members annually, the ensemble promotes music education, fosters
inclusivity, and provides a distinctive cultural offering that
supports local industries and artists. Nathans leadership has been
instrumental in shaping the bands vision of accessibility, culture,
and community over profit, while still maintaining high artistic
standards.</Paragraph
>
</div>
</section>
<section id="sound">
<div class="mx-auto max-w-4xl px-8 text-left">
<H2>Sound Design</H2>
<Paragraph
>In addition to his musical practices, Nathan is an active sound
designer for video games. His work is highly detailed and
project-specific, creating soundscapes that respond dynamically to
gameplay and integrate with music.</Paragraph
>
<Paragraph
>What sets Nathan apart is his ability to bridge music, sound, and
technology. As a skilled software developer, he creates unique
in-engine solutions for audio, and has developed his own middleware
for FMOD that he implements across projects. This integrated approach
allows him to deliver innovative, seamless sound design that enhances
immersion.</Paragraph
>
</div>
</section>

View File

@@ -0,0 +1,52 @@
import sendEmail from "@lib/email";
import type { APIRoute } from "astro";
export const prerender = false;
export const POST: APIRoute = async ({ request }) => {
const data = await request.formData();
const email = data.get("email") as string | null;
const subject = data.get("subject") as string | null;
const message = data.get("message") as string | null;
const name = data.get("name") as string | null;
if (!email || !subject || !message || !name) {
return new Response(
JSON.stringify({ message: "Required field missing." }),
{
status: 400,
statusText: "Missing required fields."
}
);
}
const html = `<h1>Message Received via Contact Form</h1><br>
<b>Name</b>: ${name}<br>
<b>Email</b>: ${email}<br>
<b>Message</b>: ${message}`;
try {
await sendEmail({ email, subject, message, name, html });
} catch (error) {
return new Response(
JSON.stringify({
message: `Message failed to send with an internal server error. Please contact me directly via a method below.`
}),
{
status: 500,
statusText: `Message failed to send with an internal server error. Please contact me directly via a method below.`
}
);
}
return new Response(
JSON.stringify({
message:
"Thanks for getting in touch! I will try to get back to you as soon as I can."
}),
{
status: 200,
statusText: "OK"
}
);
};

View File

@@ -1,16 +1,25 @@
---
import ContactForm from "@components/ContactForm.astro";
import Paragraph from "@components/Paragraph.astro";
import SectionTitle from "@components/SectionTitle.astro";
import TextLink from "@components/TextLink.astro";
import MainLayout from "@layouts/MainLayout.astro";
import { Icon } from "astro-icon/components";
import Paragraph from "../components/Paragraph.astro";
import SectionTitle from "../components/SectionTitle.astro";
import TextLink from "../components/TextLink.astro";
import MainLayout from "../layouts/MainLayout.astro";
---
<MainLayout title="Contact">
<div class="w-full">
<section id="contact" class="bg-white dark:bg-gray-950">
<section id="contact" class="bg-primary dark:bg-gray-800">
<div class="mx-auto max-w-4xl px-8 py-16 text-center">
<SectionTitle>Let's get in touch!</SectionTitle>
<SectionTitle class="text-white" lineColour="text-white"
>Let's get in touch!</SectionTitle
>
<ContactForm />
</div>
</section>
<section id="details" class="bg-white dark:bg-gray-950">
<div class="mx-auto max-w-4xl px-8 py-16 text-center">
<SectionTitle>Other ways to reach me</SectionTitle>
<div class="grid grid-cols-1 text-lg md:grid-cols-2">
<div class="col-span-1 flex flex-col items-center justify-center p-4">
<Icon name="fa7-solid:at" class="text-4xl" />

View File

@@ -109,7 +109,7 @@ const tracks = (
<div class="flex h-48 w-full items-center justify-center">
<ImageCarousel
images={imagesForCTAArray}
class="absolute -z-40 h-full w-full"
class="h-full w-full"
foreground={true}
foregroundColour="bg-primary"
foregroundOpacity="opacity-75 dark:opacity-25"
@@ -118,13 +118,15 @@ const tracks = (
quality={5}
height={192}
shuffle={true}
/>
<a
href="/contact/"
class="text-md font-header repeat text-primary hover:bg-primary mx-auto inline-block rounded bg-white px-6 py-3 font-light uppercase drop-shadow-lg/75 transition hover:text-white hover:ring-2 hover:ring-white"
><div class="flex h-full w-full items-center">
<a
href="/contact/"
class="text-md font-header repeat text-primary hover:bg-primary mx-auto inline-block rounded bg-white px-6 py-3 font-light uppercase drop-shadow-lg/75 transition hover:text-white hover:ring-2 hover:ring-white"
>
Get in touch!
</a>
</div></ImageCarousel
>
Get in touch!
</a>
</div>
</section>
<section id="projects" class="overflow-hidden bg-white dark:bg-gray-950">
@@ -203,10 +205,10 @@ const tracks = (
</div>
</section>
<section id="fillerUntilServicesIsComplete" class="text-white">
<div class="flex h-64 w-full items-center justify-center">
<div class="flex h-96 w-full items-center justify-center">
<ImageCarousel
images={imagesForCTAArray}
class="absolute -z-40 h-full w-full overflow-hidden"
class="h-full w-full"
foreground={true}
foregroundColour="bg-primary"
foregroundOpacity="opacity-50 dark:opacity-25"

View File

@@ -1,14 +1,19 @@
---
import { getCollection } from "astro:content";
import SectionTitle from "../components/SectionTitle.astro";
import MainLayout from "../layouts/MainLayout.astro";
import { slugify } from "@lib/utils";
import SectionTitle from "@components/SectionTitle.astro";
import MainLayout from "@layouts/MainLayout.astro";
import Token from "@components/Token.astro";
import ProjectCard from "@components/ProjectCard.astro";
const projects = (await getCollection("projects")).sort(
(a, b) => b.data.date.valueOf() - a.data.date.valueOf()
);
const types = [...new Set(projects.map((project) => project.data.type))];
---
<MainLayout title="Projects">
@@ -16,6 +21,22 @@ const projects = (await getCollection("projects")).sort(
<section id="projects" class="bg-white dark:bg-gray-950">
<div class="mx-auto max-w-4xl px-8 py-16 text-center">
<SectionTitle>Recent Projects</SectionTitle>
<div id="filter-tokens" class="my-8 space-y-2 space-x-2">
<Token
class="filter-token !text-primary ring-primary bg-white ring-2 hover:cursor-pointer"
data-type="all">All</Token
>
{
types.map((type) => (
<Token
class="filter-token hover:cursor-pointer"
data-type={slugify(type)}
>
{type}
</Token>
))
}
</div>
<div class="space-y-16 md:space-y-8">
{
projects.map((project, index) => {
@@ -23,6 +44,8 @@ const projects = (await getCollection("projects")).sort(
<ProjectCard
project={project}
textOn={index % 2 === 0 ? "left" : "right"}
data-type={slugify(project.data.type)}
class="project"
/>
);
})
@@ -32,3 +55,46 @@ const projects = (await getCollection("projects")).sort(
</section>
</div>
</MainLayout>
<script>
function setUpFilters() {
const tokensContainer = document.querySelector("#filter-tokens");
if (!tokensContainer) return;
const tokens =
tokensContainer.querySelectorAll<HTMLElement>(".filter-token");
const projects = document.querySelectorAll<HTMLElement>(".project");
tokensContainer.addEventListener("click", (e) => {
const token = (e.target as Element).closest<HTMLElement>(".filter-token");
if (!token) return;
tokens.forEach((t) =>
t.classList.remove(
"bg-white",
"!text-primary",
"ring-primary",
"ring-2"
)
);
token.classList.add(
"bg-white",
"!text-primary",
"ring-primary",
"ring-2"
);
const type = token.dataset.type;
projects.forEach((project) => {
const match = type === "all" || project.dataset.type === type;
project.classList.toggle("hidden", !match);
});
});
}
setUpFilters();
document.addEventListener("astro:page-load", setUpFilters);
</script>

View File

@@ -1,97 +0,0 @@
---
import ImageCarousel from "@components/ImageCarousel.astro";
import MainLayout from "@layouts/MainLayout.astro";
import { getCollection, render } from "astro:content";
import {
getAllProjectImages,
getFullExternalURLOfImage,
getProjectHero,
slugify
} from "@/lib/utils";
export async function getStaticPaths() {
const projects = await getCollection("projects", ({ body }) => {
return body && body.trim().length > 0;
});
return projects.map((project) => ({
params: {
slug: `${slugify(project.data.type)}/${slugify(project.data.slug)}`
},
props: { project }
}));
}
const { project } = Astro.props;
const { Content } = await render(project);
const images = getAllProjectImages(project);
const hero = getProjectHero(project);
const seoImage: SiteImage = {
externalURL: await getFullExternalURLOfImage(hero),
src: hero.src,
alt: project.data.images.hero.alt,
width: hero.width,
height: hero.height
};
import A from "@components/MDX/A.astro";
import Blockquote from "@components/MDX/Blockquote.astro";
import CodeSnippet from "@components/MDX/CodeSnippet.astro";
import H1 from "@components/MDX/H1.astro";
import H2 from "@components/MDX/H2.astro";
import H3 from "@components/MDX/H3.astro";
import H4 from "@components/MDX/H4.astro";
import H5 from "@components/MDX/H5.astro";
import H6 from "@components/MDX/H6.astro";
import IMG from "@components/MDX/IMG.astro";
import P from "@components/MDX/P.astro";
---
<MainLayout
title={project.data.title}
description={project.data.description}
image={seoImage}
>
<div class="w-full">
<section id="cta" class="text-white">
<div class="flex h-64 w-full items-center justify-center">
<ImageCarousel
images={images}
class="absolute -z-40 h-full w-full"
foreground={true}
interval={2000}
transitionDuration="duration-1000"
quality={50}
height={256}
shuffle={true}
/>
<h1 class="font-header text-4xl uppercase text-shadow-lg/75">
{project.data.title}
</h1>
</div>
</section>
<section id="projects" class="bg-white dark:bg-gray-950">
<div <div class="mx-auto max-w-4xl px-8 py-16 text-justify md:text-left">
<Content
components={{
p: P,
a: A,
h1: H1,
h2: H2,
h3: H3,
h4: H4,
h5: H5,
h6: H6,
blockquote: Blockquote,
pre: CodeSnippet,
img: IMG
}}
/>
</div>
</section>
</div>
</MainLayout>

View File

@@ -0,0 +1,153 @@
---
import ImageCarousel from "@components/ImageCarousel.astro";
import MainLayout from "@layouts/MainLayout.astro";
import TextLink from "@components/TextLink.astro";
import { Icon } from "astro-icon/components";
import { getCollection, render } from "astro:content";
import {
getAllProjectImages,
getFullExternalURLOfImage,
getProjectHero,
slugify
} from "@lib/utils";
export async function getStaticPaths() {
const projects = await getCollection("projects", ({ body }) => {
return body && body.trim().length > 0;
});
return projects.map((project) => ({
params: {
type: slugify(project.data.type),
slug: slugify(project.data.slug)
},
props: { project }
}));
}
const { project } = Astro.props;
const { Content } = await render(project);
const images = getAllProjectImages(project);
const hero = getProjectHero(project);
const seoImage: SiteImage = {
externalURL: await getFullExternalURLOfImage(hero),
src: hero.src,
alt: project.data.images.hero.alt,
width: hero.width,
height: hero.height
};
import A from "@components/MDX/A.astro";
import Blockquote from "@components/MDX/Blockquote.astro";
import CodeSnippet from "@components/MDX/CodeSnippet.astro";
import H1 from "@components/MDX/H1.astro";
import H2 from "@components/MDX/H2.astro";
import H3 from "@components/MDX/H3.astro";
import H4 from "@components/MDX/H4.astro";
import H5 from "@components/MDX/H5.astro";
import H6 from "@components/MDX/H6.astro";
import IMG from "@components/MDX/IMG.astro";
import P from "@components/MDX/P.astro";
---
<MainLayout
title={project.data.title}
description={project.data.description}
image={seoImage}
>
<div class="w-full">
<section id="title" class="text-white">
<div class="flex h-100 w-full items-center justify-center">
<ImageCarousel
images={images}
class="h-full w-full"
foreground={true}
interval={2000}
transitionDuration="duration-1000"
quality={70}
height={400}
shuffle={true}
><div
class="absolute inset-0 flex h-full w-full items-center justify-center px-8 text-center"
>
<div class="block space-y-4">
<h1
class="font-header text-4xl uppercase text-shadow-lg/75 md:text-6xl"
>
{project.data.title}
</h1>
<div class="text-lg font-bold md:text-xl">
<span>{project.data.role}</span> | <span
>{project.data.type}</span
>
</div>
{
project.data.keyFigure && project.data.keyFigure.length > 0 && (
<div class="text-md mt-8">
{project.data.keyFigure.map((figure) => {
return (
<div>
<span class="font-bold">{figure.title}:</span>
<span>
{figure.href && (
<TextLink href={figure.href}>
{figure.name}
</TextLink>
)}
{!figure.href && figure.name}
</span>
</div>
);
})}
</div>
)
}
{
project.data.externalLinks !== undefined && (
<span class="relative order-3 mx-auto flex w-full items-center justify-center space-x-4 text-4xl">
{project.data.externalLinks.map((link) => (
<TextLink
href={link.href}
includeExternalLinkIcon={false}
aria-label={link.name}
>
<Icon
name={link.icon}
class="text-white transition hover:text-gray-300"
/>
</TextLink>
))}
</span>
)
}
</div>
</div></ImageCarousel
>
</div>
</section>
<section id="projects" class="bg-white dark:bg-gray-950">
<div class="mx-auto max-w-4xl px-8 py-16 text-justify md:text-left">
<Content
components={{
p: P,
a: A,
h1: H1,
h2: H2,
h3: H3,
h4: H4,
h5: H5,
h6: H6,
blockquote: Blockquote,
pre: CodeSnippet,
img: IMG
}}
/>
</div>
</section>
</div>
</MainLayout>

View File

@@ -17,7 +17,7 @@ const awards = (await getCollection("awards")).sort(
<SectionTitle>Awards and Recognition</SectionTitle>
<div class="space-y-8">
{
awards.map((award, index) => {
awards.map((award) => {
return <Award award={award} />;
})
}

View File

@@ -5,6 +5,18 @@
@theme {
--color-primary: #ff2d00;
--color-primary-50: oklch(1 0.244 31.9);
--color-primary-100: oklch(0.91 0.244 31.9);
--color-primary-200: oklch(0.84 0.244 31.9);
--color-primary-300: oklch(0.77 0.244 31.9);
--color-primary-400: oklch(0.7 0.244 31.9);
--color-primary-500: #ff2d00;
--color-primary-600: oklch(0.55 0.244 31.9);
--color-primary-700: oklch(0.45 0.244 31.9);
--color-primary-800: oklch(0.35 0.244 31.9);
--color-primary-900: oklch(0.18 0.244 31.9);
--color-primary-950: oklch(0.09 0.244 31.9);
--font-header: "Lutschine Bold", sans-serif;
--font-header-alt: "Lutschine Regular", sans-serif;
--font-body: "Roboto", sans-serif;
@@ -96,7 +108,6 @@
@apply inline-block;
@apply w-full;
@apply pr-8;
@apply first:pt-2 last:pb-2;
@apply bg-white dark:bg-gray-100;
}
@@ -105,7 +116,7 @@
counter-increment: step;
@apply w-10;
@apply mr-5 ml-auto pr-2;
@apply mr-2 ml-auto pt-1 pr-2 pb-1;
@apply inline-block;
@apply text-right;