Skip to content

Commit 1ab236e

Browse files
committed
feat: Add 'Submit Your Art' button to header
1 parent 924162b commit 1ab236e

2 files changed

Lines changed: 32 additions & 7 deletions

File tree

index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,22 @@ <h1>Animation Nation</h1>
2929
<button id="clear-btn">&times;</button>
3030
</div>
3131
</div>
32-
</div>
32+
<!-- contribution -->
33+
<a href="./CONTRIBUTING.md" id="contribute-btn" target="_blank">
34+
<i class="fas fa-plus-circle"></i> Soumettre votre Œuvre
35+
</a>
36+
</div>
3337
</div>
3438

3539
<div class="card-container">
3640
<ul class="flex" id="cards">
37-
<!-- Content is generated dynamically -->
38-
<!-- Do not add your card here -->
39-
</ul>
41+
</ul>
4042
</div>
4143

4244
<div class="go-to-top">
4345
<span>&uarr;</span>
44-
<!-- Use an upward arrow character -->
45-
</div>
46+
</div>
4647

4748
<script src="./public/includes.js"></script>
4849
</body>
49-
</html>
50+
</html>

public/styles.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,28 @@ ul {
289289
width: 100%;
290290
text-align: center;
291291
padding: 50px 0;
292+
}
293+
294+
/* contribution */
295+
#contribute-btn {
296+
display: inline-block;
297+
padding: 10px 20px;
298+
margin-top: 25px; /* Sépare le bouton du champ de recherche */
299+
background-color: #007bff; /* Bleu classique */
300+
color: white;
301+
text-decoration: none;
302+
border-radius: 5px;
303+
font-weight: bold;
304+
font-size: 1.1em;
305+
transition: background-color 0.3s ease;
306+
/* Assurez-vous que cela s'aligne bien avec les autres éléments du header */
307+
text-align: center;
308+
}
309+
310+
#contribute-btn:hover {
311+
background-color: #0056b3; /* Bleu plus foncé au survol */
312+
}
313+
314+
#contribute-btn i {
315+
margin-right: 8px; /* Espace entre l'icône et le texte */
292316
}

0 commit comments

Comments
 (0)