|
1 | 1 | <!DOCTYPE html> |
| 2 | + |
2 | 3 | <html lang="fr"> |
3 | 4 | <head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <title>Compagnon</title> |
| 5 | +<meta charset="UTF-8"> |
| 6 | +<title>CompagnonIcons</title> |
| 7 | + |
| 8 | +<style> |
| 9 | +* { |
| 10 | + margin: 0; |
| 11 | + padding: 0; |
| 12 | + box-sizing: border-box; |
| 13 | +} |
| 14 | + |
| 15 | +body { |
| 16 | + font-family: Arial, sans-serif; |
| 17 | + height: 100vh; |
| 18 | + background: linear-gradient(135deg, #4f46e5, #9333ea); |
| 19 | + display: flex; |
| 20 | + flex-direction: column; |
| 21 | + align-items: center; |
| 22 | + justify-content: center; |
| 23 | + color: white; |
| 24 | +} |
| 25 | + |
| 26 | +/* Titre */ |
| 27 | +h1 { |
| 28 | + font-size: 3em; |
| 29 | + margin-bottom: 40px; |
| 30 | + padding: 15px 30px; |
| 31 | + border-radius: 20px; |
| 32 | + background: rgba(255,255,255,0.1); |
| 33 | + backdrop-filter: blur(10px); |
| 34 | +} |
| 35 | + |
| 36 | +/* Grid */ |
| 37 | +.grid { |
| 38 | + display: flex; |
| 39 | + gap: 30px; |
| 40 | +} |
| 41 | + |
| 42 | +/* Carrés */ |
| 43 | +.card { |
| 44 | + width: 140px; |
| 45 | + height: 140px; |
| 46 | + border-radius: 25px; |
| 47 | + background: rgba(255,255,255,0.1); |
| 48 | + backdrop-filter: blur(10px); |
| 49 | + display: flex; |
| 50 | + align-items: center; |
| 51 | + justify-content: center; |
| 52 | + cursor: pointer; |
| 53 | + transition: 0.25s; |
| 54 | +} |
6 | 55 |
|
7 | | - <!-- Icônes --> |
8 | | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"> |
| 56 | +.card:hover { |
| 57 | + transform: scale(1.1); |
| 58 | +} |
| 59 | + |
| 60 | +/* Images */ |
| 61 | +.card img { |
| 62 | + width: 70%; |
| 63 | + height: 70%; |
| 64 | + object-fit: contain; |
| 65 | +} |
| 66 | + |
| 67 | +/* Popup */ |
| 68 | +.popup { |
| 69 | + position: fixed; |
| 70 | + bottom: 20px; |
| 71 | + background: rgba(0,0,0,0.7); |
| 72 | + padding: 10px 20px; |
| 73 | + border-radius: 10px; |
| 74 | + opacity: 0; |
| 75 | + transition: 0.3s; |
| 76 | +} |
| 77 | + |
| 78 | +.popup.show { |
| 79 | + opacity: 1; |
| 80 | +} |
| 81 | +</style> |
9 | 82 |
|
10 | 83 | </head> |
| 84 | + |
11 | 85 | <body> |
12 | 86 |
|
13 | | - <h1>Compagnon</h1> |
14 | | - <p>Ton assistant scolaire intelligent</p> |
| 87 | +<h1>Compagnon</h1> |
| 88 | + |
| 89 | +<div class="grid"> |
| 90 | + |
| 91 | + <div class="card" onclick="copyText('images/note.png')"> |
| 92 | + <img src="https://cdn-icons-png.flaticon.com/512/2921/2921222.png"> |
| 93 | + </div> |
15 | 94 |
|
16 | | - <hr> |
| 95 | + <div class="card" onclick="copyText('images/user.png')"> |
| 96 | + <img src="https://cdn-icons-png.flaticon.com/512/1077/1077114.png"> |
| 97 | + </div> |
17 | 98 |
|
18 | | - <h2><i class="fas fa-book"></i> Notes</h2> |
19 | | - <p>Consulte tes notes facilement</p> |
| 99 | + <div class="card" onclick="copyText('images/settings.png')"> |
| 100 | + <img src="https://cdn-icons-png.flaticon.com/512/2099/2099058.png"> |
| 101 | + </div> |
20 | 102 |
|
21 | | - <h2><i class="fas fa-chart-line"></i> Moyennes</h2> |
22 | | - <p>Visualise ta progression</p> |
| 103 | +</div> |
23 | 104 |
|
24 | | - <h2><i class="fas fa-user"></i> Compte</h2> |
25 | | - <p>Gère ton profil</p> |
| 105 | +<div id="popup" class="popup">Copié !</div> |
26 | 106 |
|
27 | | - <h2><i class="fas fa-gear"></i> Paramètres</h2> |
28 | | - <p>Personnalise ton expérience</p> |
| 107 | +<script> |
| 108 | +function copyText(text) { |
| 109 | + navigator.clipboard.writeText(text); |
29 | 110 |
|
30 | | - <hr> |
| 111 | + const popup = document.getElementById("popup"); |
| 112 | + popup.classList.add("show"); |
31 | 113 |
|
32 | | - <button onclick="alert('Bientôt disponible !')">Accéder</button> |
| 114 | + setTimeout(() => { |
| 115 | + popup.classList.remove("show"); |
| 116 | + }, 1200); |
| 117 | +} |
| 118 | +</script> |
33 | 119 |
|
34 | 120 | </body> |
35 | 121 | </html> |
0 commit comments