Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yosiak-alv committed Jul 18, 2024
0 parents commit 1066668
Show file tree
Hide file tree
Showing 17 changed files with 414 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Kodigo-Challenges
all my challenges of kodigo
Binary file added RETO_BLOG_CAFE.zip
Binary file not shown.
72 changes: 72 additions & 0 deletions challenge_coffee_blog/courses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/shared/navbar.css">
<link rel="stylesheet" href="styles/shared/footer.css">
<link rel="stylesheet" href="styles/courses.css">
<title>Cursos - DeCafé</title>
</head>
<body>
<header>
<!-- navbar -->
<nav>
<a class="logo" href="/index.html" >Blog DeCafé</a>
<ul>
<li><a href="#">Nosotros</a></li>
<li><a href="/courses.html">Cursos</a></li>
<li><a href="#">Contacto</a></li>
</ul>
</nav>
<!-- hero -->
<div class="hero">
<h1>Blog de café con consejos y cursos</h1>
<p>Aprende de los expertos con las mejores recetas y consejos</p>
</div>
</header>
<!-- main section -->
<main>
<section class="courses">
<h2>Nuestros Próximos Cursos y Talleres</h2>
<table>
<thead>
<tr>
<th>Imagen</th>
<th>Título</th>
<th>Precio</th>
<th>Cupo</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="img/curso1.jpg" alt="Técnicas de extracción de café"></td>
<td>Técnicas de extracción de café</td>
<td>Gratis</td>
<td>20</td>
</tr>
<tr>
<td><img src="img/curso2.jpg" alt="Taller para Tostar y Moler Granos"></td>
<td>Taller para Tostar y Moler Granos</td>
<td>$15.00</td>
<td>30</td>
</tr>
<tr>
<td><img src="img/curso3.jpg" alt="4 Recetas de Café para Principiantes"></td>
<td>4 Recetas de Café para Principiantes</td>
<td>Gratis</td>
<td>20</td>
</tr>
</tbody>
</table>
</section>
</main>
<!-- footer -->
<footer>
<div class="footer-content">
<div class="footer-logo">Blog DeCafé</div>
<p>&copy; 2024 Blog DeCafé. Todos los derechos reservados.</p>
</div>
</footer>
</body>
</html>
Binary file added challenge_coffee_blog/img/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/blog1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/blog2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/blog3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/curso1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/curso2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/curso3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenge_coffee_blog/img/nosotros.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions challenge_coffee_blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/shared/navbar.css">
<link rel="stylesheet" href="styles/shared/footer.css">
<link rel="stylesheet" href="styles/index.css">
<title>Blog DeCafé</title>
</head>
<body>
<header>
<!-- navbar -->
<nav>
<a class="logo" href="/index.html" >Blog DeCafé</a>
<ul>
<li><a href="#">Nosotros</a></li>
<li><a href="/courses.html">Cursos</a></li>
<li><a href="#">Contacto</a></li>
</ul>
</nav>
<!-- hero -->
<div class="hero">
<h1>Blog de café con consejos y cursos</h1>
<p>Aprende de los expertos con las mejores recetas y consejos</p>
</div>
</header>

<!-- main section -->
<main>
<section class="content">
<div class="blog">
<h2>Nuestro Blog</h2>
<div class="blog-grid">
<article>
<img src="img/blog1.jpg" alt="Coffee Beans">
<div>
<h3>Tipos de Grano de Café</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate, rerum, reprehenderit consequuntur...</p>
<a href="#">Ver mas</a>
</div>
</article>
<article>
<img src="img//blog2.jpg" alt="3 Deliciosas Recetas de Café">
<div>
<h3>3 Deliciosas Recetas de Café</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate, rerum, reprehenderit consequuntur...</p>
<a href="#">See more</a>
</div>
</article>
</div>
</div>
<aside class="sidebar">
<h3>Nuestros Cursos y Talleres</h3>

<div class="course">
<h4>Técnicas de Extracción de Café</h4>
<p>Precio: Gratis<br>Cupo: 20</p>
<a href="/courses.html">Ver mas</a>
</div>
</div>
<div class="course">
<h4>4 Recetas de Café para Principiantes</h4>
<p>Precio: Gratis<br>Cupo: 20</p>
<a href="/courses.html">Ver mas</a>
</div>
</aside>
</section>
</main>

<!-- footer -->
<footer>
<div class="footer-content">
<div class="footer-logo">Blog DeCafé</div>
<p>&copy; 2024 Blog DeCafé. Todos los derechos reservados.</p>
</div>
</footer>
</body>
</html>
64 changes: 64 additions & 0 deletions challenge_coffee_blog/styles/courses.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
:root {
--primary-color: #8b5e3c;
--background-color: #f9f9f9;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
}

main {
padding: 50px;
background: var(--background-color);
}

.courses {
max-width: 1200px;
margin: 0 auto;
text-align: center;
}

.courses h2 {
font-size: 36px;
margin-bottom: 30px;
}

table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}

thead {
background-color: var(--primary-color);
color: white;
}

thead th {
padding: 10px;
}

tbody tr {
background-color: white;
border-bottom: 1px solid var(--primary-color);
}

tbody tr:nth-child(even) {
background-color: var(--background-color);
}

tbody td {
padding: 10px;
text-align: center;
}

tbody td img {
width: 100px;
height: auto;
border-radius: 5px;
}
119 changes: 119 additions & 0 deletions challenge_coffee_blog/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
:root {
--background-color: #f9f9f9;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
}

.hero p {
font-size: 24px;
}

main {
padding: 50px;
background: var(--background-color);
}

.content {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 30px;
max-width: 1200px;
margin: 0 auto;
}

.blog h2 {
font-size: 36px;
margin-bottom: 30px;
}

.blog-grid {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
}

.blog article {
background: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: grid;
grid-template-rows: auto 1fr;
}

.blog article img {
width: 100%;
height: auto;
}

.blog article div {
padding: 20px;
}

.blog article h3 {
font-size: 24px;
margin-bottom: 10px;
}

.blog article p {
font-size: 16px;
margin-bottom: 20px;
}

.blog article a {
text-decoration: none;
color: white;
background: black;
padding: 10px 20px;
border-radius: 5px;
}

.blog article a:hover {
background: #444;
}

.sidebar h3 {
font-size: 24px;
margin-bottom: 15px;
}
.sidebar .course {
background: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-bottom: 30px;
}

.sidebar .course h3 {
font-size: 24px;
margin-bottom: 10px;
}

.sidebar .course h4 {
font-size: 20px;
margin-bottom: 10px;
}

.sidebar .course p {
font-size: 16px;
margin-bottom: 20px;
}

.sidebar .course a {
text-decoration: none;
color: white;
background: black;
padding: 10px 20px;
border-radius: 5px;
display: inline-block;
}

.sidebar .course a:hover {
background: #444;
}

23 changes: 23 additions & 0 deletions challenge_coffee_blog/styles/shared/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
footer {
background: black;
color: #fff;
padding: 30px 0;
}

footer .footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}

footer .footer-logo {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}

footer p {
font-size: 14px;
}
Loading

0 comments on commit 1066668

Please sign in to comment.