initial commit

This commit is contained in:
Barrett Ruth 2026-01-11 11:36:57 -05:00
parent 762df3cc08
commit 151b10f975
26 changed files with 4982 additions and 14 deletions

41
.github/workflows/aws.yaml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Deploy to AWS S3
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build site
run: pnpm build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Deploy static site to S3 bucket
run: |
chmod +x scripts/deploy.sh
scripts/deploy.sh

36
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,36 @@
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Prettier check
run: pnpm prettier --check .
- name: Astro check
run: pnpm astro check
- name: Build
run: pnpm build

6
.prettierignore Normal file
View file

@ -0,0 +1,6 @@
node_modules/
dist/
build/
.astro/
pnpm-lock.yaml
*.mdx

11
.prettierrc Normal file
View file

@ -0,0 +1,11 @@
{
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}

View file

@ -1,14 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url=https://barrettruth.com" />
<title>Redirecting...</title>
</head>
<body>
<p>
If you are not redirected automatically,
<a href="https://barrettruth.com">click here</a>.
</p>
</body>
</html>

31
package.json Normal file
View file

@ -0,0 +1,31 @@
{
"name": "philipmruth.com",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"prepare": "husky",
"check": "astro check"
},
"lint-staged": {
"*.{js,ts,jsx,tsx,json,css,scss,md,astro,html,yaml,yml}": [
"prettier --write",
"astro check"
]
},
"dependencies": {
"astro": "^5.16.8"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@typescript-eslint/parser": "^8.52.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3"
}
}

4768
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

BIN
public/death/death.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

3
readme.md Normal file
View file

@ -0,0 +1,3 @@
# philipmruth.com
tribute website for my father, philip matthew ruth

4
robots.txt Normal file
View file

@ -0,0 +1,4 @@
User-agent: *
Disallow: /public/signifier/
Disallow: /wip.html
Allow: /

3
scripts/deploy.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
aws s3 sync ./dist/ s3://philipmruth.com --delete

79
src/pages/index.astro Normal file
View file

@ -0,0 +1,79 @@
---
const title = "philip ruth";
const description = "Philip Matthew Ruth";
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content={description} />
<link rel="icon" type="image/webp" href="/logo.webp" />
<title>{title}</title>
</head>
<body>
<div class="death-container">
<img id="death-image" src="/death/death.webp" alt="Philip Matthew Ruth" />
<div id="tribute-text" class="tribute">
rip philip matthew ruth<br />
february 8, 1967 c. december 2, 2025
</div>
<div class="credit">
gary wray<br />
<em>waiting in line</em>, 2021
</div>
</div>
</body>
</html>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden;
background: black;
color: white;
}
.death-container {
position: relative;
width: 100vw;
height: 100vh;
display: grid;
grid-template-rows: 1fr auto;
grid-template-columns: 1fr 1fr;
}
img {
grid-row: 1 / -1;
grid-column: 1 / -1;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.tribute {
grid-row: 2;
grid-column: 2;
justify-self: end;
align-self: end;
padding: 1.5rem;
font-size: clamp(1.5rem, 4vmin, 3em);
z-index: 10;
text-align: right;
color: white;
}
.credit {
grid-row: 2;
grid-column: 1;
justify-self: start;
align-self: end;
padding: 1.5rem;
z-index: 10;
font-size: clamp(1.2rem, 3vmin, 2em);
text-align: left;
color: white;
}
</style>