Last active
September 17, 2023 18:14
-
-
Save jgabrielfreitas/354cae3ae88266ca7f52d7d928976ed9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Portfólio</title> | |
| <style> | |
| body { | |
| background-color: #000000; | |
| color: #dbe0f4; | |
| text-align: center; | |
| margin: 20px; | |
| padding: 10px; | |
| } | |
| .portfolio-container { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| position: relative; | |
| } | |
| .portfolio-title { | |
| font-size: 60px; | |
| margin-top: 20px; | |
| font-family: 'DM Serif Display', serif; | |
| position: relative; | |
| transition: opacity 0, 3s; | |
| } | |
| @keyframes slideFromLeft { | |
| from { | |
| left: -100%; | |
| } | |
| to { | |
| left: 172px; | |
| } | |
| } | |
| @keyframes slideFromRight { | |
| from { | |
| right: -100%; | |
| } | |
| to { | |
| right: 165px; | |
| } | |
| } | |
| .caio { | |
| color: #dbe0f4; | |
| position: absolute; | |
| top: -368px; | |
| left: 182px; | |
| font-style: italic; | |
| animation: slideFromLeft 1s forwards | |
| } | |
| .vitor { | |
| color: #dbe0f4; | |
| position: absolute; | |
| bottom: -12px; | |
| right: 180px; | |
| font-style: italic; | |
| animation: slideFromRight 1s forwards | |
| } | |
| .caio::before { | |
| content: "CAIO"; | |
| position: absolute; | |
| width: 100%; | |
| height: 0px; | |
| background-color: #dbe0f4; | |
| animation: trailFromLeft 1s forwards; | |
| } | |
| .vitor::before { | |
| content: "VITOR"; | |
| position: absolute; | |
| width: 100%; | |
| height: 0px; | |
| background-color: #dbe0f4; | |
| animation: trailFromRight 1s forwards; | |
| } | |
| @keyframes trailFromLeft { | |
| from { | |
| width: 30%; | |
| left: 0%; | |
| background-color: #dbe0f4; | |
| box-shadow: 0 20 50px 5px rgba(219, 224, 244, 0.5); | |
| } | |
| to { | |
| width: 100%; | |
| left: 0; | |
| background-color: #dbe0f4; | |
| box-shadow: 0 20 50px 50px rgba(219, 224, 244, 0.5); | |
| } | |
| } | |
| @keyframes trailFromRight { | |
| from { | |
| width: 30%; | |
| right: 0%; | |
| background-color: #dbe0f4; | |
| box-shadow: 0 20 50px 5px rgba(219, 224, 244, 0.5); | |
| } | |
| to { | |
| width: 100%; | |
| right: 0; | |
| background-color: #dbe0f4; | |
| box-shadow: 0 20 50px 5px rgba(219, 224, 244, 0.5); | |
| } | |
| } | |
| .portfolio-title:hover { | |
| opacity: 0.7; | |
| } | |
| .social-media { | |
| font-size: 18px; | |
| } | |
| /* .folder-container { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-top: 0px; | |
| } | |
| .folder { | |
| flex-basis: 45%; | |
| cursor: pointer; | |
| transition: transform 0.2s; | |
| position: relative; | |
| } */ | |
| .folder-container { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); /* Isso cria uma grade com 2 colunas */ | |
| gap: 20px; /* Espaçamento entre os itens */ | |
| } | |
| .folder { | |
| position: relative; | |
| overflow: hidden; /* Isso garante que o overlay não se estenda fora da imagem */ | |
| } | |
| .folder:hover { | |
| transform: scale(1); | |
| } | |
| .folder.left p { | |
| position: absolute; | |
| top: 10px; | |
| left: 0; | |
| right: 0; | |
| font-size: 30px; | |
| text-align: center; | |
| margin: 0; | |
| padding: 0; | |
| color: #1d1a19 | |
| } | |
| .folder.right p { | |
| position: absolute; | |
| top: 10px; | |
| left: 0; | |
| right: 0; | |
| font-size: 30px; | |
| text-align: center; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| opacity: 0; | |
| transition: opacity 0.3s; | |
| pointer-events: none; | |
| } | |
| .overlay-text { | |
| color: #fff; | |
| font-size: 20px; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .folder:hover .overlay { | |
| opacity: 1; | |
| } | |
| .social-media a { | |
| color: #dbe0f4; | |
| text-decoration: none; | |
| margin: 0 10px; | |
| } | |
| </style> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'DM Serif Display', serif; | |
| } | |
| </style> | |
| <script> | |
| const files = [ | |
| "20230817_143311.jpg", | |
| "F5tPg6FWMAA0DzA.jpeg", | |
| "F5tPg6FWMAA0DzA.jpeg", | |
| "F5tPg6FWMAA0DzA.jpeg", | |
| "F5tPg6FWMAA0DzA.jpeg", | |
| "P1050259 (2) (1).jpg" | |
| // ... adicione todos os nomes de arquivos aqui | |
| ]; | |
| document.addEventListener("DOMContentLoaded", function() { | |
| const folderContainer = document.querySelector('.folder-container'); | |
| files.forEach(file => { | |
| const folderDiv = document.createElement('div'); | |
| folderDiv.classList.add('folder'); | |
| const anchor = document.createElement('a'); | |
| anchor.href = "pagina_art.html"; | |
| const img = document.createElement('img'); | |
| img.src = `pics/${file}`; | |
| img.alt = "Descrição da imagem"; // você pode melhorar a descrição se souber algo sobre a imagem | |
| img.height = 500; | |
| img.width = 500; | |
| anchor.appendChild(img); | |
| folderDiv.appendChild(anchor); | |
| const p = document.createElement('p'); | |
| p.textContent = `${file}`; // ajuste conforme a necessidade | |
| folderDiv.appendChild(p); | |
| const overlayDiv = document.createElement('div'); | |
| overlayDiv.classList.add('overlay'); | |
| const overlayText = document.createElement('p'); | |
| overlayText.classList.add('overlay-text'); | |
| overlayText.textContent = "Clique para ver mais"; | |
| overlayDiv.appendChild(overlayText); | |
| folderDiv.appendChild(overlayDiv); | |
| folderContainer.appendChild(folderDiv); | |
| }); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <div class="portfolio-container"> | |
| <img src="pics/novo ME.jpg" alt="Imagem Centralizada" width="300" height="300"> | |
| <h1 class="portfolio-title"> | |
| <span class="caio">CAIO</span> | |
| <span class="vitor">VITOR</span> | |
| </h1> | |
| <div class="social-media"> | |
| <a href="#">Facebook</a> | | |
| <a href="#">Twitter</a> | | |
| <a href="#">Instagram</a> | |
| </div> | |
| </div> | |
| <div class="folder-container"> | |
| </div> | |
| </body> | |
| <footer> | |
| <p>@ Developed by Caio</p> | |
| </footer> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment