Code With Mezcla

In this live, instructor-led workshop, you will build an interactive webpage with interactive buttons that hide and reveal information.

This will be best experienced on a desktop or laptop computer.

Welcome!

We are so glad you are here! To get set up…

  1. Open up repl.it in a browser (preferably Chrome) and log in to your account
  2. Please change your zoom name to first, last initial, and pronouns, like this: Sal E. (he/him). Not sure how to do that? Hover over your image in the zoom gallery, click the three dots, and select Rename.

Goals

  • Build and customize an interactive website
  • Gain exposure and familiarity with some HTML, CSS, and JavaScript
  • Determine if coding is something you enjoy doing and want to pursue further
  • Meet other Latin@s working in tech and curious about tech


What to Expect

  • Welcome and Setup (1 hour)
  • Instruction (2 hours and 30 minutes)
  • Lunch Sessions (1 hour)
  • Group Challenge (1 hour and 30 minutes)
  • Presentations and Wrap-Up (1 hour)

Online Learning Norms

  • Ask your questions and share your code!
  • Mute your microphone unless you’re the main speaker.
  • Keep your camera on during class.
  • Disconnected? Jump back on! The host or TA will resume the session shortly.

Want to get my attention during the workshop? Raise your hand, type your question in the chat, or come off mute and ask!

Warm-Up Activity

Let’s start by taking a tour of the replit interface. Replit is an IDE (integrated development environment) that allows us to write and see the output of our code all in one place. Below, you can see an image outlining the different tools available in the replit interface.

Screenshot of replit interface showing the files navigation pane, code editor, and output

Here’s how to start the warm-up activity:

  1. Click this link to open up the warm-up activity in replit.
  2. Click the blue Fork repl button in the top right corner to make a copy of the warm-up for yourself.
  3. Click the green Run button at the top of the page and you should see the browser output appear!

You will complete a scavenger hunt to familiarize yourself with the replit interface. Pick your challenge level and let’s get started!

Mild 🔥

  1. What line number in the index.html file is responsible for the "We are so excited you are here" text in the browser window?
  2. Which file is responsible for the message we see in the console output area?
  3. What line number in the style.css file made the heading have a fancy font?

Medium 🔥🔥

  1. In the index.html file, change the text for the paragraph and click the green Run button to see the result.
  2. In the script.js file, write another line of code that prints another message in the console area.
  3. In the style.css file, change the background color to any other color.

Spicy 🔥🔥🔥

  1. In the index.html file, what does the title tag in line 6 do?
  2. What is the keyboard shortcut to comment out a line of code in your replit project? Hint: Google might have the answer!
  3. How would we change the font size of the text that says "We are so excited you are here"?


Zoom Tools

To review our answers to the scavenger hunt, we will use our zoom tools.

  • Zoom Chat - Type your answer to each question, but wait to send it until I say go!
  • Raise Hand - Find the reactions button and raise your hand if you would like to share.


Breakouts: Introductions

In alphabetical order by first name, please share:

  • Your name
  • Your pronouns
  • Your location
  • Why did you decide to join this workshop today?

Programming Languages We Will Use

Building the user-facing part of a website or app is referred to as Front End Engineering. Writing code to build a Front End requires using three programming languages, and making the code in each language “talk to” the code in the others.

It can feel like a lot, but let’s start by understanding the role of each language in the context of our application. We will make some comparisons to the human body as a frame of reference.

HTML

HTML holds the content we see on a page (text, images) and defines the structure and order in which the content appears.

We can think of HTML as the skeleton of our webpage; without it, we'd just be a blob:

Drawing of human skeleton

CSS

CSS defines the look and feel of a webpage - it can change the size or layout of items on a page, change colors, fonts, and more!

We can think of CSS as anything that makes us unique and recognizable - our skin, hair, clothes, style, etc.

Various accessories including a hat, dress, shoes, and hair

JavaScript

JavaScript is what lets the user interact with a page. For example, clicking a button and getting some sort of response.

We can think of JavaScript as the brain and muscle of our webpage, as it powers all the action:

Drawing of a human brain and arm muscle


Be Nice to Yourself

This might be your very first day working with code. Learning is often uncomfortable and things are bound to break. When this happens, there are few things you can check first:

  • Did you spell everything correctly? Capitalization matters!
  • Do you have closing symbols for every opening symbol? Every opening bracket needs a matching closing bracket.
  • Do the colors follow a predictable pattern? If the colors are consistent and then all of the sudden change, it could be a clue that something isn’t quite right.


Project Setup

We will work off of a starter kit that has already been created.

  1. Click this link to access the starter kit in replit.
  2. Click the green Run button at the top of the page, and you should see a simple version of your website on the right side of the page.

In the next part of the lesson, we will explore the HTML file to understand the “bones” of this app.


Now, it gets even more fun: