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
48 changes: 48 additions & 0 deletions 01-JS-DOM-APIs/public/css/normalize.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
109 changes: 109 additions & 0 deletions 01-JS-DOM-APIs/public/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
html {
font-family: Sans-serif;
}

h1 {
font-size: 50px;
margin: 20px;
}

h2 {
font-size: 20px;
margin-top: 1%;
margin-bottom: 5%;
font-weight: bold;
}

header {
text-align: center;
}

#joke {
margin: 10px;
}

section.section {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Los nombres de las clases deberian ser mas significativos

float: left;
width: 800px;
margin-left: 230px;
}

button.button {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mismo acá

display: block;
font-size: 20px;
margin-top: 1%;
width: 150px;
height: 50px;
border-color: grey;
background: lightgreen;
margin-top: 20px;
}

button.button:hover {
border-color: green;
color: green;
}

button.button:active {
border-color: lightgreen;
color: white;
background: lightgreen;
}

header#hide {
opacity: 0;
visibility: hidden;
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}

.sidebar {
visibility: hidden;
width: 265px;
height: auto;
margin: 1%;
padding: 1%;
float: right;
background: lightgreen;
box-shadow: 5px 5px #888888;
}

li {
margin-top: 2px;
}

input {
display: block;
margin: 0 auto;

margin-bottom: 10px;
width: 100%;
height: 30px;
border-color: grey;
}

#matrix {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
padding: 10px;
box-shadow: 5px 5px lightgreen;
}

#matrix td, #matrix th {
border: 2px solid grey;
padding: 8px;
}

#matrix tr:hover {
background-color: lightgreen;
}

#matrix th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
121 changes: 121 additions & 0 deletions 01-JS-DOM-APIs/public/css/style252.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
html {
font-family: Sans-serif;
}

h1 {
margin: 1%;
}

.container {
clear: both;
background: white;
display: block;
float: left;
width: 100%;
padding: 8px;
}

.third {
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
width: -ms-calc(33.3333% - 16px);
width: -moz-calc(33.3333% - 16px);
width: -webkit-calc(33.3333% - 16px);
width: calc(33.3333% - 16px);
margin: 8px;
height: auto;
position: relative;
float: left;
}

.gallery-grid img {
width: 100%;
height: auto;
position: relative;
float: left;
}

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

.screen:hover {
opacity: 1
}

.title {
color: #fff;
font-family: arial, helvetica, sans-serif;
font-weight: bold;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
margin-left: -30px;
}

.screen:hover .title {
margin-left: 0;
}

p {
font-size: 2em;
padding: 5%;
}

.screen.fade-in .title {
margin-left: 0;
}

.screen.fade-in:hover {
}

img {
width: 100%;
}

.row:before,
.row:after {
display: table;
clear: both;
}

/* MEDIA QUERIES */

@media screen and (max-width: 950px) and (min-width: 600px) {

.third {
width: -ms-calc(50% - 16px);
width: -moz-calc(50% - 16px);
width: -webkit-calc(50% - 16px);
width: calc(50% - 16px);
}
}

@media screen and (max-width: 600px) {

.third {
width: -ms-calc(100% - 16px);
width: -moz-calc(100% - 16px);
width: -webkit-calc(100% - 16px);
width: calc(100% - 16px);
}

p {
font-size: 30px;
}
}

36 changes: 36 additions & 0 deletions 01-JS-DOM-APIs/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE HTML>

<HTML lang="en">
<head>
<meta charset="utf-8" />

<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body onload="showSection(), get_repos(), display_matrix()">
<script type="text/javascript" src="script.js"></script>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El pedido de un script debería estar al final del , justo antes del cierre de la etiqueta.


<header id="hide">
<h1 id="title">Hello world!!!!</h1>
</header>

<section class="section">
<table id="matrix"></table>
<button class="button" onclick="joke_response()">
Joke
</button>
<p id="joke"></p>
</section>

<aside class="sidebar">
<h2>Repositories</h2>
<input type="text" id="repofilter" oninput="repos_filter()" placeholder="Search repositories...">
<ul id="displaylist"></ul>
</aside>

</body>
</HTML>
Loading