Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
728da00
Created file index.html with header Hello World
grercoli Oct 12, 2018
8ec392d
Changed the header to My todo list
grercoli Oct 12, 2018
d4929ff
Added some daily chores to the header
grercoli Oct 12, 2018
a9b599a
Created file index2.html with a table of my expenses
grercoli Oct 12, 2018
61ad67f
Created file index3.html and added some media features
grercoli Oct 12, 2018
4eedfb8
Added a sign up form to index3.html
grercoli Oct 12, 2018
2795a64
Added doctype to all html files
grercoli Oct 12, 2018
8f41c73
Added favicon to img folder
grercoli Oct 12, 2018
281e8e5
Added metatags
grercoli Oct 12, 2018
b625779
Added meta viewport tag
grercoli Oct 12, 2018
e164939
Tested with W3 Validator and replaced table attr with css style
grercoli Oct 12, 2018
bc49724
Tested with W3 Validator and fixed select options, also added placeho…
grercoli Oct 12, 2018
004b87b
Fixed css format
grercoli Oct 12, 2018
e7f646b
Added Accessibility
grercoli Oct 12, 2018
d4cc136
Added accessibility
grercoli Oct 12, 2018
e36e1c3
Renamed index2.html to table.html
grercoli Oct 12, 2018
44d1813
Renamed index3.html to media-form.html
grercoli Oct 12, 2018
8e03583
Renamed index.html to header-list.html
grercoli Oct 12, 2018
4727715
Created file basics-css.html
grercoli Oct 12, 2018
b5772d4
Created css folder with style.css file
grercoli Oct 12, 2018
7d63f93
Linked style.css to basics-css.html
grercoli Oct 12, 2018
eb0ed96
Created normalize.css file and linked it to basics-css.html
grercoli Oct 12, 2018
899b348
Added structure and content
grercoli Oct 14, 2018
52589e6
Added some css styles
grercoli Oct 14, 2018
f41b069
Modified header structure and renamed classes
grercoli Oct 14, 2018
d095c50
Made some changes to style.css
grercoli Oct 14, 2018
180e21b
Created file README.md and answered exercises questions
grercoli Oct 14, 2018
be1a5c8
Deleted unnecessary property
grercoli Oct 14, 2018
fdf560c
Created file mock-up.css and added some css styles
grercoli Oct 14, 2018
bf8d096
Created file mock-up.html and made all the structure
grercoli Oct 14, 2018
537704e
Added 6 images to use for mock-up.html
grercoli Oct 14, 2018
6aa0ef9
Minor fix to albums titles
grercoli Oct 14, 2018
4c04936
Added media queries
grercoli Oct 14, 2018
196198a
Fixed markdown layout
grercoli Oct 15, 2018
3102153
Fixed albums list and deleted unnecessary code
grercoli Oct 15, 2018
3f58590
Fixed some css styles and media queries
grercoli Oct 15, 2018
0915353
Created folder css with normalize.css file
grercoli Oct 16, 2018
67d4e9b
Created file index.html with random content
grercoli Oct 16, 2018
c22d4ab
Added more content to section
grercoli Oct 16, 2018
6770b1a
Created styles.css file and added styles to center texts of section e…
grercoli Oct 16, 2018
c47e0ca
Added hidden section
grercoli Oct 16, 2018
f627ae8
Created folder js with scripts.js file and added DOMContentLoaded event
grercoli Oct 16, 2018
3a44dc4
Added css rules to hide and show section
grercoli Oct 16, 2018
d81aa0f
Added a button in index.html
grercoli Oct 16, 2018
6aeeb0d
Created showAlertMessage function to display an alert
grercoli Oct 16, 2018
17cd0b0
Added id to button
grercoli Oct 16, 2018
43e5b5b
Added click event to button
grercoli Oct 16, 2018
83ac76d
Renamed css rule: not-hidden to fadein
grercoli Oct 17, 2018
d0e23e1
Deleted unnecesary code
grercoli Oct 17, 2018
65702fc
Created function to get response from rest api
grercoli Oct 17, 2018
1632bc6
Replaced button's click event with new function
grercoli Oct 17, 2018
a5817ac
Added id to section
grercoli Oct 17, 2018
e3c75a5
Added code to fill section with rest api response
grercoli Oct 17, 2018
d6c6760
Renamed class is-hidden to hidden-section
grercoli Oct 18, 2018
2320832
Renamed css rule: is-hidden to hidden-section
grercoli Oct 18, 2018
dc9380a
Modified function to load content from rest api
grercoli Oct 18, 2018
1c89153
Added red-content rule to styles.css
grercoli Oct 19, 2018
f34d9f6
Created reusable function with promise and if network fails content t…
grercoli Oct 19, 2018
9e3675a
Ej 4: Created function to get response with parameter
grercoli Oct 19, 2018
d2c4ec7
Added 2 rules to put section left side and aside to the right
grercoli Oct 20, 2018
fd6b230
Ej4: Added aside in main
grercoli Oct 20, 2018
bd4cd78
Ej4: Show list of repositories in aside
grercoli Oct 20, 2018
5cfb734
Ej4: Modified aside (added 2 divs)
grercoli Oct 22, 2018
d793ec0
Ej4: Added a blur event for search input
grercoli Oct 22, 2018
7b3d9ed
Added styles for matrix table
grercoli Oct 22, 2018
573bf55
Ej6: Created function to display a matrix of data
grercoli Oct 22, 2018
3a5714c
Created index.html to display console
grercoli Oct 26, 2018
77cac90
Ej1: Created Movie class and made an instance of it
grercoli Oct 26, 2018
ad7f761
Ej1: Created Actor class
grercoli Oct 26, 2018
ca7df1c
Added video to index.html to make it more real
grercoli Oct 27, 2018
3d97212
Fixed the route to the video
grercoli Oct 27, 2018
7506449
Ej1: Created class EventEmitter
grercoli Oct 27, 2018
2282d2b
Uploaded video
grercoli Oct 27, 2018
201dc4b
Ej2: Class inheritance
grercoli Oct 27, 2018
d093476
Ej3: Added a method to Movie class to add Actors
grercoli Oct 27, 2018
87754b5
Ej3: Created Logger class. Made it listen to play event
grercoli Oct 27, 2018
2761ec7
Ej4: Created social object and used it's methods on Movie's instances…
grercoli Oct 28, 2018
6865c0d
Added type module to script
grercoli Oct 28, 2018
8b20ce7
Ej5: Imported classes and reordered code, also made a few comments
grercoli Oct 28, 2018
e29130b
Split classes into different files to import and export them
grercoli Oct 28, 2018
17fc90c
Changed route to script: dist/bundle.js
grercoli Oct 29, 2018
76d2122
Created a new folder called js and moved all .js files inside
grercoli Oct 29, 2018
513915b
Created gitignore to exclude node_modules folder
grercoli Oct 29, 2018
52c7265
Ej5: Created a single js bundle and compiled it with Babel
grercoli Oct 29, 2018
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
22 changes: 22 additions & 0 deletions 00-HTML-CSS-basics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## How could you add weight to the global font definition to win over the classes added by point 3?

I could use something like this:
```
* {
font-weight: bold;
}
```
I also could add !important to the end of property value (but it's not recommended as possible to use), like this:
```
html {
font-weight: bold!important;
}
```
## Imagine there is a declaration like class=”oh-no-inline-styles” style=”background:red” and you need to change the background to green without changing the inline style. How could you accomplish this?

Inline styles always override styles written in css files, so here we can use !important:
```
oh-no-inline-styles {
background: green!important;
}
```
87 changes: 87 additions & 0 deletions 00-HTML-CSS-basics/basics-css.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!doctype html>
<html class="no-js" lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Basics CSS</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>

<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->

<!-- Add your site or application content here -->
<header class="header">
<div>
<h1>Welcome to my site</h1>
</div>
</header>

<main class="main-container clearfix">
<nav class="navigation">
<h2>Main Menu</h2>
<a href="#">Page N°1</a>
<br>
<a href="#">Page N°2</a>
<br>
<a href="#">Page N°3</a>
<br>
<a href="#">Page N°4</a>
<br>
<a href="#">Page N°5</a>
</nav><!-- End nav ".main-nav"

--><section class="content">
<header>
<h2>My Blogs</h2>
</header>
<article>
<h3>Blog N°1</h3>
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed similique, minus cum reiciendis ut incidunt odit ea dolor possimus tempora. Eligendi ipsa qui, cumque odio magnam nam, iusto pariatur veniam.</p>
</div>
</article>
<footer>

</footer>
</section><!-- End section ".main-section"

--><aside class="sidebar">
<h2>More Information</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint eius, error quod ex, velit, sunt eum ea cupiditate aut aliquam molestiae omnis eaque, necessitatibus eos distinctio vel quos blanditiis explicabo.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint eius, error quod ex, velit, sunt eum ea cupiditate aut aliquam molestiae omnis eaque, necessitatibus eos distinctio vel quos blanditiis explicabo.</p>
</aside>

</main> <!-- .container -->


<footer class="footer">
<p class="copyright">All rights reserved &copy;. My Blog 2018</p>
</footer>

<script src="js/vendor/modernizr-{{MODERNIZR_VERSION}}.min.js"></script>
<script src="https://code.jquery.com/jquery-{{JQUERY_VERSION}}.min.js" integrity="{{JQUERY_SRI_HASH}}" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-{{JQUERY_VERSION}}.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
</body>

</html>
144 changes: 144 additions & 0 deletions 00-HTML-CSS-basics/css/mock-up.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/** GLOBAL **/
/* apply a natural box layout model to all elements, but allowing components to change */
html {
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

ul {
list-style: none;
margin: 0;
padding: 0;
}

.container {
margin: 0 auto;
width: 98%;
}

/** HELPER CLASSES**/

.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}

.clearfix:after {
clear: both;
}

/** HEADER **/

.introduction {
margin-bottom: 60px;
}

.site-title {
float: left;
font-weight: bold;
padding-left: 20px;
width: 30%;
}

.site-information {
float: right;
padding: 0 200px 0 20px;
width: 70%;
}

@media all and (max-width: 768px) {
.site-title {
float: none;
}

.site-information {
float: none;
width: 100%;
padding: 0 20px;
}
}

.site-information p span {
font-weight: bold;
}

/** ALBUMS **/

.albums-list li {
float: left;
padding: 10px;
width: 33.3%;
}

@media all and (max-width: 600px){
.albums-list li {
width: 100%;
}
}

@media all and (max-width: 1020px) and (min-width: 600px){
.albums-list li {
width: 50%;
}
}

.album {
position: relative;
}

.album img {
filter: gray;
-moz-filter: grayscale(1);
-ms-filter: grayscale(1);
-webkit-filter: grayscale(1);
-moz-transition: all .5s ease-in-out;
-ms-transition: all .5s ease-in-out;
-webkit-transition: all .5s ease-in-out;
}

.screen {
background-color: rgba(0,0,0,0.5);
left: 0;
top: 0;
height: 30%;
width: 100%;
position: absolute;
opacity: 0;
z-index: 1000;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}

.album a:hover .screen,
.album a:hover img {
opacity: 1;
-moz-filter: grayscale(0);
-ms-filter: grayscale(0);
-webkit-filter: grayscale(0);
}

.title {
color: #fff;
font-size: 16px;
font-weight: bold;
margin-left: 10px;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}

.album img {
width: 100%;
}


Loading