-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sites): adds a portfolio template, update's my portfolio and add…
…s libreria template
- Loading branch information
Showing
17 changed files
with
791 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="es"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Editorial Librería Cívica</title> | ||
<link rel="stylesheet" href="style_editoriallibreriacivica.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Editorial Librería Cívica</h1> | ||
</header> | ||
<main> | ||
<div class="search-bar"> | ||
<label for="search">Buscar:</label> | ||
<input type="text" id="search" placeholder="Buscar..."> | ||
</div> | ||
<div class="book-list" id="book-list"> | ||
<div class="book"> | ||
<div class="img-placeholder">img</div> | ||
<div class="book-title">Usucapión</div> | ||
<button>Ir</button> | ||
</div> | ||
<div class="book"> | ||
<div class="img-placeholder">img</div> | ||
<div class="book-title">Derecho penal. Parte general. Donna</div> | ||
<button>Ir</button> | ||
</div> | ||
<div class="book"> | ||
<div class="img-placeholder">img</div> | ||
<div class="book-title">Derecho penal. Parte General. Creus</div> | ||
<button>Ir</button> | ||
</div> | ||
</div> | ||
</main> | ||
<footer> | ||
<a href="#">→ Publícala</a> | ||
</footer> | ||
<script src="script_editoriallibreriacivica.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const searchInput = document.getElementById('search'); | ||
const bookList = document.getElementById('book-list'); | ||
const books = bookList.getElementsByClassName('book'); | ||
|
||
searchInput.addEventListener('input', function() { | ||
const filter = searchInput.value.toLowerCase(); | ||
const filterWords = filter.split(' '); | ||
|
||
Array.from(books).forEach(function(book) { | ||
const title = book.getElementsByClassName('book-title')[0].textContent.toLowerCase(); | ||
const matches = filterWords.every(word => title.includes(word)); | ||
|
||
if (matches) { | ||
book.style.display = ''; | ||
} else { | ||
book.style.display = 'none'; | ||
} | ||
}); | ||
}); | ||
}); |
103 changes: 103 additions & 0 deletions
103
editoriallibreriacivica/style_editoriallibreriacivica.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #2D3E50; | ||
color: #FFFFFF; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
header { | ||
background-color: #1B2735; | ||
width: 100%; | ||
padding: 20px 0; | ||
text-align: center; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
header h1 { | ||
margin: 0; | ||
font-size: 24px; | ||
} | ||
|
||
main { | ||
flex: 1; | ||
width: 100%; | ||
max-width: 800px; | ||
padding: 20px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.search-bar { | ||
display: flex; | ||
justify-content: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.search-bar label { | ||
margin-right: 10px; | ||
} | ||
|
||
.search-bar input { | ||
width: 100%; | ||
max-width: 400px; | ||
padding: 10px; | ||
border: none; | ||
border-radius: 5px; | ||
} | ||
|
||
.book-list { | ||
display: flex; | ||
justify-content: space-around; | ||
flex-wrap: wrap; | ||
gap: 20px; | ||
} | ||
|
||
.book { | ||
background-color: #1B2735; | ||
border-radius: 10px; | ||
padding: 10px; | ||
text-align: center; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
width: 150px; | ||
} | ||
|
||
.img-placeholder { | ||
background-color: #34495E; | ||
border-radius: 5px; | ||
padding: 40px 0; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.book-title { | ||
margin-bottom: 10px; | ||
} | ||
|
||
button { | ||
background-color: #34495E; | ||
border: none; | ||
color: #FFFFFF; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
background-color: #3B5998; | ||
} | ||
|
||
footer { | ||
background-color: #1B2735; | ||
width: 100%; | ||
padding: 10px 0; | ||
text-align: center; | ||
box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
footer a { | ||
color: #FFFFFF; | ||
text-decoration: none; | ||
font-size: 18px; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.