Static landing page

Create remote repository

GitHub > New Repository Copy link to remote repository

Add directory

mkdir landing-page

Initialize git

cd landing-page
git init

Add git remote

git remote add origin <remote-repo-link>

Setup branch

git branch -M main

Setup initial commit

git commit --allow-empty -m 'Initial commit'

Push and set upstream repo

git push --set-upstream origin main

Add index.html

touch index.html

Write HTML

Write page elements

DOCTYPE

html

Write head elements

head

meta (character set)

meta (page description)

title

Duo Budget – A Clear View of Your Time and Money

viewport

Write body elements

body

Write header

header

h1

Duo Budget

p

A clear view of your time and money in one place.

Write main section

main

Write intro section

section

h2

Time is Money

p

When time and money live in different apps, it’s hard to understand how they influence each other. Duo Budget connects them in one simple system.

Write features section

section

h2

How Duo Budget helps

ul => li
Give each feature name strong emphasis

Write audience section

section

h2

Can it help you?

dl => dt => dd

Are you busy?
Find clarity without the extra effort.
Are you a planner?
Get a simple view of your time and money.
Are you curious?
See how your resources work together.

Write approach section

section

h2

A simple, incremental approach

p

Duo Budget is growing step by step, starting with the essentials and expanding as the vision evolves.

Write footer

footer

p

&copy; Duo Budget

Preview

Open files explorer from vs code terminal

explorer .

Double click index.html to open in browser (using file protocol => file:///)

Commit

git add .
git commit -m 'Adds index.html

Add deploy workflow for GitHub pages

mkdir -p .github/workflows
touch .github/workflows/deploy.yml

Write workflow

name: Deploy static site

on:
  push:
    branches: [main]

permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: .

      - name: Deploy to GitHub Pages
        uses: actions/deploy-pages@v4

View live page on GitHub

Go to GitHub repo > settings > pages > Your site is live at ...