Fraser Comp Sci ClubMeeting 05 Challenges
Thu Nov 12 · 11:05 AM · Rm 183 · Open meeting, no sign up needed

Your own site!!

Build a website about you and put it online for free. Bring a laptop. Leave with a link for your resume and uni apps.

What's a website?

Just a text file called index.html. Your browser downloads it and draws it.

  • HTML: what's on the page. Words, links, pictures.
  • CSS: how it looks. Colours, fonts, layout.
  • Tags wrap your content. Most come in pairs: an opening tag and a closing tag with a /.
<a href="https://github.com">GitHub</a>
  • Opening tag
  • Attribute: extra info, like where a link goes
  • Content: what you see
  • Closing tag

It's public!!

  • Anyone can see it. No home address, phone number or class schedule.
  • Every update: open index.html on GitHub → ✎ pencil → paste → Commit changes. Refresh after a minute.
  • Try it here first. Edit the code below and the preview updates live.

Setup

GitHub Pages hosts your site for free. Your link will be yourusername.github.io.

  1. Make an account at github.com. Use your personal email so you keep it after you graduate.
  2. Top right + → New repository. Name it exactly yourusername.github.io. Public. Create.
  3. Click "creating a new file". Name it index.html, paste the code, then Commit changes.
  4. Wait a minute and open yourusername.github.io. Your site is live!
  5. Still a 404? Settings → Pages → Branch: main → Save, then wait another minute.
yourusername.github.io

Put it online

Code ready? Here's every click on GitHub.

  1. GitHub step 1

    01Top right + → New repository. Name it yourusername.github.io, keep it Public, then Create repository.

  2. GitHub step 2

    02Click "creating a new file". Name it index.html, paste your code, then Commit changes...

  3. GitHub step 3

    03Hit Commit changes again to save it.

  4. GitHub step 4

    04Settings → Pages shows your link after a minute. Still a 404? Set Branch to main and Save.

  5. GitHub step 5

    05To update: open index.html, click the ✎ pencil, paste your new code and commit.

Challenges

Site's up? Make it better. No code given. Show an exec when yours works!

Easy Add a photo

Add file → Upload files, then show it with <img src="me.jpg">.

Easy Your colours

Pick a palette on coolors.co and restyle everything.

Medium Dark mode

Switch colours when the phone is in dark mode. Hint: prefers-color-scheme.

Medium Second page

Make projects.html and link the two pages together.

Hard Make it move

Add a <script> that does something when you click. Confetti? A theme switcher?

Boss Terminal

Make your site look and work like a command line. Typing help lists your pages.

Everyone's sites!!

Personal Website
Personal Websiteby Aarush Karak
Personal Webiste
Personal Webisteby Suman
← All meetings