Skip to content

zleckron/cseduclub

Repository files navigation

SQUARE WHO? Let's Build a Portfolio Site with HTML/SCSS

Date: April 19, 2019
Time: 12pm to 2pm
Location: ITE 239
What to Bring: Your Personal Laptop


WORKSHOP AGENDA

Hour 1

Part 1a: Setting Up

  1. Download Node.js.
  2. Download Git.
  3. Download Atom IDE.
  4. Create a GitHub account and make sure you are logged in.
  5. Now navigate to the workshop's Git repository where the starter files exist.
  6. Fork the repository to your account by pressing the "Fork" button in the upper right-hand corner.
  7. IMPORTANT: Rename the newly forked repository to username.github.io, where username is your username on GitHub. No exceptions. Here's a link to do that: https://help.github.com/en/articles/renaming-a-repository
  8. Copy to clipboard the url to your renamed Git repo i.e. https://github.com/username/username.github.io
  9. Now from an easily accessible place on your computer (i.e. "My Documents"), create a new folder and name it "Websites" (you can name it whatever you want but we'll use "Websites" for consistency). Protip: avoid having spaces in your folder names; instead use a dash or underscore.
  10. Open up a terminal. On MacOS, open the pre-installed app called Terminal. On Windows, open the pre-installed app Command Prompt.
  11. In the terminal, execute each command below, line by line. Replace username with your GitHub username. Do not type the $ character. Zoee will show you how to navigate your files with the cd command.

$ cd into/your/Websites/folder
$ git clone https://github.com/username/username.github.io
$ cd username.github.io
$ npm install
$ npm rebuild node-sass
$ npm start
  1. Open the Atom IDE that you downloaded in step 2. From your Atom IDE, open username.github.io (File > Open > navitage to username.github.io in your Websites folder and select it).
  2. [Add the atom-live-server package] by visiting this link (https://atom.io/packages/atom-live-server) and clicking the green "Install" button.
  3. In Atom, enter ctrl-alt-l with your keyboard (ctrl-option-l on MacOS).
  4. go to localhost:3000 in a browser of your choice (if one doesn't open up for you after step 13) and marvel at what is being rendered from your starter code. DON'T WORRY - you will get a chance to customize the site later on in the workshop. But first ...

Part 1b: Brief Overview of HTML & SCSS

  1. Open the Google Slides with the links for Part 1b: https://docs.google.com/presentation/d/124nU7ZKkGKpjYBQ6iwncdnb-aAI8JUVX2V-SuWC8cfA/edit?usp=sharing
  2. Open HelloWorld.html in your Atom IDE and also in a browser of your choice (by double-clicking it in your finder).
  3. In the browser, try using the Inspect feature. To open this on Chrome, go to the webpage in the browser and right-click, then select Inspect from the menu that appears.
  4. When editing, save your HTML code in the Atom IDE and refresh the page in the browser.
  5. You can view the HTML code from the Elements pane of the Inspect panel, and you can view errors from the Console pane. You should see 2 errors. See if you can figure out how to fix them!
  6. Experiment with replacing words and adding elements (we suggest paragraphs, headings, or images).
  7. When you are satisfied with the changes you have made to HelloWorld.html, you can go ahead and close it in the browser and close the HelloWorld.html tab in the Atom IDE.
  8. Open up index.html in the Atom IDE to follow along with Zoee for the live coding and customization.

Hour 2

Part 2: Customize with Bulma

  1. Now return to your Atom IDE and follow along with the instructor in this live coding session. The goal here is to get you familiar with Bulma's file structure as well as Bulma's syntax for using its various components.

Once you are more or less happy with how your site looks in localhost:3000, it is now time to "push" these new changes up to your newly created GitHub account. 2. Open up a second terminal and run the following commands.

$ cd into/your/Websites/folder
$ git status
$ git add --all
$ git commit -m "Initial commit"
$ git push -u origin master
  1. … and you're done! Fire up a browser and go to https://username.github.io. Do a little dance to celebrate your very first website!

Refer to GitHub Pages if you want to change the url to a custom domain name of yours, among other things. And don't forget to check out all the other cool links for your benefit. They can be found in the workshop slides that will be emailed to you. You're Welcome :)

About

Web Dev workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published