Skip to content

Commit

Permalink
Primeiro commit do projeto
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Z33 committed Aug 30, 2024
0 parents commit e0d0304
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 0 deletions.
Binary file added README.md
Binary file not shown.
Binary file added assets/0.jpeg
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 assets/1.jpeg
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 assets/2.jpeg
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 assets/3.jpeg
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 assets/4.jpeg
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 assets/5.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-3">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simulação de Conscientização</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<button id="mainButton" class="creative-button">Clique aqui</button>
<div id="buttonContainer" class="hidden">
<button class="creative-button" onclick="openUrl(1)">URL 1</button>
<button class="creative-button" onclick="openUrl(2)">URL 2</button>
<button class="creative-button" onclick="openUrl(3)">URL 3</button>
<button class="creative-button" onclick="openUrl(4)">URL 4</button>
<button class="creative-button" onclick="openUrl(5)">URL 5</button>
</div>
<button id="downloadButton" class="creative-button hidden" onclick="downloadAndOpenPPT()">Baixar e Abrir PPT</button>
</div>

<script src="script.js"></script>
</body>
</html>

27 changes: 27 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
document.getElementById('mainButton').addEventListener('click', function() {
document.getElementById('buttonContainer').classList.remove('hidden');
document.getElementById('downloadButton').classList.remove('hidden');
});

function openUrl(buttonNumber) {
const urls = [
"https://link-para-imagem1-no-github",
"https://link-para-imagem2-no-github",
"https://link-para-imagem3-no-github",
"https://link-para-imagem4-no-github",
"https://link-para-imagem5-no-github"
];

window.open(urls[buttonNumber - 1], '_blank');
}

function downloadAndOpenPPT() {
const pptUrl = "https://link-para-o-arquivo-pptm-no-github";
const link = document.createElement('a');
link.href = pptUrl;
link.download = 'Simulacao.pptm';
link.click();
setTimeout(() => {
window.open(pptUrl);
}, 1000);
}
35 changes: 35 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: radial-gradient(circle, #2c3e50, #000000);
}

.container {
text-align: center;
}

.creative-button {
padding: 20px;
margin: 10px;
border: none;
font-size: 16px;
color: white;
background: linear-gradient(135deg, #f39c12, #e74c3c);
cursor: pointer;
border-radius: 50px;
transition: transform 0.3s, background 0.3s;
}

.creative-button:hover {
transform: scale(1.1);
background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.hidden {
display: none;
}

0 comments on commit e0d0304

Please sign in to comment.