Skip to content

a1-wduf - Will Dufault Submission #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"name":"8f30843b-39eb-403c-a3f3-db7b9ced8859.image.png","date":"2023-08-25T13:54:05.358Z","url":"https://cdn.glitch.global/5a73e189-99c9-4272-a4ad-df9270933bb3/8f30843b-39eb-403c-a3f3-db7b9ced8859.image.png","type":"image/png","size":7642,"imageWidth":1366,"imageHeight":263,"thumbnail":"https://cdn.glitch.global/5a73e189-99c9-4272-a4ad-df9270933bb3/thumbnails%2F8f30843b-39eb-403c-a3f3-db7b9ced8859.image.png","thumbnailWidth":330,"thumbnailHeight":64,"uuid":"FitddvCvO2ZmL9EA"}
{"uuid":"FitddvCvO2ZmL9EA","deleted":true}
{"name":"88acf936-b742-4007-87c4-fbfef8aa5c90.image.png","date":"2023-08-25T14:14:40.605Z","url":"https://cdn.glitch.global/5a73e189-99c9-4272-a4ad-df9270933bb3/88acf936-b742-4007-87c4-fbfef8aa5c90.image.png","type":"image/png","size":119440,"imageWidth":579,"imageHeight":414,"thumbnail":"https://cdn.glitch.global/5a73e189-99c9-4272-a4ad-df9270933bb3/thumbnails%2F88acf936-b742-4007-87c4-fbfef8aa5c90.image.png","thumbnailWidth":330,"thumbnailHeight":236,"uuid":"36jZfYzQKK4ZTwvf"}
113 changes: 28 additions & 85 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,100 +1,43 @@
Assignment 1 - Hello World: Basic Deployment w/ Git, GitHub, Glitch
===
https://a1-wduf.glitch.me/

*DUE: Thursday, August 31st by 11:59 AM (before the start of class!)*
# Achievements

