Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions assignment/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Open index.html",
"file": "/Users/alvinb.cotton/assignment 1/assignment-unit-1/assignment/index.html"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Change the <title> from "Page Title" to "Hello World" -->
<title>Unit 1 Assignment</title>
<title>Hello World</title>
<!-- Used for automated testing -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/10.2.0/mocha.min.js" integrity="sha512-jsP/sG70bnt0xNVJt+k9NxQqGYvRrLzWhI+46SSf7oNJeCwdzZlBvoyrAN0zhtVyolGcHNh/9fEgZppG2pH+eA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/10.2.0/mocha.css" integrity="sha512-SjDc34mGAkSBKnNMasz1QPVustFyPQUHUO5wxzGNC5x9wQMcHwDHXCNRYowC/6DsX0lqvpCI1mKiVEQkws2olw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
Expand All @@ -15,18 +15,24 @@
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>

<!-- Create a header element -->
<header>
<h1> Al Cotton </h1>
</header>

<!-- Inside the header, add an <h1> element containing your name -->

<main>
<!-- Include an image -->

<!-- Create an unordered list with 3 list items of fun facts about you -->
<img src="work.jpg" style="width:350px;height:300px;" <!-- Create an unordered list with 3 list items of fun facts about you -->
<ul> Three fun facts about me!

<li> I love to Roller Skate! </li>
<li>I enjoy comedy and have participated in open mics around the Twin Cities!</li>
<li>I am a Minnesota Vikings fan!! SkOL!!</li>
</ul>
</main>
<!-- Create a footer element -->
<footer>
<p>Now is the time for all good citizens both men and women, to come to the aid of their countries!</p>
</footer>

<!-- Inside your footer, put a <p> element with your favorite quote -->

Expand Down
28 changes: 28 additions & 0 deletions assignment/assignment/style.css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Add a background color to the header element */
header {
background-color: rgb(60, 0, 255);
}
/* Add a fun background color to the main element */
main {
background-color: rgb(47, 75, 255);
}
/* Align the h1 containing your name in the center of the header*/
h1 {
text-align: center;
}
/* Make your p tag a different color and italic */
p {
text-emphasis-color: blue;
}
/* Put a border around your image */
img {
border: 5px solid goldenrod;
}
/* Change the font-family of your list */
ul {
font-family: Arial, Helvetica, sans-serif;
}
/* Add a background color to the footer element */
footer{
background-color:rgb(230, 16, 16);
}
Binary file added assignment/assignment/style.css/work.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file removed assignment/helloWorld.js
Empty file.
13 changes: 0 additions & 13 deletions assignment/style.css

This file was deleted.

143 changes: 143 additions & 0 deletions prime assignment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Unit 1: Git, HTML/CSS, Hello World

