Skip to content

Commit 7c80704

Browse files
committed
Added temp branch content
1 parent ebc7c9c commit 7c80704

File tree

1,191 files changed

+174
-108168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,191 files changed

+174
-108168
lines changed

README.md

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +0,0 @@
1-
# Project Details
2-
## How do I complete this project?
3-
Review the Online Resume [Project Rubric](https://review.udacity.com/?_ga=1.189245867.12280332.1465333852#!/projects/2962818615/rubric).
4-
5-
1. In this project you will store your resume data in four javaScript objects according to the schema given below. As is often the case when leveraging an API, the objects must follow the schema exactly. All properties must be present and have real or fake values. The names must match those in the schema (note that object and property names are case-sensitive). All property values should be of the data-type given for the property in the schema. For example if the data-type is given as an array, it is not acceptable to use a string as a value for that property.
6-
2. Once you've created your javaScript objects, you will write the code needed to display all of the resume data contained within these objects in your resume.
7-
3. All of the HTML code needed to build the resume is stored in **js/helper.js** variables. The variable names indicate their function. You will replace substrings in these variable string values such as **%data%** and **#** with the data in your javaScript objects, and append or prepend the formatted result to your resume in the appropriate location.
8-
4. If you need a refresher on JavaScript syntax, go to the [Javascript Basics](https://classroom.udacity.com/nanodegrees/nd001/parts/0011345406/modules/296281861575460/lessons/1946788554/concepts/25505685350923) course; if you would like to understand how this project is manipulating and traversing the DOM, check out [Intro to jQuery](https://classroom.udacity.com/nanodegrees/nd001/parts/0011345406/modules/296281861575461/lessons/3314378535/concepts/33166386820923).
9-
5. Go through the videos and assignments in this course to learn the JavaScript necessary to build your resume.
10-
6. Fork the project repo from [Github](https://github.com/udacity/frontend-nanodegree-resume) and begin building you resume.
11-
7. If you are prompted to do so, you may want to get a [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key), and include it as the value of the `key` parameter when loading the Google Maps API in **index.html**:
12-
```<script src="http://maps.googleapis.com/maps/api/js?libraries=places&key=[YOUR_API_KEY]"></script> ``` You may have some initial concerns with placing your API key directly within your JavaScript source files, but rest assured this is perfectly safe. All client-side code must be downloaded by the client; therefore, the client must download this API key - it is not intended to be secret. Google has security measures in place to ensure your key is not abused. **It is not technically possible to make anything secret on the client-side.**
13-
8. Check your work against the [Project Rubric](https://review.udacity.com/?_ga=1.189245867.12280332.1465333852#!/projects/2962818615/rubric).
14-
9. When you are satisfied with your project, submit it according to the Submission Instructions below.
15-
16-
### By the end:
17-
Your resume will look something like this
18-
![](http://i.imgur.com/pWU1Xbl.png)
19-
20-
And your repository will include the following files:
21-
22-
* **index.html**: The main HTML document. Contains links to all of the CSS and JS resources needed to render the resume, including resumeBuilder.js.
23-
* **js/helper.js**: Contains helper code needed to format the resume and build the map. It also has a few function shells for additional functionality. More on helper.js further down.
24-
* **js/resumeBuilder.js**: This file is empty. You should write your code here.
25-
* **js/jQuery.js**: The jQuery library.
26-
* **css/style.css**: Contains all of the CSS needed to style the page.
27-
* **README.md**:
28-
The GitHub readme file.
29-
* and some images in the images directory.
30-
31-
## Your starting point...
32-
### js/helper.js
33-
Within helper.js, you’ll find a large collection of strings containing snippets of HTML. Within many snippets, you’ll find placeholder data in the form of `%data%` or `%contact%`.
34-
35-
Each string has a title that describes how it should be used. For instance, `HTMLworkStart` should be the first `<div>` in the Work section of the resume. `HTMLschoolLocation` contains a `%data%` placeholder which should be replaced with the location of one of your schools.
36-
37-
### Your process:
38-
The resume has four distinct sections: work, education, projects and a header with biographical information. You’ll need to:
39-
40-
1. Build four JavaScript objects, each one representing a different resume section. The objects that you create (including property names and the data types of their values) need to follow the schema below exactly. All properties should be included and contain a value of the type specified unless the property is marked 'optional'. Property values may contain real or fake data. Property names are case-sensitive. Make sure your javaScript objects are formatted correctly using [jshint.com](http://jshint.com/).
41-
42-
* `bio` contains:
43-
44-
name : string
45-
role : string
46-
contacts : an object with
47-
mobile: string
48-
email: string
49-
github: string
50-
twitter: string (optional)
51-
location: string
52-
welcomeMessage: string
53-
skills: array of strings
54-
biopic: string url
55-
display: function taking no parameters
56-
57-
* `education` contains:
58-
59-
schools: array of objects with
60-
name: string
61-
location: string
62-
degree: string
63-
majors: array of strings
64-
dates: string (works with a hyphen between them)
65-
url: string
66-
onlineCourses: array of objects with
67-
title: string
68-
school: string
69-
dates: string (works with a hyphen between them)
70-
url: string
71-
display: function taking no parameters
72-
73-
* `work` contains
74-
75-
jobs: array of objects with
76-
employer: string
77-
title: string
78-
location: string
79-
dates: string (Can be 'in progress')
80-
description: string
81-
display: function taking no parameters
82-
83-
* `projects` contains:
84-
85-
projects: array of objects with
86-
title: string
87-
dates: string (works with a hyphen between them)
88-
description: string
89-
images: array with string urls
90-
display: function taking no parameters
91-
92-
2. Iterate through each javaScript object and append its information to index.html in the correct section.
93-
* First off, you’ll be using jQuery’s `selector.append()` and `selector.prepend()` functions to modify index.html. `selector.append()` makes an element appear at the end of a selected section. `selector.prepend()` makes an element appear at the beginning of a selected section.
94-
* Pay close attention to the ids of the `<div>`s in index.html and the HTML snippets in helper.js. They’ll be very useful as jQuery selectors for `selector.append()` and `selector.prepend()`
95-
* You’ll also be using the JavaScript method `string.replace(old, new)` to swap out all the placeholder text (e.g. `%data%`) for data from your resume JSON objects.
96-
* Here’s an example of some code that would add the location of one your companies to the page:
97-
* `var formattedLocation = HTMLworkLocation.replace("%data%", work.jobs[job].location);`
98-
* `$(".work-entry:last").append(formattedLocation);`
99-
* Use the mockup at the page of this document as a guide for the order in which you should append elements to the page.
100-
3. The resume includes an interactive map. Do the following to add it.
101-
* In resumeBuilder.js, append the googleMap string to `<div id=”mapDiv”>`.
102-
* In index.html, uncomment the Google script element: `<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places"></script>`
103-
* In helper.js, at the bottom of the file, uncomment code to initialize map and set fitBounds.
104-
4. All of your code for adding elements to the resume should be contained within functions.
105-
5. As described in the javaScript object schema, each 'display' function should be encapsulated within the javaScript object it displays in the resume. For instance, your 'display' function for appending 'work' experience data to the resume should be encapsulated within the 'work' javaScript object. The 'display' function can be encapsulated within the 'work' javaScript object definition in the same way other properties are defined there, or it can be encapsulated later in the file using dot notation. For example: `work.display =`
106-
6. It’s possible to make additional information show up when you click on the pins in the map. Check out line 174 in helper.js and the Google Maps API to get started.

css/app.css

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
font-family: monospace;
5+
}
6+
7+
#content-body,
8+
#header,
9+
#main-content,
10+
#content-canvas,
11+
#greeting-block,
12+
#img-block,
13+
#data-block,
14+
#info-list,
15+
.item-data {
16+
display: flex;
17+
}
18+
19+
#content-body {
20+
width: 100%;
21+
height: 100%;
22+
background-color: #242424;
23+
justify-content: center;
24+
align-items: center;
25+
flex-direction: column;
26+
line-height: 2em;
27+
}
28+
29+
#header {}
30+
31+
#main-content {
32+
width: 90vw;
33+
justify-content: flex-end;
34+
}
35+
36+
#content-canvas {
37+
width: 100%;
38+
justify-content: center;
39+
color: #ffffff;
40+
}
41+
42+
#greeting-block,
43+
#data-block {
44+
width: 40%;
45+
flex-direction: column;
46+
justify-content: center;
47+
align-items: baseline;
48+
}
49+
50+
#greeting-block {
51+
52+
}
53+
54+
#info-list {
55+
width: 100%;
56+
}
57+
58+
#info-list {
59+
flex-direction: column;
60+
list-style: none;
61+
text-decoration: none;
62+
}
63+
64+
.list-item {
65+
text-decoration: inherit;
66+
color: #ffffff;
67+
box-sizing: border-box;
68+
padding: .2em;
69+
}
70+
71+
.item-data {
72+
justify-content: flex-start;
73+
}
74+
75+
.item-data img {
76+
margin: 0 1vw;
77+
}
78+
79+
#location-link {
80+
pointer-events: none;
81+
}
82+
83+
@media screen and (max-width: 500px) {
84+
#content-canvas {
85+
flex-direction: column;
86+
align-items: center;
87+
}
88+
#greeting-block,
89+
#data-block {
90+
width: 90%;
91+
margin: 1em 0;
92+
}
93+
}

0 commit comments

Comments
 (0)