diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..6b7e1112 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy to GitHub Pages + +on: + # Trigger the workflow every time you push to the main branches + push: + branches: [ main, master, gh-pages ] + # Allows you to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v4 + + - name: Install, build, and upload your site + uses: withastro/action@v3 + with: + path: . # The root location of your Astro project inside the repository. (optional) + node-version: 20 # The version of Node.js to use (optional) + package-manager: npm # The Node package manager to use (optional) + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..94d3051a --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# build output +dist/ +.output/ + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# environment variables +.env +.env.production + +# macOS +.DS_Store + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# Astro +.astro/ diff --git a/DronesWritingSample.pdf b/DronesWritingSample.pdf deleted file mode 100644 index ec50b1b9..00000000 Binary files a/DronesWritingSample.pdf and /dev/null differ diff --git a/Peter_Hagen_Resume_2016_DS.pdf b/Peter_Hagen_Resume_2016_DS.pdf deleted file mode 100644 index 1d705a4f..00000000 Binary files a/Peter_Hagen_Resume_2016_DS.pdf and /dev/null differ diff --git a/README.md b/README.md index 87b813ae..81cdc9bb 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,57 @@ -# Astro Starter Kit: Minimal +# Peter Hagen - Portfolio Website -```sh -npm create astro@latest -- --template minimal -``` +Modern portfolio website built with Astro and TailwindCSS, showcasing data engineering, AI/ML, quantitative methods, and GovCon analytics work. -> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! +## 🚀 Deployment -## 🚀 Project Structure +This site is automatically deployed to GitHub Pages via GitHub Actions when you push to the repository. -Inside of your Astro project, you'll see the following folders and files: +### First-time Setup -```text -/ -├── public/ -├── src/ -│ └── pages/ -│ └── index.astro -└── package.json -``` +1. **Enable GitHub Pages in repository settings:** + - Go to Settings → Pages + - Under "Source", select "GitHub Actions" + +2. **Push your changes:** + ```bash + git add . + git commit -m "Deploy new Astro site" + git push origin gh-pages + ``` + +3. **Monitor deployment:** + - Go to the "Actions" tab in your GitHub repository + - You should see the "Deploy to GitHub Pages" workflow running + - Once complete, your site will be live at https://phizou.github.io/ -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. +### Manual Deployment -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. +If you need to deploy manually: -Any static assets, like images, can be placed in the `public/` directory. +```bash +npm run build +# The dist/ folder contains the built site +``` + +## 🛠️ Development + +```bash +npm install +npm run dev # Start dev server at localhost:4321 +npm run build # Build for production +npm run preview # Preview production build locally +``` -## 🧞 Commands +## 📁 Project Structure -All commands are run from the root of the project, from a terminal: +- `src/` - Astro source files (pages, components, layouts) +- `src/content/` - Markdown content (projects, notes) +- `public/` - Static assets (images, PDFs, data files) +- `dist/` - Built site (generated, don't commit) -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | +## 📝 Adding Content -## 👀 Want to learn more? +- **New Project:** Add a `.md` file to `src/content/projects/` +- **New Note:** Add a `.md` file to `src/content/notes/` +- See existing files for frontmatter structure -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). diff --git a/astro.config.mjs b/astro.config.mjs index 508cbece..fa32a551 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,6 +5,8 @@ import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ + site: 'https://phizou.github.io', + base: '/', vite: { plugins: [tailwindcss()] } diff --git a/node_modules/.vite/deps/_metadata.json b/node_modules/.vite/deps/_metadata.json index d490c000..5fc95b3d 100644 --- a/node_modules/.vite/deps/_metadata.json +++ b/node_modules/.vite/deps/_metadata.json @@ -1,25 +1,25 @@ { - "hash": "e62ff4a0", - "configHash": "e36fa7d1", + "hash": "50c1bd6f", + "configHash": "d266b59e", "lockfileHash": "0cfc758e", - "browserHash": "d9ad5cd6", + "browserHash": "7f6861a7", "optimized": { "astro > cssesc": { "src": "../../cssesc/cssesc.js", "file": "astro___cssesc.js", - "fileHash": "19641325", + "fileHash": "74a00161", "needsInterop": true }, "astro > aria-query": { "src": "../../aria-query/lib/index.js", "file": "astro___aria-query.js", - "fileHash": "bf02b91b", + "fileHash": "50a2b09a", "needsInterop": true }, "astro > axobject-query": { "src": "../../axobject-query/lib/index.js", "file": "astro___axobject-query.js", - "fileHash": "c8433102", + "fileHash": "a6c12ee2", "needsInterop": true } }, diff --git a/teams_WAS_2015_per_game.csv b/teams_WAS_2015_per_game.csv deleted file mode 100644 index d55ea467..00000000 --- a/teams_WAS_2015_per_game.csv +++ /dev/null @@ -1,19 +0,0 @@ -Rk,Player,Age,G,GS,MP,FG,FGA,FG%,ThreeP,3PA,3P%,TwoP,2PA,2P%,eFGperc,FT,FTA,FT%,ORB,DRB,TRB,AST,STL,BLK,TOV,PF,PTS -1,John Wall,24,79,79,35.9,6.6,14.8,0.445,0.8,2.7,0.3,5.7,12,0.478,0.473,3.6,4.6,0.785,0.5,4.2,4.6,10,1.7,0.6,3.8,2.3,17.6 -2,Bradley Beal,21,63,59,33.4,5.8,13.5,0.427,1.7,4.1,0.409,4.1,9.4,0.434,0.489,2.1,2.6,0.783,0.9,2.9,3.8,3.1,1.2,0.3,2,2.2,15.3 -3,Marcin Gortat,30,82,82,29.9,5.4,9.5,0.566,0,0,0,5.4,9.4,0.569,0.566,1.5,2.1,0.703,2.2,6.5,8.7,1.2,0.6,1.3,1.2,2.3,12.2 -4,Paul Pierce,37,73,73,26.2,4,9,0.447,1.6,4.2,0.389,2.4,4.8,0.496,0.537,2.2,2.9,0.781,0.6,3.4,4,2,0.6,0.3,1.3,2.2,11.9 -5,Nene Hilario,32,67,58,25.3,4.6,9,0.511,0,0.1,0.2,4.6,8.9,0.513,0.512,1.8,3,0.604,1.3,3.9,5.1,1.8,1,0.3,1.9,2.7,11 -6,Kris Humphries,29,64,17,21,3.3,7,0.473,0,0.1,0,3.3,6.9,0.481,0.473,1.4,1.8,0.744,1.8,4.7,6.5,0.9,0.5,0.4,0.7,2,8 -7,Rasual Butler,35,75,1,20.1,2.9,6.9,0.422,1.2,3.1,0.387,1.7,3.8,0.45,0.51,0.7,0.9,0.791,0.4,2.3,2.6,0.8,0.4,0.3,0.6,1.3,7.7 -8,Ramon Sessions,28,28,3,19.5,2.2,5.4,0.411,0.5,1.1,0.406,1.8,4.3,0.412,0.454,2.5,3,0.812,0.4,2.3,2.7,3.1,0.6,0,1.3,1,7.4 -9,Otto Porter,21,74,13,19.4,2.4,5.3,0.45,0.5,1.4,0.337,1.9,3.9,0.491,0.495,0.8,1.1,0.734,0.9,2,3,0.9,0.6,0.4,0.7,1.3,6 -10,Drew Gooden,33,51,7,16.9,2.2,5.4,0.399,0.5,1.2,0.39,1.7,4.3,0.401,0.44,0.7,0.9,0.773,1.4,3,4.4,1,0.4,0.2,0.5,1.8,5.4 -11,Kevin Seraphin,25,79,0,15.6,2.9,5.7,0.513,0,0,0,2.9,5.7,0.516,0.513,0.7,1,0.707,1.1,2.5,3.6,0.7,0.1,0.7,1.2,2.5,6.6 -12,Garrett Temple,28,52,18,14.1,1.3,3.3,0.4,0.6,1.7,0.375,0.7,1.6,0.427,0.497,0.7,0.9,0.729,0.5,1.3,1.7,1.1,0.8,0.2,0.7,1.5,3.9 -13,Andre Miller,38,51,0,12.4,1.5,2.8,0.542,0,0.2,0.125,1.5,2.6,0.567,0.546,0.5,0.8,0.718,0.4,1.1,1.5,2.8,0.3,0,0.9,1.1,3.6 -14,Martell Webster,28,32,0,11,0.8,2.8,0.264,0.3,1.3,0.233,0.4,1.5,0.292,0.319,1.5,2,0.75,0.3,1.1,1.4,0.5,0.2,0,0.7,0.8,3.3 -15,Will Bynum,32,7,0,9.6,1.4,4.4,0.323,0,1.3,0,1.4,3.1,0.455,0.323,0.3,0.6,0.5,0.3,0.6,0.9,2.6,0.1,0.1,1.1,1.3,3.1 -16,Glen Rice,24,5,0,8.6,0.6,3,0.2,0.2,1.4,0.143,0.4,1.6,0.25,0.233,0.8,1.2,0.667,0.4,0.4,0.8,0.4,0,0,0.4,2.2,2.2 -17,DeJuan Blair,25,29,0,6.2,0.9,2,0.456,0,0,,0.9,2,0.456,0.456,0.1,0.2,0.667,0.6,1.4,1.9,0.1,0.2,0,0.4,1.4,1.9 -18,Toure' Murry,25,4,0,4.3,0.5,1,0.5,0,0,,0.5,1,0.5,0.5,0.5,0.5,1,0.3,0,0.3,0.3,0.3,0,1,0.5,1.5 \ No newline at end of file diff --git a/teams_WAS_2015_playoffs_per_game.csv b/teams_WAS_2015_playoffs_per_game.csv deleted file mode 100644 index ffbc3118..00000000 --- a/teams_WAS_2015_playoffs_per_game.csv +++ /dev/null @@ -1,15 +0,0 @@ -Rk,Player,Age,G,GS,MP,FG,FGA,FG%,ThreeP,3PA,3P%,TwoP,2PA,2P%,eFGperc,FT,FTA,FT%,ORB,DRB,TRB,AST,STL,BLK,TOV,PF,PTS -1,Bradley Beal,21,10,10,41.8,8.1,20,0.405,2.3,6.3,0.365,5.8,13.7,0.423,0.463,4.9,5.9,0.831,1.4,4.1,5.5,4.6,1.6,0.7,2.6,1.9,23.4 -2,John Wall,24,7,7,39,6.1,15.7,0.391,0.4,2.4,0.176,5.7,13.3,0.43,0.405,4.7,5.6,0.846,0.7,4,4.7,11.9,1.4,1.4,3.9,1.9,17.4 -3,Otto Porter,21,10,0,33.1,3.9,8.8,0.443,1.2,3.2,0.375,2.7,5.6,0.482,0.511,1,2.1,0.476,2.4,5.6,8,1.8,1.2,0.2,0.6,1.6,10 -4,Marcin Gortat,30,10,10,30.7,5.4,8.6,0.628,0,0,,5.4,8.6,0.628,0.628,1.6,2.4,0.667,2.7,6.1,8.8,2.2,0.6,1.1,1.6,2.9,12.4 -5,Paul Pierce,37,10,10,29.8,4.8,9.9,0.485,3.3,6.3,0.524,1.5,3.6,0.417,0.652,1.7,2,0.85,0,4.2,4.2,0.9,0.6,0.7,1,3.3,14.6 -6,Nene Hilario,32,10,10,25.7,3.4,7.6,0.447,0,0,,3.4,7.6,0.447,0.447,1.1,2.3,0.478,2.5,4.1,6.6,1.5,0.9,0.3,1.4,3.2,7.9 -7,Ramon Sessions,28,10,3,21.8,2.6,7,0.371,1,2.5,0.4,1.6,4.5,0.356,0.443,1.3,1.9,0.684,0.2,2.2,2.4,2.3,0.4,0.1,1,1.4,7.5 -8,Drew Gooden,33,10,0,17.8,2.3,6.1,0.377,1.2,2.6,0.462,1.1,3.5,0.314,0.475,1,1.3,0.769,1.3,4.2,5.5,0.8,0.2,1,1.4,2.1,6.8 -9,Kevin Seraphin,25,6,0,12,2.5,5.2,0.484,0,0,,2.5,5.2,0.484,0.484,0.5,1,0.5,0.5,2.7,3.2,0.3,0.3,0.2,0.7,1.7,5.5 -10,Will Bynum,32,3,0,10.3,2.3,4.7,0.5,0.3,0.7,0.5,2,4,0.5,0.536,1.3,1.7,0.8,0.7,0.3,1,1,0.7,0.3,1.7,2,6.3 -11,Garrett Temple,28,4,0,6.5,0.3,1.5,0.167,0,0.8,0,0.3,0.8,0.333,0.167,1.3,2,0.625,0.3,0.5,0.8,0.3,0.5,0,0.8,1,1.8 -12,Kris Humphries,29,1,0,5,1,1,1,0,0,,1,1,1,1,0,0,,0,3,3,0,0,0,0,1,2 -13,Martell Webster,28,1,0,4,1,2,0.5,0,1,0,1,1,1,0.5,0,0,,0,0,0,0,0,0,0,0,2 -14,Rasual Butler,35,2,0,3.5,0,0.5,0,0,0.5,0,0,0,,0,0,0,,0,0.5,0.5,0.5,0,0,0,1,0 \ No newline at end of file