**Please watch all the videos for Week 1 on [the Tier 1 site](http://fullstack.primeacademy.io) before starting the assignment.**

These videos contain important information that will help you complete the assignment. Feel free to refer back to the videos whenever you need them!

## Onward!

For the assignment this week, you will practice using the tools you saw in the videos. You should have worked along with them as you watched. If you did, the following should be somewhat familiar.

You're going to:

* use git to fork/clone a repository (aka repo) from GitHub and get your work published back to your GitHub account
* set up files and connect them
* edit the HTML and CSS
* test your work in the browser
* use git to "save" your work
* use the command line and your Mac's built-in Terminal
* turn your assignment in through Prime's Assignment Portal

---

## Set-up: Fork and Clone This Repo

Using your new git and GitHub skills, Fork this repo to your own GitHub account. Then Clone it to your own computer. You are going to end up cloning 80+ repos at Prime so try to stay organized!

We recommend making a "prime" folder inside your "home" directory, which will be named your username. Inside of this, perhaps a "tier1" folder in which you can keep all of your Tier 1 work.

Wherever you put it, use your Terminal to `cd` into your new cloned folder of this assignment.

## Set-up: Opening your assignment in VSCode

You are going to be writing some code in VSCode, so open this entire folder in VSCode.

Do one of the following:

- Using the Terminal command of `code .` OR
- Using Finder/folder to drag the assignment folder to VSCode in your Dock OR
- Open VSCode first, then use the File > Open command to choose your assignment folder

---

## Your Actual Assignment

Inside of project you just opened in VSCode, is an *assignment* folder.

Inside of this folder, we've provided you with a few files, some of those files are inside of other folders.

**IMPORTANT:** Don't edit any files other than those inside of the *assignment* folder, and you should not need to move files around inside the folder.

### Files Provided

- *assignment/index.html* (base functionality - required)
- *assignment/helloWorld.js* (base functionality - required)
- *assignment/style.css* (base functionality - required)

## 1) Edit the HTML

Inside of the `index.html` file are comments with tasks for you to complete. Write the code below the comment (no need to delete the comment), like this:

```HTML
<!-- Create a header with an h1 containing your name -->

<header>
<h1>Your Name Here</h1>
</header>
```

Feel free to add more content than just what is in the comments (but the content laid out in the comments is required)!

## Test Your Work

As you make changes, it's important to check your work often. Our mantra is going to be "code a little then test!" Over and over again.

To test your work, open your `index.html` file in Chrome. You should see all of the content you created in your HTML file.

If you make more changes in VSCode, save your work, then Refresh the browser to see them.

## 1.1) Make a Commit

*When you're done with your HTML, make a "`commit`" with `git`.*

> Definitly refer to the Git Practical video on this! You'll be making commits *all the time* so eventually you'll get this memorized. For now, take it one step at a time!

Here is the pattern. Be sure you are in the project folder!

1. write some code
2. test your code
3. in Terminal: `git add .`
4. in Terminal: `git commit -m "what you changed"`
5. back to step 1!


## 2) Edit the CSS

Now that we have content in our HTML file, let's make it look nice with some styling!

- The CSS file is already linked to the HTML file using a `link` tag.
- There are comments in the `style.css` file. You can write your styles below the comments.
- You can also add more styles if you want, but make sure you include the styles in the directions, those are required!

*When you're done, make another "`commit`" with `git`.*

Here is an example of what your assignment could look like:

![](images/mockup.png)

---

## 3) Complete JavaScript "Hello World!"

Our assignment also contains a `helloWorld.js` file. A "hello world" is a common first step in learning to code, and the first program many programmers write.

In the video for this week, we used a `console.log()` to get messages from our JavaScript file to display in the browser's console interface.

1. You will need to source in the `helloWorld.js` file into your `index.html` file.
2. Refer back to the video to cover how to source in and get "hello world" to log in the browser console for your assignment! More information on `console.log` can be found [here](https://www.w3schools.com/jsref/met_console_log.asp).
3. Be sure to test your work by opening your browser console for this assignment. You should be able to see the text "hello world" or whatever you logged!

*When you're done, make another "`commit`" with `git`.*

---

## 4) "Upload" Your Completed Work to GitHub

Now that your assignment is done, we'll use `git` to `push` your work to GitHub.

You can find detailed instructions on how to do this in this week's video content.

## 5) Submit Your Assignment in the Prime Portal

You will need to "submit" a link to your GitHub repo containing your work for this assignment. Prime will then use this link to find and check out your assignment!

We won't know you're done until you [Submit it in the Portal](https://portal.primeacademy.io/).

You can find detailed instructions on how to do this in this week's video content.

---

## 6) Answer the Slack Discussion Question

Make sure that you answer this week's Slack discussion question (found each week in the left sidebar of the Tier 1 site) in your cohort's Slack channel!

47 changes: 47 additions & 0 deletions prime assignment/assignment/hello world.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Change the <title> from "Page Title" to "Hello World" -->
<title>Hello World</title>
<!-- Used for automated testing -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/10.2.0/mocha.min.js" integrity="sha512-jsP/sG70bnt0xNVJt+k9NxQqGYvRrLzWhI+46SSf7oNJeCwdzZlBvoyrAN0zhtVyolGcHNh/9fEgZppG2pH+eA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/10.2.0/mocha.css" integrity="sha512-SjDc34mGAkSBKnNMasz1QPVustFyPQUHUO5wxzGNC5x9wQMcHwDHXCNRYowC/6DsX0lqvpCI1mKiVEQkws2olw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/4.3.7/chai.min.js" integrity="sha512-Pwgr3yHn4Gvztp1GKl0ihhAWLZfqgp4/SbMt4HKW7AymuTQODMCNPE7v1uGapTeOoQQ5Hoz367b4seKpx6j7Zg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<header>
<h1> Al Cotton </h1>
</header>

<!-- Inside the header, add an <h1> element containing your name -->

<main>
<img src="work.jpg" style="width:350px;height:300px;" <!-- Create an unordered list with 3 list items of fun facts about you -->
<ul> Three fun facts about me!

<li> I love to Roller Skate! </li>
<li>I enjoy comedy and have participated in open mics around the Twin Cities!</li>
<li>I am a Minnesota Vikings fan!! SkOL!!</li>
</ul>
</main>
<footer>
<p>Now is the time for all good citizens both men and women, to come to the aid of their countries!</p>
</footer>

<!-- Inside your footer, put a <p> element with your favorite quote -->

<div id="container">
<!-- Used for automated testing -->
<div id="mocha"></div>
</div>

<link rel="stylesheet" href="../test/test.styles.css" />
<script src="../test/test.js"></script>
</body>
</html>
28 changes: 28 additions & 0 deletions prime assignment/assignment/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Add a background color to the header element */
header {
background-color: rgb(60, 0, 255);
}
/* Add a fun background color to the main element */
main {
background-color: rgb(47, 75, 255);
}
/* Align the h1 containing your name in the center of the header*/
h1 {
text-align: center;
}
/* Make your p tag a different color and italic */
p {
text-emphasis-color: blue;
}
/* Put a border around your image */
img {
border: 5px solid goldenrod;
}
/* Change the font-family of your list */
ul {
font-family: Arial, Helvetica, sans-serif;
}
/* Add a background color to the footer element */
footer{
background-color:rgb(230, 16, 16);
}
Binary file added prime assignment/assignment/work.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prime assignment/images/mockup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading