Giter VIP home page Giter VIP logo

gd3-coding-tutorials-1's Introduction

Tutorials #1

You will find on this repo the resources to use for the first tutorial lesson. Next to this README.md file, you will find an index.html file and an assets/ folder, where the CSS and Javascript are located, alongside font files and images.

Table of contents

Prerequisites

Before starting our tutorials, we need to install a few things and make sure everything is set up on your computers. This is a guide for MacOS, if you are on Windows, please reach out to me so we can have a look at it together.

  1. Install Visual Studio Code (if not already installed) and open it.
  2. Install Live Server extension (if not already installed). If the plugin is installed, you should be able to see it in the Extensions sidebar of VS Code (open it with cmd+shift+X). You should also see the Go Live button in the bottom bar of VS Code.
  3. Open the VS Code Terminal (Terminal > New Terminal).
  4. Check if Node.js is already installed by typing:
node -v
  1. If not installed, or if your node.js version is below v16, install the LTS version from here. Run node -v once again after installing to check that the installation worked.
  2. Check if git is already installed by typing:
git --version
  1. If not installed, an installation program should automatically be launched. Follow it and run git --version once again after installing to check that the installation worked.
  2. Signup on Github or sign in if you already have an account.
  3. Add your name and email to Git by typing this in the terminal (replace with your own name and email)
git config --global user.name "Your Name"
git config --global user.email [email protected]
  1. Signup on Netlify with your Github account.

Now each of you will get its own version of this repository.

  1. Fork this repository. This will create a copy of the repository on your own account. For that, click on the Fork button on the upper right side of the screen. You can keep the default options and click on Create fork.
  2. Clone your repository on your Desktop (or wherever you want on your computer). The easiest way is to use VS Code for that. Open VS Code and go to the Source Control sidebar (open it with cmd+shift+G). Then click the Clone repository button, then Clone from Github. You will be asked to link the Github application to your Github account, follow the process. Then you should find the newly cloned repository in the list. Click it and then select the location where you want it to appear on your computer.
  3. Go to the newly created folder on your computer and drag-and-drop it on the VS Code icon on your Dock.

Now you can browse through the code repository! If you click on Go Live in the bottom bar, it should open a window on your browser with the website in it!

Exercice

Modify the CSS and JS files in this repo in order to:

  1. Add a hover effect of your choice on all the .list__item__header elements.
  2. Add a click event on each .list__item__header element that toggles the .list__item__body element right next to it and closes all other .list__item__body element.
  3. Replace the content of each .list__item__artist element by only the date of birth of the artist.

You can find a correction of the exercice on the correction branch here and the final result online here.

gd3-coding-tutorials-1's People

Contributors

quentin-f451 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.