Repo sync, GitHub Codespaces, and Netlify deployment
WE DID MOST OF THIS IN CLASS TODAY. IF YOU MISSED CLASS AND/OR NEED A REFRESHER, READ THIS. Follow these steps during class as your instructor demonstrates. You'll submit your final Netlify URL in the assignment after completing all steps.
Goal: Add your week 1 and week 2 projects to your existing portfolio repository
We are now going to mimic what we just did locally. In the future I will show you how to work locally and just sync to repo. But for now we are doing things the long math way.
Create your folders:
week-1week-2Upload your files:
newspaper.html, lost-pet.html, favorite-band.html into the week-1 folderrecipe.html and your recipe image into the week-2 folderCommit your changes:
Add week 1 and 2 projectsweek-1/ and week-2/ folders with all your files inside!Your repository structure should look like this:
code-design-workspace/
├── projects/
├── setup/
├── week-0/
│ ├── about-me.md
├── week-1/
│ ├── newspaper.html
│ ├── lost-pet.html
│ ├── favorite-band.html
│ └── img
│ ├── band-photo.jpg
│ └── pet-photo.jpg
│
└── week-2/
├── recipe/
├── recipe.html
└── img
└── recipe-photo.jpg
Stop Here
WE WILL COMPLETE THIS LAB ON MONDAY OCT 13TH.
Goal: Use AI to help create a navigation page for your site
What is GitHub Copilot?
Week 2 AI Level: Reference and Validator
Copilot Chat Interface:
Follow along with your instructor:
Create an index.html file with: - A heading that says "DESN368 - Code and Design Workspace" - A paragraph that says "This is the index page for mini-sites developed so far. Eventually this page will transform into my portfolio for the course. Please check back often." - Navigation links to: - week-1/newspaper.html - week-1/lost-pet.html - week-1/favorite-band.html - week-2/recipe.html
index.html (at the root of your repository, not inside a folder)index.html fileYour index.html should look something like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DESN368 - Code and Design Workspace</title>
</head>
<body>
<h1>DESN368 - Code and Design Workspace</h1>
<p>This is the index page for mini-sites developed so far. Eventually this page will transform into my portfolio for the course. Please check back often.</p>
<nav>
<ul>
<li><a href="week-1/newspaper.html">Newspaper Article</a></li>
<li><a href="week-1/lost-pet.html">Lost Pet Poster</a></li>
<li><a href="week-1/favorite-band.html">Favorite Band Page</a></li>
<li><a href="week-2/recipe.html">My Favorite Recipe</a></li>
</ul>
</nav>
</body>
</html>
Preview your page:
index.html → "Open with Live Server" (or use the Simple Browser extension)Commit your changes:
Add index.html with navigation to all projectsGoal: Get a live URL for your portfolio so anyone can see it on the web!
code-design-workspace repository from the listmainrandom-name-123.netlify.app🎉 Congratulations! Your site is now live on the internet!
code-design-workspace on GitHub.comREADME.md file (if you don't have one, click "Add file" → "Create new file" and name it README.md)Example README content:
# DESN368 - Code and Design Workspace 🌐 **Live Site:** https://your-site-name.netlify.app This repository contains my weekly projects for DESN368 as I learn HTML, CSS, and web development.