|
3 | 3 | <html lang="fr"> |
4 | 4 | <head> |
5 | 5 | <meta charset="UTF-8"> |
6 | | -<title>CompagnonIcons</title> |
| 6 | +<title>Compagnon Icons</title> |
7 | 7 |
|
8 | 8 | <style> |
9 | | -* { |
10 | | - margin: 0; |
11 | | - padding: 0; |
12 | | - box-sizing: border-box; |
13 | | -} |
14 | | - |
15 | 9 | body { |
| 10 | + margin: 0; |
16 | 11 | 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; |
| 12 | + background: #0f172a; |
23 | 13 | color: white; |
24 | 14 | } |
25 | 15 |
|
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); |
| 16 | +/* Header simple */ |
| 17 | +.header { |
| 18 | + padding: 20px 30px; |
34 | 19 | } |
35 | 20 |
|
36 | | -/* Grid */ |
| 21 | +.header h1 { |
| 22 | + margin: 0; |
| 23 | + font-size: 28px; |
| 24 | +} |
| 25 | + |
| 26 | +.header p { |
| 27 | + margin-top: 5px; |
| 28 | + opacity: 0.6; |
| 29 | +} |
| 30 | + |
| 31 | +/* Barre recherche */ |
| 32 | +.search { |
| 33 | + margin: 20px 30px; |
| 34 | +} |
| 35 | + |
| 36 | +.search input { |
| 37 | + width: 100%; |
| 38 | + padding: 12px; |
| 39 | + border-radius: 10px; |
| 40 | + border: none; |
| 41 | + outline: none; |
| 42 | + background: #1e293b; |
| 43 | + color: white; |
| 44 | +} |
| 45 | + |
| 46 | +/* Grid icônes */ |
37 | 47 | .grid { |
38 | | - display: flex; |
39 | | - gap: 30px; |
| 48 | + display: grid; |
| 49 | + grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); |
| 50 | + gap: 15px; |
| 51 | + padding: 20px 30px; |
40 | 52 | } |
41 | 53 |
|
42 | | -/* Carrés */ |
| 54 | +/* Carte icône */ |
43 | 55 | .card { |
44 | | - width: 140px; |
45 | | - height: 140px; |
46 | | - border-radius: 25px; |
47 | | - background: rgba(255,255,255,0.1); |
48 | | - backdrop-filter: blur(10px); |
| 56 | + background: #1e293b; |
| 57 | + border-radius: 12px; |
| 58 | + height: 70px; |
49 | 59 | display: flex; |
50 | 60 | align-items: center; |
51 | 61 | justify-content: center; |
52 | 62 | cursor: pointer; |
53 | | - transition: 0.25s; |
| 63 | + transition: 0.2s; |
54 | 64 | } |
55 | 65 |
|
56 | 66 | .card:hover { |
57 | | - transform: scale(1.1); |
| 67 | + background: #334155; |
58 | 68 | } |
59 | 69 |
|
60 | | -/* Images */ |
| 70 | +/* Image */ |
61 | 71 | .card img { |
62 | | - width: 70%; |
63 | | - height: 70%; |
64 | | - object-fit: contain; |
| 72 | + width: 28px; |
| 73 | + height: 28px; |
65 | 74 | } |
66 | 75 |
|
67 | 76 | /* Popup */ |
68 | 77 | .popup { |
69 | 78 | position: fixed; |
70 | | - bottom: 20px; |
71 | | - background: rgba(0,0,0,0.7); |
72 | | - padding: 10px 20px; |
73 | | - border-radius: 10px; |
| 79 | + bottom: 15px; |
| 80 | + left: 50%; |
| 81 | + transform: translateX(-50%); |
| 82 | + background: #1e293b; |
| 83 | + padding: 8px 16px; |
| 84 | + border-radius: 8px; |
74 | 85 | opacity: 0; |
75 | | - transition: 0.3s; |
| 86 | + transition: 0.2s; |
76 | 87 | } |
77 | 88 |
|
78 | 89 | .popup.show { |
|
84 | 95 |
|
85 | 96 | <body> |
86 | 97 |
|
87 | | -<h1>Compagnon</h1> |
| 98 | +<div class="header"> |
| 99 | + <h1>Compagnon Icons</h1> |
| 100 | + <p>Icônes simples et rapides</p> |
| 101 | +</div> |
| 102 | + |
| 103 | +<div class="search"> |
| 104 | + <input placeholder="Rechercher une icône..."> |
| 105 | +</div> |
88 | 106 |
|
89 | 107 | <div class="grid"> |
90 | 108 |
|
91 | | - <div class="card" onclick="copyText('images/note.png')"> |
| 109 | + <div class="card" onclick="copy('note')"> |
92 | 110 | <img src="https://cdn-icons-png.flaticon.com/512/2921/2921222.png"> |
93 | 111 | </div> |
94 | 112 |
|
95 | | - <div class="card" onclick="copyText('images/user.png')"> |
| 113 | + <div class="card" onclick="copy('user')"> |
96 | 114 | <img src="https://cdn-icons-png.flaticon.com/512/1077/1077114.png"> |
97 | 115 | </div> |
98 | 116 |
|
99 | | - <div class="card" onclick="copyText('images/settings.png')"> |
| 117 | + <div class="card" onclick="copy('settings')"> |
100 | 118 | <img src="https://cdn-icons-png.flaticon.com/512/2099/2099058.png"> |
101 | 119 | </div> |
102 | 120 |
|
| 121 | + <div class="card" onclick="copy('search')"> |
| 122 | + <img src="https://cdn-icons-png.flaticon.com/512/622/622669.png"> |
| 123 | + </div> |
| 124 | + |
| 125 | + <div class="card" onclick="copy('check')"> |
| 126 | + <img src="https://cdn-icons-png.flaticon.com/512/190/190411.png"> |
| 127 | + </div> |
| 128 | + |
| 129 | + <div class="card" onclick="copy('close')"> |
| 130 | + <img src="https://cdn-icons-png.flaticon.com/512/1828/1828778.png"> |
| 131 | + </div> |
| 132 | + |
103 | 133 | </div> |
104 | 134 |
|
105 | 135 | <div id="popup" class="popup">Copié !</div> |
106 | 136 |
|
107 | 137 | <script> |
108 | | -function copyText(text) { |
109 | | - navigator.clipboard.writeText(text); |
| 138 | +function copy(name) { |
| 139 | + navigator.clipboard.writeText(name); |
110 | 140 |
|
111 | 141 | const popup = document.getElementById("popup"); |
112 | 142 | popup.classList.add("show"); |
113 | 143 |
|
114 | 144 | setTimeout(() => { |
115 | 145 | popup.classList.remove("show"); |
116 | | - }, 1200); |
| 146 | + }, 1000); |
117 | 147 | } |
118 | 148 | </script> |
119 | 149 |
|
|
0 commit comments