First assignment! You will deploy the starting Web site that you will use this term to [Glitch](http://www.glitch.com/).

Treat this assignment as a chance to get up to speed on Git, GitHub, and Glitch, as well as experiment some with HTML/CSS/JS. If you already know these, great!
However, if you're new to them, spend several hours practicing, experimenting, and reading documentation. Don't just get your website up and done, as
you'll need skills with these tools throughout the rest of the course.

Assignment details
---

This assignment requires that your website is both contained in a GitHub repository and hosted in Glitch. There are two ways to do this:

1. Fork this repo and clone it to your computer, make changes locally on your computer, push the repo onto GitHub, and then import your GitHub repo into Glitch.
2. Fork this repo and then import it directly to Glitch, use the Glitch editor to make changes, and then export your repo from Glitch back to GitHub.
3. Same as #1, but instead of importing from Github to Glitch you just upload the files (or copy/paste) them directly to Glitch.
### Technical

## Option 1 - Clone to computer, push to Github, import to Glitch (recommended)
1. CSS Styling

1. Fork the starting project code in GitHub. This repo contains:
* the server code, `server.js`
* A starting `index.html` file that you will edit as described below
* A package.json file that helps configure Glitch
* This README
2. Edit `index.html` to show the following information about you:
* your name and class at WPI (e.g. class of 2020) Note: Do not put any contact or personal information that you do not potentially want other people outside of this class to see.
* your major(s) and minor(s)
* previous computer science courses that you have taken at WPI
* your experience with the following technologies and methods (none, some, a lot)
* HTML
* CSS
* Java
* JavaScript
* Ruby
* Python
* unit testing
4. Complete some technical and/or design achievements (see below).
5. Test your project to make sure that when someone goes to your main page, it displays correctly. You can do this locally by simply running `node server.js` from within the assignment directory.
- Headers: made red, added shadows, fixed width
- Added cool underline hover effect to headers with help cursor
- Made the animate button have animated background and click effect
- Flipped paragraphs vertically on hover with load cursor
- Cat spins on hover

6. Modify the README file according to the specification below.
7. Commit and push all your changes to GitHub.
8. Deploy your project to Glitch. You can do this by [importing the repo from GitHub](https://medium.com/glitch/import-code-from-anywhere-83fb60ea4875)
9. Ensure that your project has the proper naming scheme (guide follows) so we can find it.
9. Create and submit a Pull Request to the original repo.
2. JavaScript animation

## Option 2 - Fork repo and import to Glitch, edit on Glitch, and then export back to GitHub
Most of these steps are the same as option 1, except that you being by creating a new project Glitch using this repo as a staring point (just choose New Project > Import from GitHub for this and then paste in the link to your repo). At the end, you can export your Glitch project to GitHub by [following these instructions](https://www.youtube.com/watch?time_continue=77&v=aWJFbtrgW4E&feature=emb_logo). *Note that the location of the projecct export feature in Glitch has moved from what they show in this video.* It's now located in Tools > Import and Export (tools is located in the bottom left of the Glitch editor).
- Added, at bottom

## Option 3 - Clone to computer, edit locally, push to GitHub, upload to Glitch
This is the same as option 1, except that for step 6 (Deploy to Glitch) you simply upload each file to your Glitch repository (using New File > Upload a File).

Naming and URL Scheme
---
3. Extra HTML tags

You must use a consistent naming scheme for all projects in this course.
If we can't find it, we can't grade it.

By default Glitch often assigns your application a random name. To change it, click on the project dropdown menu in the upper left corner of Glitch. You will then see an additional text field displaying the project name in the resulting menu; click here to edit the name.

The name scheme should be `a1-yourGitHubUsername`.
The `a1` will need to be updated to `a2`, `a3`, and so on in future projects.

Achievements
---
Below are some suggested technical and design achievements. You can use these to help boost your grade up to an A and customize the assignment to your personal interests. These are recommended acheivements, but feel free to create/implement your own... just make sure you thoroughly describe what you did in your README and why it was challenging. ALL ACHIEVEMENTS MUST BE DESCRIBED IN YOUR README IN ORDER TO GET CREDIT FOR THEM.
- img
- a
- input
- select
- option
- (Also div, label, table, th, and td.)

Note that if you want to load resources besides your index.html file (images, an CSS file, a JS file) you'll need to modify server.js to point to these. For now it's easiest to just hardcode paths to the resources, but we'll look at ways to optimize this shortly.

*Technical*
1. (max 5 points) Style your page using CSS. Each style rule you apply will get you 1 extra point for a maximum of 5 points. Be sure to describe your style rules in your README.
2. (5 points) Add a simple JavaScript animation to the page.
3. (max 5 points) Experiment with other *semantic* HTML tags (links, images, tables, header, footer, etc.) Each extra tag you use will get you 1 extra point for a maximum of 5 points. Be sure to describe the tags you use in your README.

*Design*
1. (10 points) Create a color palette using [color.adobe.com](https://color.adobe.com). Use all the colors in the palette in your webpage by implementing the appropriate CSS. Add a small screenshot of the color wheel for your color palette to your repo.
2. (5 points) Use a font from [Google Fonts](https://fonts.google.com) in your website.

Resources
---

If you need a JavaScript/HTML/CSS refresher, see [HTML & CSS](https://wpi.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma9936730811904746&context=L&vid=01WPI_INST:Default&lang=en&search_scope=MyInst_and_CI&adaptor=Local%20Search%20Engine&tab=Everything&query=any,contains,Jon%20Duckett&offset=0) and/or [JavaScript Codeacademy](https://www.codecademy.com/en/tracks/javascript).

If you need a Git/GitHub refreseher, see [GitHub Bootcamp](https://help.github.com/categories/bootcamp/), the [GitHub Guides](https://guides.github.com/) (especially the ones on Hello World, and Understanding the GitHub Flow, and Forking Projects), and [CodeSchool's Try Git Course](https://www.codeschool.com/courses/try-git).

Sample Readme (delete the above when you're ready to submit, and modify the text below with your links and descriptions)
---
### Design

Charlie Roberts
http://a1-charlieroberts.glitch.me
1. Color palette
![](https://cdn.glitch.global/5a73e189-99c9-4272-a4ad-df9270933bb3/88acf936-b742-4007-87c4-fbfef8aa5c90.image.png?v=1692972880605)

This project shows ...
- Black background
- White text
- Yellow button text
- Red headers
- Blue header underlines

## Technical Achievements
- **Styled page with CSS**: Added rules for the p, li, and a selectors...
2. Google fonts

### Design Achievements
- **Used the Roboto Font from Google Fonts**: I used Roboto as the font for the primary copy text in my site.
- Used "Handjet" font
102 changes: 87 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,100 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CS4241 Assignment 1</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/style.css" />
<!-- Google Fonts. -->
<style>
/* Handjet. */
@import url("https://fonts.googleapis.com/css2?family=Handjet:wght@100;200;300;400;500;600;700;800;900&display=swap");
</style>
</head>
<body>
<h1>Information about [Your name here]</h1>
<img
class="big-cat"
src="https://images.pexels.com/photos/3257811/pexels-photo-3257811.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
alt="wowie cool picture"
/>
<br />
<a href="https://www.google.com" target="_blank">go to google.com</a>
<br />
<input <input type="checkbox" />
<label>checkbox</label>
<br />
<label>dropdown:</label>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<h1 class="underline">Information about Will Dufault</h1>
<p>
[Self introduction]
Hey! I'm Will Dufault and I'm a senior studying computer science and data
science. In my free time, I enjoy playing video games (lots of emerald
kaizo right now), working out, playing basketball, and hanging out with
friends.
</p>
<p>
[Major and other information]
</p>
<p>
[Other things]
</p>

<h2>Experience</h2>
<p>
Working experience
Major: Computer Science (BS) <br />
Minor: Data Science
</p>
<p>Some CS classes I've taken that I enjoyed:</p>
<ul>
<li>Software Engineering</li>
<li>Intro to Machine Learning</li>
<li>Algorithms</li>
<li>Database Systems I</li>
</ul>
<p>My experience with the following technologies:</p>
<table class="white-border">
<tr>
<th>Technology</th>
<th>Level of Experience</th>
</tr>
<tr>
<td>HTML</td>
<td>A lot</td>
</tr>
<tr>
<td>CSS</td>
<td>A lot</td>
</tr>
<tr>
<td>Jave</td>
<td>Some</td>
</tr>
<tr>
<td>JavaScript</td>
<td>A lot</td>
</tr>
<tr>
<td>Ruby</td>
<td>None</td>
</tr>
<tr>
<td>Python</td>
<td>A lot</td>
</tr>
<tr>
<td>Unit testing</td>
<td>Some</td>
</tr>
</table>
<h2 class="underline">Experience</h2>
<p>Working experience</p>
<ul>
<li>IBM/Rational</li>
<li>WPI</li>
<li>WPI (current)</li>
<li>BJ's Wholesale Club</li>
<li>The Home Depot</li>
</ul>
<h1 class="underline">Super cool JS animation:</h1>
<button class="super-cool-button" onclick="spinny()">ANIMATE</button>
<br />
<br />
<div id="animation-frame">
<div id="spin-box" />
</div>
</body>
<script src="/main.js"></script>
</html>
22 changes: 22 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
let element_spin_box = document.getElementById('spin-box');
let degrees = 0;
let active = false;

function spinny() {
/*
Spin the spin-box around.
*/
// Not in the middle of the animation.
if(!active) {
// Lock this function so it is not interrupted by another function call.
active = true;

// Add the "spin" class to the spin-box to animate it, then remove it.
element_spin_box.classList.remove('spin');
void element_spin_box.offsetWidth; // DOM Reflow.
element_spin_box.classList.add('spin');

// Wait until the animation is finished to unlock this function.
setTimeout(() => { active = false;}, 1000);
}
}
6 changes: 6 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ const server = http.createServer( function( request,response ) {
case '/index.html':
sendFile( response, 'index.html' )
break
case '/style.css':
sendFile( response, 'style.css' )
break;
case '/main.js':
sendFile( response, 'main.js' )
break;
default:
response.end( '404 Error: File Not Found' )
}
Expand Down
Loading