Skip to content

Commit

Permalink
getting things ready!
Browse files Browse the repository at this point in the history
  • Loading branch information
wylie committed Jan 28, 2025
1 parent 5dde9c9 commit 47e1cdc
Show file tree
Hide file tree
Showing 11 changed files with 132 additions and 7 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
# 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

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
4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: 'https://wylie.github.io'
});
4 changes: 4 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---
<p>Footer</p>
6 changes: 6 additions & 0 deletions src/components/Heading.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
import Navigation from './Navigation.astro';
---
<h1>Teresa Fisher PhD. Milkweed Mental Health</h1>
<Navigation />
Empty file added src/components/Meta.astro
Empty file.
21 changes: 21 additions & 0 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
---
<ul>
<li><a href="/">Welcome</a></li>
<li><a href="/about">About</a></li>
<li><a href="/services">Services</a></li>
<li><a href="/contact">Contact</a></li>
</ul>

<style>
ul {
display: flex;
justify-self: center;
list-style-type: none;
margin: 0;
padding: 0;
}
li:not(:first-child) {
margin-left: 1rem;
}
</style>
17 changes: 13 additions & 4 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>Astro Basics</title>
<title>Teresa Fisher, PhD.</title>
</head>
<body>
<body class="layout">
<slot />
</body>
</html>
Expand All @@ -19,4 +19,13 @@
width: 100%;
height: 100%;
}
.layout {
display: grid;
grid-template-rows: auto auto 1fr auto;
gap: 1rem;
text-align: center;
min-height: 100vh;
max-width: 800px;
margin: auto;
}
</style>
14 changes: 14 additions & 0 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import Layout from '../layouts/Layout.astro';
import Heading from '../components/Heading.astro';
import Footer from '../components/Footer.astro';
---
<Layout>
<Heading />
<main>
<h2>About</h2>
<p>Content here</p>
</main>
<Footer />
</Layout>
14 changes: 14 additions & 0 deletions src/pages/contact.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import Layout from '../layouts/Layout.astro';
import Heading from '../components/Heading.astro';
import Footer from '../components/Footer.astro';
---
<Layout>
<Heading />
<main>
<h2>Contact</h2>
Content here
</main>
<Footer />
</Layout>
10 changes: 8 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---
import Welcome from '../components/Welcome.astro';
import Layout from '../layouts/Layout.astro';
import Heading from '../components/Heading.astro';
import Footer from '../components/Footer.astro';
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
---

<Layout>
<Welcome />
<Heading />
<main>
<h2>Welcome</h2>
Content here
</main>
<Footer />
</Layout>
14 changes: 14 additions & 0 deletions src/pages/services.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import Layout from '../layouts/Layout.astro';
import Heading from '../components/Heading.astro';
import Footer from '../components/Footer.astro';
---
<Layout>
<Heading />
<main>
<h2>Services</h2>
Content here
</main>
<Footer />
</Layout>

0 comments on commit 47e1cdc

Please sign in to comment.