Skip to content

a1-vshp22 #108

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 19 commits 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
103 changes: 9 additions & 94 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,100 +1,15 @@
Assignment 1 - Hello World: Basic Deployment w/ Git, GitHub, Glitch
===
Vishnu Priya Dendukuri https://a1-vshp22.glitch.me/

*DUE: Monday, August 29th by 11:59 AM (before the start of class!)*
This project shows my personal page that I made for the assignment 1.

This assignment is a "warm-up" exercise.
You will simply 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.
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.

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

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.

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.

## 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).

## 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
---

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.

*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 HTML tags (links, images, tables etc.) Each extra tag you use will get you 1 extra point for a maximum of 5 points. Be sure to describe the links 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 [Goolge 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)
---

Charlie Roberts
http://a1-charlieroberts.glitch.me
## Technical Achievements
- **Styled page with CSS**: Added style rules for the body, p, h1, h2, table and links. I included properties such as background-color, margins, padding, border, text-align, color of the text, font-style, etc.

This project shows ...
- **JavaScript animation**: I tried a couple things but as I have never worked with Javascript, so I kept failing but I still included some of the code but commented it out in the animation.js file. I'll work on it again.

## Technical Achievements
- **Styled page with CSS**: Added rules for the p, li, and a selectors...
- **HTML tags**: I experimented with multiple HTML tags such as Images (WPI on top of the page), table(for the experience), lists(for the CS classes), divisions (for every different section), links (to my github and linkedIn at the bottom of the page)

### Design Achievements
- **Used the Roboto Font from Google Fonts**: I used Roboto as the font for the primary copy text in my site.
- **Used the Michroma Font from Google Fonts**: I used Michroma as the font for the Heading in my site.

- **Used the Color Wheel from Adobe**: I have used all the colors suggested in different parts of the site. I used the #D6CA9F as the background color of the page, #F5413D for the Heading background, #1B213D for just the paragraph text and #CC4567 for the h2 and unvisited links and #23EB52 for visited links at the bottom of the page. [also added the colorwheel doc to the files]
36 changes: 36 additions & 0 deletions animation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

/*

THIS IS A FAILED ATTEMPT AT ANIMATION.


const text = document.querySelector("heading");
const stringText = text.textContent;
const splitIt = stringText.split("");

text.textContent = "";

for(let i = 0 ; i<splitIt.length ; i++){
text.innerHTML += "<span>" + splitIt[i] + "</span>"
}

let char = 0;
let timer = setInterval(next,50);

function next{
const span = text.querySelector("span")[char]
span.classList
}

let i =0;

function animate(){
if(i<stringText.length){
document.getElementById("heading").innerHTML += stringText.charAt[i];
i++;
setTimeout(animate,50)
}
}

animate();
*/
Binary file added colorwheel.docx
Binary file not shown.
88 changes: 75 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,90 @@
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Michroma&effect=shadow-multiple">
<title>CS4241 Assignment 1</title>
<meta charset="utf-8">
</head>

<body>
<h1>Information about [Your name here]</h1>
<img src="https://www.wpi.edu/sites/default/files/inline-image/Offices/Marketing-Communications/WPI_Inst_Prim_FulClr.png" width="200">

<h1>Information about Vishnu Priya Dendukuri (Class of 2023)</h1>

<h2>About Me</h2>
<p>
[Self introduction]
I'm Vishnu Priya Dendukuri a student at WPI (Class 2023)
</p>
<p>
[Major and other information]
I major in Computer Science and planning to get a minor in Business.
</p>
<p>
[Other things]
<p>
I have taken CS classes such as:
<ul>
<li>CS1101</li>
<li>CS2102</li>
<li>CS2303</li>
<li>CS2223</li>
<li>CS2022</li>
<li>CS3043</li>
<li>CS3431</li>
<li>CS3431</li>
<li>CS3431</li>
<li>CS2011</li>
<li>CS3133</li>
<li>CS3013</li>
<li>CS3733</li>
</ul>
</p>

<h2>Experience</h2>
<p>
Working experience
</p>
<ul>
<li>IBM/Rational</li>
<li>WPI</li>
</ul>
<div>
<h2>Experience</h2>
<table style="width:50%">
<tr>
<th>TECHNOLOGIES / METHODS</th>
<th>EXPERIENCE</th>
</tr>
<tr>
<td>HTML</td>
<td>none</td>
</tr>
<tr>
<td>CSS</td>
<td>none</td>
</tr>
<tr>
<td>Java</td>
<td>Yes</td>
</tr>
<tr>
<td>JavaScript</td>
<td>none</td>
</tr>
<tr>
<td>Ruby</td>
<td>none</td>
</tr>
<tr>
<td>Python</td>
<td>Somewhat</td>
</tr>
<tr>
<td>Unit Testing</td>
<td>Yes</td>
</tr>
</table>
</div>

<div>
<h2>Social Media</h2>
<p>
<a href="https://github.com/vshp22">GITHUB</a>
<a href="https://www.linkedin.com/in/vpdendukuri">LinkedIn</a>
</p>

</div>


</body>
</html>
5 changes: 4 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const server = http.createServer( function( request,response ) {
break
case '/index.html':
sendFile( response, 'index.html' )
break
break
case '/styles.css':
sendFile( response, 'styles.css' )
break
default:
response.end( '404 Error: File Not Found' )
}
Expand Down
48 changes: 48 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
body {
background-color: #D6CA9F;
margin: 20px;
}

h1 {
color: #ffffff;
font-family: "Michroma", sans-serif;
background-color: #F5413D;
padding: 30px;
border: 2px solid black;
margin: 0px;
text-align: center
}

h2 {
color: #CC4567;
font-style: italic;
}

p {
color: #1B213D;
}

table {
font-family: arial, sans-serif;
border:1px white;
/*border-collapse: collapse;*/
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

/* for the unvisited link */
a:link {
color: #CC4567;
padding: 10px;
}

/* for the visited link */
a:visited {
color: #23EB52;
padding: 10px;
}