Skip to content

Commit 84940df

Browse files
committed
update readme && images
1 parent 3cc4873 commit 84940df

34 files changed

+2301
-35
lines changed

readme.md

Lines changed: 48 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this Module Exercise you will apply all the concepts you have been learning,
1010
- Structuring your HTML page with **Block Elements**.
1111
- Adding content to your HTML page with **Inline Elements**.
1212

13-
## Requirements
13+
## Requirements
1414

1515
- Go to the [HTML module exercise repository](https://github.com/ironhack-labs/lab-html-cloning-medium) on Github.
1616
- Click on the button "Clone or download" and a window will appear:
@@ -27,21 +27,28 @@ The `starter-code` folder contains an `index.html` file with the main structure
2727

2828
#### Introduction
2929

30-
In this exercise, you will clone a [Medium](https://medium.com/) article. Medium is a site that contains interesting articles about a variety of topics, we highly recommend you to follow some of the authors if you have interest in [Digital Design](https://medium.com/topic/digital-design), [JavaScript](https://medium.com/tag/javascript), [Bitcoins](https://medium.com/tag/bitcoin), or [Artificial Intelligence](https://medium.com/tag/artificial-intelligence).
30+
In this exercise, you will clone the landing page from the [NPM website](https://www.npmjs.com/). NPM is a package manager for NodeJs that we will use a lot later in the course.
3131

32-
In this exercise, you will clone the [8 Things Every Person Should Do Before 8 a.m.](https://medium.com/the-mission/8-things-every-person-should-do-before-8-a-m-cc0233e15c8d) article. This is a two-part article, where we are going to clone first of all the HTML Structure. Later in the second part, we are going to style this HTML structure.
32+
You can see the real page [here](https://www.npmjs.com/).
33+
34+
35+
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_62881782971caae2736b5990926e05d9.png)
3336

34-
#### Setup
3537

36-
As you can see, the article is very long. We want you to get focus on the HTML structure, not on the content. In each article section, **it's enough to copy-paste three paragraphs of content**, not the all of content. For example, in the following section you have to add just the paragraphs in the red box:
38+
Looking at this picture of the page, we can see that there are quite a few styles being applied to this web page. We have background colors for different parts of the page, different background colors, bold font, centered font, and elements being positioned very deliberately with CSS.
3739

38-
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_de7472368e4d78c834d0df5cdf281a20.png)
40+
During this exercise, we will be creating the HTML for this page, without any of the styles. Don't worry, we are going to come back later and make our page look complete. But for now, the page that we are going to create should look like this
3941

40-
As you can see, you just have to add the section's title and the first three paragraphs. You have also to remember that you just have to add the HTML structure. So, for the image above, the result we want is the following:
42+
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_fb961b15cf7fcd5867273a3e77d3a0cf.png)
4143

42-
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_5ff67c9322ec4d409cd80cfa9cdc58e9.png)
4344

44-
**As you can see, we don't have any kind of styles here, just HTML and text.** To make this easier to visualize, copy and paste the following into your [**Chrome Console**](https://developers.google.com/web/tools/chrome-devtools/console/) (Ctrl + shift + J on Windows / Linux, Cmd + Option + J on Mac), and hit enter:
45+
46+
#### Setup
47+
48+
If you visited the NPM website, you probably noticed that the page is a lot longer than the picture provided in this assignment. That's okay, we're not going to recreate the whole thing. For this assignment, we will be cloning only the top 4 sections, reflected in the picture provided above.
49+
50+
51+
**It might be hard to get used to the idea of making a version of a web page with no styles, since it doesn't really look like a web site at all.** To make this easier to visualize go to the [NPM website](https://www.npmjs.com/) and copy and paste the following into your [**Chrome Console**](https://developers.google.com/web/tools/chrome-devtools/console/) (Ctrl + shift + J on Windows / Linux, Cmd + Option + J on Mac), and hit enter:
4552

4653
```javascript
4754
// disable all externally linked stylesheets
@@ -56,7 +63,7 @@ for (var i = arAllElements.length - 1; i >= 0; i--) {
5663
if (elmOne.nodeName.toUpperCase() == 'STYLE') {
5764
// remove <style> elements defined in the page <head>
5865
elmOne.parentNode.removeChild(elmOne);
59-
} else {
66+
} else {
6067
// remove per-element styles and style-related attributes
6168
elmOne.setAttribute('style', '');
6269
elmOne.setAttribute('size', '');
@@ -68,44 +75,51 @@ for (var i = arAllElements.length - 1; i >= 0; i--) {
6875
}
6976
```
7077

71-
This will make all of the styles disappear!
78+
This will make all of the styles disappear! As you can see, the official website now looks a lot more like the picture of our HTML-only version of the site. This script will work on any web page.
79+
80+
**To be clear, the goal of this assignment is to clone the picture provided above of our HTML-only version of the page, not the actual page.**
7281

7382
#### Time to Code
7483

75-
The most difficult part of this exercise is try to figure out what you need to structure the article, and picking the correct *semantic* tags. This will make your job easier in the next exercise when it comes time to styling.
84+
The most difficult part of this exercise is deciding how to structure the page and picking the correct *semantic* tags for the job. Picking the right semantic tags will make your job easier in the next exercise when it comes time to styling.
85+
86+
Our recommendation is to try to keep it simple. Try to identify the different sections, and add `id`'s or `classes` to each `<div>`, `<section>`, `<ul>`, or `<header>` block elements to identify these elements. i.e.:
87+
88+
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_689037695dcb47e060b94a695af8b9f1.png)
7689

