Skip to content

Commit

Permalink
Updates for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
walnutdust committed Jun 9, 2020
1 parent df4e8a3 commit 5cee5ba
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 33 deletions.
7 changes: 5 additions & 2 deletions Basic Tools/Developer Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Every browser comes with developer tools, which are of great help in the web development process.

## Table of Contents

1. [Inspect Element](#inspect-element)

## Inspect Element
Expand All @@ -19,7 +20,7 @@ The window is split into three sections.

This section shows the HTML that is generated for that particular webpage. Note that if you were to select or mouse-over the HTML components here, the corresponding element in the webpage will get highlighted. Use this feature to understand how HTML elements are organized, and learn from them for your websites.

This section is editable, and you can add or remove html elements to see their impact on the final window!
This section is editable, and you can add or remove html elements to see their impact on the final window!

### CSS Rules

Expand All @@ -34,9 +35,11 @@ Note that this section is editable - you are able to change the values or add ne
This section has three components to it - Layout, Component, and Changes.

![CSS Values Layout](Images/CSS%20Values%20Layout.png)

The Layout section is useful for summary information on the display style sizes. In particular, Firefox also provides excellent CSS Grid navigation and display which can be accessed here.

![CSS Values Components](Images/CSS%20Values%20Components.png)

This section shows the final values for each CSS property that is applied to the component at hand, as well as the rules that were applied to get them. Useful when your component might be affected by multiple stylesheets and is too troublesome to track down the influence of each one of them.

The final section is used to show the changes for the HTML element over time with a CSS animation.
The final section is used to show the changes for the HTML element over time with a CSS animation.
3 changes: 1 addition & 2 deletions Personal Website HTML/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ $ touch index.html styles.css sample.html sample-styles.css

At this point, you should be all set to develop!

5. Develop your website, while ensuring to commit your changes along the way. Past submissions from other students can be found [below](#Past-submissions).
5. Develop your website, while ensuring to commit your changes along the way. You can open HTML files in your browser simply by double-clicking them. For greater convenience, you can also keep them open in your browser and refresh to see the latest changes applied! Past submissions from other students can be found [below](#Past-submissions).
6. You might feel completely lost, and that is fine - start simple.
- Sketch out what you want to do to see how things are organized.
- Get inspiration from how other websites organize their information via [inspect element](../Basic%20Tools/Developer%20Tools.md)
- Mess with the starter code provided in `sample.html` and `sample-styles.css`
- Look out some online tutorials - a good place to start might be at [Interneting is Hard](https://www.internetingishard.com/)
- Ask your front-end lead!
- You can open HTML files in your browser simply by double-clicking them. For greater convenience, you can also keep them open in your browser and refresh to see the latest changes applied!

## Helpful Tips:

Expand Down
Binary file added Personal Website React/Images/react_start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 51 additions & 29 deletions Personal Website React/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ This week, we'll be trying to create our own page on github. While it can serve
Suggested Time: 1 week

## Pre-requisites
* Should have done the Personal Website (HTML/CSS) project
* Should have [Node](https://nodejs.org/en/) installed.
* Should have Git installed.

- Should have done the Personal Website (HTML/CSS) project
- Should have [Node](https://nodejs.org/en/) installed.
- Should have Git installed.

## Table of Contents

Expand All @@ -17,29 +18,31 @@ Suggested Time: 1 week
4. [Further Extensions](#further-extensions)
5. [Past Submissions](#past-submissions)

## Requirements:
## Requirements:

1. Must be responsive to mobile (e.g. Resizing the browser window up to a minimum width of 480px should still allow for all content to be seen)
2. Must use at least one of the following libraries:
* Bulma (https://bulma.io/)
* Material Design (https://material-ui.com/)
* Elastic UI (https://github.com/elastic/eui)
* Fomatic UI (https://fomantic-ui.com/)
* Grommet (https://v2.grommet.io/)
* Any other library you find
- Bulma (https://bulma.io/)
- Material Design (https://material-ui.com/)
- Elastic UI (https://github.com/elastic/eui)
- Fomatic UI (https://fomantic-ui.com/)
- Grommet (https://v2.grommet.io/)
- Any other library you find

Challenge: Create a different branch and format everything using just pure CSS.
Challenge: Create a different branch and format everything using just pure CSS.

## Setting Up:

**Initializing the repository and files**
1. Create a new GitHub repository `<github-username>.github.io`. Skip initializing the repository.

1. Create a new GitHub repository `<github-username>.github.io`. Skip initializing the repository. For excample, if your github username is walnutdust, the repository to make should be `walnutdust.github.io`.
2. Share the repository with your front-end team lead.
3. Open to your local development folder and run the following commands:
3. Open to your local development folder and run the following commands, replacing `<github-username>.github.io` with your actual username as mentioned in step 1:

```bash
$ npx create-react-app personal-website
$ npx create-react-app <github-username>.github.io
$ cd personal-website
$ git remote add origin https://github.com/<gh-username>/<github-username>.github.io.git
$ git remote add origin https://github.com/<github-username>/<github-username>.github.io.git
$ git add .
$ git commit -m "Initial commit"
$ git push
Expand All @@ -51,10 +54,19 @@ $ git push

4. Add gh-pages either via `yarn add gh-pages -D` or `npm install gh-pages --save-dev`.
5. Go to `package.json`, add a homepage to your `package.json` like this:

```json
"homepage": "https://<github-username>.github.io/"
```
{
"name": "My Personal Website",
"version": "0.1.0",
"private": true,
"homepage": "https://<github-username>.github.io/",
...
}
```

6. Add the following under scripts of package.json:

```json
"predeploy": "npm run build",
"deploy": "gh-pages -d build -b master”
Expand All @@ -66,18 +78,22 @@ For personal websites (i.e `<github-username>.github.io`), the website files hav

7. Manually create a new branch on Github called `source`.
8. Run the following commands:

```bash
$ git pull
$ git checkout source
```
9. Your local environment should now be in the `source` branch. To verify,

9. Your local environment should now be in the `source` branch. To verify,

```
$ git status
On branch source
Your branch is up to date with 'origin/source'.
nothing to commit, working tree clean
```

10. Open your respository on GitHub, and navigate to settings.
11. On the left-side panel, click "branches"
12. Set the default branch to `source`.
Expand All @@ -86,27 +102,33 @@ nothing to commit, working tree clean

At this point, you should be all set to develop!

13. Type `yarn start` and begin to develop your website in React! Refer to the [crash course document](react-crash-course.md) for some guidance. Starter code using the Elastic UI library, as well as instructions is available in the starter code folder - refer to the [README](./Starter%20Code/README.md). Past submissions from other students can be found [below](#Past-submissions).
13. Type `yarn` to install the dependencies, and once that is done, type `yarn start` and begin to develop your website in React! You should get a screen that looks like:
![React Starting Screen](Images/react_start.png)
14. You can now edit your code on your preferred IDE and view your changes live in your browser each time you save! Refer to the [crash course document](react-crash-course.md) for some guidance on working with React. Starter code using the Elastic UI library, as well as instructions is available in the starter code folder - refer to the [README](./Starter%20Code/README.md). Past submissions from other students can be found [below](#Past-submissions).
15. Although you don't really need it, there's a Javascript Crash course [here](../Hacker%20News%20Application/js-crash-course.md) as well.

**Deployment**

14. `$ npm run deploy` or `$ yarn deploy`
15. You should now be able to view your website at `https://<github-username>.github.io/`
16. `$ npm run deploy` or `$ yarn deploy`
17. You should now be able to view your website at `https://<github-username>.github.io/`

## Helpful Tips:
* Set up Prettier (https://prettier.io/) or ESLint (https://eslint.org/) if you haven’t already - these help to catch certain errors and make formatting a lot easier.
* Ensure Responsive Design:
* Remember to avoid using absolute numbers for most widths/heights where possible.
* Look into CSS grid/ flexbox for help with responsive design.
* Consider using em/rem for font sizes, although they may not be necessary most of the time.
* Note that React is typically used for Single-Page Applications (SPA), and while there are methods to get them to act as multi-page websites (typically by using a Router, although for personal blogs we personally recommend using Gatsby instead)
* Know how to use your Developer Tools!

- Set up Prettier (https://prettier.io/) or ESLint (https://eslint.org/) if you haven’t already - these help to catch certain errors and make formatting a lot easier.
- Ensure Responsive Design:
- Remember to avoid using absolute numbers for most widths/heights where possible.
- Look into CSS grid/ flexbox for help with responsive design.
- Consider using em/rem for font sizes, although they may not be necessary most of the time.
- Note that React is typically used for Single-Page Applications (SPA), and while there are methods to get them to act as multi-page websites (typically by using a Router, although for personal blogs we personally recommend using Gatsby instead)
- Know how to use your [Developer Tools](../Basic%20Tools/Developer%20Tools.md)!

## Further Extensions

Recreate your personal website with Gatsby (gatsbyjs.org/)! Gatsby offers Search Engine Optimization, routing, and image optimization, which can improve the performance of your website.

## Past Submissions:

Found below are submissions from students who have previously completed this project, and consented to sharing their repository here. Note that they might have completed the project with different requirements, but nonetheless are good resources to see how other people might have tackled this project.

1. Kaizen Conroy's Personal Website - [Code](https://github.com/kaizen3031593/kaizen3031593.github.io/tree/source) [Website](https://kaizen3031593.github.io/)
1. Kaizen Conroy's Personal Website - [Code](https://github.com/kaizen3031593/kaizen3031593.github.io/tree/source) [Website](https://kaizen3031593.github.io/)
2. Elijah Tamarchenko's Personal Website - [Code](https://github.com/Conqueror1776/Conqueror1776.github.io) [Website](https://conqueror1776.github.io/)

0 comments on commit 5cee5ba

Please sign in to comment.