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
File renamed without changes
File renamed without changes
15 changes: 0 additions & 15 deletions m1/html-css.md

This file was deleted.

154 changes: 102 additions & 52 deletions m1/index.html
Original file line number Diff line number Diff line change
@@ -1,58 +1,108 @@
<!DOCTYPE html>
<html>
<html lang="es">

<head>
<meta charset=utf-8"/>
<title>EXERCICI HTML-CSS</title>
<!-- <link rel="stylesheet" href="css/style.css"> -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./styles/style.css">
<title>Mi sitio Web</title>
</head>


<body>

<!-- Cabecera -->
<!-- Título con hipertexto al propio contenido del web-->
Mi sitio web
<!-- Menú de navegación -->

Inicio
Blog
Sobre mi
Fotos
Portfolio
Contacto
Enlaces

<!-- Contenido Principal -->
<!-- 1. ---fotografia koala.png con pie de foto:"descripción de la foto" de 200*200 px-->
<!-- 2. Texto -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare sapien ac nibh vulputate feugiat. Morbi euismod velit sit amet libero volutpat ultrices in quis sem. Sed sit amet placerat sem. Curabitur vitae lectus nec purus accumsan faucibus. Donec vitae volutpat tortor. Suspendisse tempor rutrum urna, in consequat est tincidunt vitae. Cras et ligula at felis placerat tempor. Fusce elementum metus non justo luctus iaculis.</p>
<p>Donec ligula arcu, sagittis lacinia nibh et, consequat gravida turpis. Aenean nec scelerisque felis. Integer nec odio sed lorem mattis rhoncus quis quis nibh. Praesent non fringilla nisi. Duis porta placerat mattis. Aenean in mollis odio, at egestas massa. Quisque in lectus magna. Vestibulum vel faucibus massa, vel varius tortor. Maecenas et laoreet neque, ut semper neque. Suspendisse aliquet, nisl vel pharetra ultricies, elit felis molestie sem, ac scelerisque turpis tortor non lacus.</p>
<!-- Contenido relacionado-->
<!-- Tres apartados con lista desordenada de enlaces:
1. Categorías

Categoría 1
Categoría 2
Cateogría 3
Categoría 4
Categoría 5

2. Archivo
Marzo 2019
Febrero 2019
Enero 2019
Diciembre 2018


3. Enlaces
Enlace 1
Enlace 2
...
Enlace 5

<!-- Pie de pagina -->
© 2019 Vuestro nombre y apellidos
<div class="container">

<header>
<h1 id="header-title"><a href="/"> Mi sitio Web</a></h1>
<!-- check later-->
</header>

<main>

<nav class="top-nav">
<div class="center">
<ul>
<li><a href="#">Inicio</a></li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Sobre mí</a>
</li>
<li>
<a href="#">Fotos</a>
</li>
<li>
<a href="#">Portfolio</a>
</li>
<li>
<a href="#">Contacto</a>
</li>
<li>
<a href="#">Enlaces</a>
</li>
</ul>
</div>
</nav>

<section>
<div class="center">
<figure>
<img src="./assets/koala.jpg" id="img-koala" alt="fotografía de un koala">
<figcaption>"descripción de la foto"</figcaption>
</figure>
</div>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare sapien ac nibh vulputate feugiat. Morbi euismod velit sit amet libero volutpat ultrices in quis sem. Sed sit amet placerat sem. Curabitur vitae lectus nec purus accumsan
faucibus. Donec vitae volutpat tortor. Suspendisse tempor rutrum urna, in consequat est tincidunt vitae. Cras et ligula at felis placerat tempor. Fusce elementum metus non justo luctus iaculis.</p>
<p>Donec ligula arcu, sagittis lacinia nibh et, consequat gravida turpis. Aenean nec scelerisque felis. Integer nec odio sed lorem mattis rhoncus quis quis nibh. Praesent non fringilla nisi. Duis porta placerat mattis. Aenean in mollis odio,
at egestas massa. Quisque in lectus magna. Vestibulum vel faucibus massa, vel varius tortor. Maecenas et laoreet neque, ut semper neque. Suspendisse aliquet, nisl vel pharetra ultricies, elit felis molestie sem, ac scelerisque turpis
tortor non lacus.</p>

</section>

<footer>
<p>&#xA9;Raphael Boury</p>

