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
2 changes: 2 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"name":"WeChat Image_20200219214101.jpg","date":"2020-09-07T11:42:40.845Z","url":"https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2FWeChat%20Image_20200219214101.jpg","type":"image/jpeg","size":69595,"imageWidth":1080,"imageHeight":1080,"thumbnail":"https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2Fthumbnails%2FWeChat%20Image_20200219214101.jpg","thumbnailWidth":330,"thumbnailHeight":330,"uuid":"4xjCjzrpnIECxh0z"}
{"name":"colorwheel.PNG","date":"2020-09-07T12:25:50.859Z","url":"https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2Fcolorwheel.PNG","type":"image/png","size":224395,"imageWidth":1319,"imageHeight":690,"thumbnail":"https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2Fthumbnails%2Fcolorwheel.PNG","thumbnailWidth":330,"thumbnailHeight":173,"uuid":"xmGE8ini0iZOUGIj"}
95 changes: 24 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,30 @@
Assignment 1 - Hello World: Basic Deployment w/ Git, GitHub, Glitch
===
Wenjing Ying
http://a1-wying8349.glitch.me

*DUE: Thursday, August 29th by 11:59 AM (before the start of class!)*

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.
In other words, don't just get your website up and done. You will need skills with these tools throughout the rest of the course.

Assignment details
---

Do the following to complete this assignment:

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
3. 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.

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

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.

Resources
---

