GitHub > New Repository Copy link to remote repository
mkdir landing-page
cd landing-page
git init
git remote add origin <remote-repo-link>
git branch -M main
git commit --allow-empty -m 'Initial commit'
git push --set-upstream origin main
index.htmltouch index.html
DOCTYPE
html
head
meta (character set)
meta (page description)
title
viewport
body
header
h1
p
main
section
h2
p
section
h2
ul => li
Give each feature name strong emphasis
- Shared categories: Track hours and dollars using the same simple categories.
- Yearly projections: Plan your time and money with a forward-looking view.
- Unified dashboard: See where your resources go and what they support.
section
h2
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.
section
h2
p
footer
p
Open files explorer from vs code terminal
explorer .
Double click index.html to open in browser (using file protocol => file:///)
git add .
git commit -m 'Adds index.html
mkdir -p .github/workflows
touch .github/workflows/deploy.yml
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
Go to GitHub repo > settings > pages > Your site is live at ...