</footer>

</main>



<aside>
<h2>Categorías</h2>
<ul>

<li><a href="#">Categoría 1</a></li>
<li><a href="#">Categoría 2</a></li>
<li><a href="#">Categoría 3</a></li>
<li><a href="#">Categoría 4</a></li>
<li><a href="#">Categoría 5</a></li>

</ul>
<h2>Archivo</h2>
<ul>
<li><a href="#">Marzo 2019</a></li>
<li><a href="#">Febrero 2019</a></li>
<li><a href="#">Enero 2019</a></li>
<li><a href="#">Diciembre 2018</a></li>
</ul>

<h2>Enlaces</h2>
<ul>
<li><a href="#">Enlace 1</a></li>
<li><a href="#">Enlace 2</a></li>
<li><a href="#">Enlace 3</a></li>
<li><a href="#">Enlace 4</a></li>

</ul>

</aside>

</div>


</body>
</html>

</html>
43 changes: 0 additions & 43 deletions m1/style.css

This file was deleted.

142 changes: 142 additions & 0 deletions m1/styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
/* El bloque de reset tendrá las siguientes características:
. márgenes, padding, fuente (verdana, sans-serif con tamaño 120% y altura 160%) y fondo con color (#F2F5FE) e imagen (fondo.gif) repetida
en el eje horizontal */

html {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Verdana, sans-serif;
font-size: 120%;
line-height: 160%;
background-color: #F2F5FE;
background-image: url("fondo.gif");
background-repeat: repeat-x;
}


/* El contenedor tendrá las siguientes características:
ancho 80% color de fondo blanco */

.container {
width: 80%;
background-color: white;
margin: auto;
}


/*La cabecera de la página contendrá el título con enlace al directorio del contenido de la página. Las características serán:
Fondo:
Color:#233C9B
Padding: 10px;
Texto:
color de texto: #FFF, fuente georgia, serif y tamaño 260%. Al pasar el mouse por encima tomará el color: #B5C4E3;
Altura de línea: 35px*/

h1 {
font-size: inherit;
}

#img-koala {
width: 200px;
height: 200px;
}

header {
background-color: #233C9B;
padding: 10px;
color: #FFF;
font-family: georgia, serif;
font-size: 2.6rem;
line-height: 35px;
}

#header-title a:hover {
color: #B5C4E3;
}

#header-title a:visited {
color: #FFF;
}


/* Al menú de navegación se le aplicará el siguiente formato:
- Estará centrado con respecto a la cabecera
- los elementos estarán separados por un espacio de 5px
- la fuente será 3/4 de la inicial, en negrita y de color #B5C4E3
- los enlaces no estarán subrayados
- el cursor tomará la forma de puntero al pasar por encima
- los elementos tendrán un espacio de relleno de 5px por arriba y abajo y 15px izqda-dcha.
- El fondo del elemento será #253575
- Al pasar el mouse por encima adquirirá el color de fondo #31479B;*/

.center {
text-align: center;
}

.top-nav li {
display: inline-block;
padding: 5px;
font-weight: 700;
font-size: 0.9rem;
color: #B5C4E3;
}

.top-nav li>a {
background-color: #253575;
text-decoration: none;
padding: 5px 15px;
cursor: pointer;
}

.top-nav li>a:visited {
color: inherit;
}


/* La sección principal tendrá las siguientes características:
- ancho: 79%
- relleno de texto superior, derecha, inferior, izquierda de 30px, 10px, 60px y 10px, respectivamente.*/

main {
width: 79%;
padding: 30px 10px 60px 10px;
background-color: white;
float: left;
}


/* El elemento lateral tendrá las siguientes características:
- ancho 19%
- tamaño de fuente de 3/4 de la inicial*/

aside {
width: 19%;
font-size: 0.9rem;
background-color: white;
float: right;
position: relative;
right: 1.75em;
}

aside>h2 {
color: #253575;
}


/* El pie del documento tendrá las siguientes características:
- tamaño de fuente de 3/4 de la inicial
- relleno del texto 5px por arriba y abajo
- color de la fuente blanco
- color de fondo: #233C9B
- altura del elemento 40px;
*/

footer {
text-align: center;
font-size: 0.9rem;
padding: 5px;
color: white;
background-color: #233C9B;
line-height: 40px;
}