If you need a JavaScript/HTML/CSS refresher, see [Technology Fundamentals by Scott Murray](http://chimera.labs.oreilly.com/books/1230000000345/ch03.html#_html) 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 below so with your links and descriptions)
---

Charlie Roberts
http://a1-charlieroberts.glitch.me

This project shows ...
This project shows a self introduction of mine and my experiences as well as an animation created by me.

## Technical Achievements
- **Proved P=NP**: Using a combination of...
- **Solved AI**: ...
> **Styled page with CSS**: Added rules for:
- added padding to the whole webpage
- `<h1>`: changed its color and font and background color
- created 3 divisions for the webpage and added a dotted border to division `intro`
- aligned the text of intro to be in the verticle center beside the image
- resize the image to make it no larger than 200px
- added color to `<li>` and a background color to division `experience`
- move the schedule planner to the middle by using `margin: auto`

> **Experiment with other HTML tags**:
- Added a horizontal rule between sections to create a break between themes using the `<hr />` tag.
- Added an email address that when the audience click, it will direct to the default mail application to send an email to my email address with the `<a href="mailto:[email]"></a>`
- Created an ordered list with the tag `<ol>`
- Added a image of mine with the `<img>` tag
- Added a schedule planner for me to record my daily activities with a table using the `<table>` tag

> **JavaScript animation**
- created a moving division with javascript, controlled by a button "move Right"

### Design Achievements
- **Re-vamped Apple's Design Philosophy**: Shown in `style.css`, the code...

- **Used the Roboto Font from Google Fonts**: I used Merriweather as the font for the headings in my site and Open Sans for the main text.
- **Used the following color wheel**:
[Color Wheel](https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2Fthumbnails%2Fcolorwheel.PNG?1599481550859)

132 changes: 122 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,140 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CS4241 Assignment 1</title>
<meta charset="utf-8">
<meta charset="utf-8" />
<link rel="stylesheet" href="/styles.css">
<script src="/script.js"></script>
</head>
<body>
<h1>Information about [Your name here]</h1>

<h1>Information about Wenjing Ying</h1>

<address>
<p><a href="mailto:wying@wpi.edu">
wying@wpi.edu</a>
</p>
</address>

<div id="intro">
<div id="img">
<img
src="https://cdn.glitch.com/923fed96-1412-4abf-b1fe-89f8fb5bce6c%2Fthumbnails%2FWeChat%20Image_20200219214101.jpg?1599478960845"
alt="A image of Mine"
/>
<input type = "button" value = "move Right" onclick = "moveRight();" />
</div>

<p>
[Self introduction]
My name is Wenjing Ying. I am a Computer Science student at WPI, class of
2021.
<br><br>
Major: Computer Science
<br><br>
I am preparing to apply to a graduate school to study Artificial
intelligence.
</p>
</div>
<hr />
<div id="experience">
<h2>Experience</h2>
<p>
[Major and other information]
Academic experience
</p>
<p>
[Other things]
I have taken the following CS classes:
</p>

<h2>Experience</h2>
<ul>
<li>Machine learning for education</li>
<li><a href="https://wying8349.github.io/final/">Data Visualization</a></li>
<li>Mobile and Ubiquitous Computing</li>
<li>Software engineering</li>
<li>Data base</li>
<li>Operating system</li>
<li>Computer organization and assembly</li>
</ul>
<p>
Working experience
</p>
<ul>
<li>IBM/Rational</li>
<li>WPI</li>
<li>Documentation for zCore, a rust-based OS</li>
<li>WPI Math PLA</li>
</ul>
<p>
Technology experience
</p>
<ol>
<li>HTML: some</li>
<li>CSS: some</li>
<li>Java: a lot</li>
<li>JavaScript: some</li>
<li>Ruby: none</li>
<li>Python: some</li>
<li>unit testing: a lot</li>
</ol>
</div>
<hr />
<div id="schedule">
<h2> Schedule Planner </h2>
<table>
<tr>
<th scope="col">Su</th>
<th scope="col">Mo</th>
<th scope="col">Tu</th>
<th scope="col">We</th>
<th scope="col">Th</th>
<th scope="col">Fr</th>
<th scope="col">Sa</th>
</tr>
<tr>
<td>30</td>
<td>31</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td >6</td>
<td >7</td>
<td >8</td>
<td >9</td>
<td >10</td>
<td >11</td>
<td >12</td>
</tr>
<tr>
<td >13</td>
<td >14</td>
<td >15</td>
<td >16</td>
<td >17</td>
<td >18</td>
<td >19</td>
</tr>
<tr>
<td >20</td>
<td >21</td>
<td >22</td>
<td >23</td>
<td >24</td>
<td >25</td>
<td >26</td>
</tr>
<tr>
<td >27</td>
<td >28</td>
<td >29</td>
<td >30</td>
<td >1</td>
<td >2</td>
<td >3</td>
</tr>
</table>
</div>
<hr>

</body>
</html>

12 changes: 12 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

var bounce = null;
function init() {
bounce = document.getElementById('img');
bounce.style.position= 'relative';
bounce.style.left = '0px';
}
function moveRight() {
bounce.style.left = parseInt(bounce.style.left) + 10 + 'px';
}

window.onload = init;
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const server = http.createServer( function( request,response ) {
case '/index.html':
sendFile( response, 'index.html' )
break
case '/styles.css':
sendFile( response, 'styles.css' )
case '/script.js':
sendFile( response, 'script.js' )
break
default:
response.end( '404 Error: File Not Found' )
}
Expand Down
52 changes: 52 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
body {
padding-left: 100px;
padding-right: 100px;
padding-top: 10px;
padding-botton: 10px
}
h1{
font-family: 'Merriweather', serif;
color: #93ADA0;
background-color: #204547}
img {
height: auto;
width: auto;
max-width: 200px;
max-height: 200px;
}
h2{
font-family: 'Merriweather', serif;
color: #93ADA0;
}
p {
padding-left:10px;
font-family: 'Open Sans', sans-serif;
color: #204547;
}
li {
font-family: 'Open Sans', sans-serif;
color: #B86E77;
}
table {
font-family: 'Merriweather Sans', sans-serif;
color: #E0A8CB;
margin-right: auto;
margin-left: auto;
}
#experience {
background-color: #A8DDE0;
}
#intro {
border: dotted;
display: flex;
align-items:center;
}
#schedule {
margin-right: auto;
margin-left: auto;
}
.square{
 width:50px;
 height:50px;
 background-color:green;
}