77-
Our recommendation is: try to avoid thinking in the composition, just in the text and images. Try to identify the different sections, and add `id`'s to each `<div>`, `<section>`, `<article>`, or `<header>` block elements to identify these elements. i.e.:
7890

79-
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_53c860ca75220e0d63fc9c424f0ecd1f.png)
8091

81-
We could try to represent the header of the article as it follows:
92+
93+
We could try to represent this header as follows:
8294

8395
```htmlmixed
96+
8497
<header>
85-
<a href="https://medium.com/">
86-
<img src="images/medium-logo.png" alt="Medium">
87-
</a>
98+
<div class="top-left">
99+
<a class = "heart" href="#">♥︎</a>
100+
<span class="acronym">Neophobe Plebeian Mumpsimus</span>
101+
</div>
102+
<ul class = "top-links">
103+
<li><a href="#">npm Enterprise</a></li>
104+
<li><a href="#">features</a></li>
105+
<li><a href="#">pricing</a></li>
106+
<li><a href="#">documentation</a></li>
107+
<li><a href="#">support</a></li>
108+
</ul>
109+
</header>
88110
89-
<a href="https://medium.com/the-mission?source=logo-c46f69768379---b230ea2a6eb8">
90-
<img src="images/the-mission-logo.png" alt="The Mission">
91-
</a>
111+
```
92112

93-
<a href="#">Follow</a>
113+
The result of this HTML code won't look like the picture above, it'll look more like this
94114

95-
<a href="https://twitter.com/TheMissionT" target="_blank">
96-
<img src="images/twitter-logo.png" alt="Twitter account">
97-
</a>
98115

99-
<a href="https://facebook.com/TheMissionInc" target="_blank">
100-
<img src="images/facebook-logo.png" alt="Facebook account">
101-
</a>
102116

103-
<img src="images/search-logo.png" alt="Search">
104-
<img src="images/bell-logo.png" alt="Notifications">
105-
<div id="profile-picture"></div>
106-
</header>
107-
```
117+
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_7867a5c5ff21731593eac7c0692399c5.png)
118+
119+
120+
121+
122+
**But don't worry, that's okay. Remember, we will go back later and make our site look official, for now, let's build our ugly wine list!**
108123

109-
The result of this HTML code will be just plain text and images... but don't worry for that, you are going to style this page later on in another exercise :)
110124

111125
/Happy coding!
-425 KB
Binary file not shown.
-3.21 KB
Binary file not shown.

starter-code/images/author.png

-10.6 KB
Binary file not shown.

starter-code/images/backpack.svg

Lines changed: 6 additions & 0 deletions
Loading

starter-code/images/bear-logo.png

6.58 KB
Loading

starter-code/images/bell-logo.png

-1.34 KB
Binary file not shown.

starter-code/images/binoculars.svg

Lines changed: 6 additions & 0 deletions
Loading
88.1 KB
Loading

0 commit comments

Comments
 (0)