mach9243 commited on
Commit
0eb7b2d
verified
1 Parent(s): a0f2873

Modifie ce site pour qu'il recherche le jour de la semaine actuel - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +92 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Jour Ok
3
- emoji: 馃悽
4
  colorFrom: green
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: jour-ok
3
+ emoji: 馃惓
4
  colorFrom: green
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,92 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Quel jour sommes-nous ?</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes float {
11
+ 0%, 100% { transform: translateY(0); }
12
+ 50% { transform: translateY(-10px); }
13
+ }
14
+
15
+ .floating-icon {
16
+ animation: float 3s ease-in-out infinite;
17
+ }
18
+
19
+ .day-card {
20
+ transition: all 0.3s ease;
21
+ }
22
+
23
+ .day-card:hover {
24
+ transform: translateY(-5px);
25
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
26
+ }
27
+
28
+ .theme-toggle {
29
+ transition: all 0.3s ease;
30
+ }
31
+
32
+ body.dark {
33
+ background-color: #1a202c;
34
+ color: #e2e8f0;
35
+ }
36
+
37
+ body.dark .day-card {
38
+ background-color: #2d3748;
39
+ color: #e2e8f0;
40
+ }
41
+
42
+ body.dark .bg-indigo-100 {
43
+ background-color: #2d3748;
44
+ }
45
+ </style>
46
+ </head>
47
+ <body class="bg-indigo-100 min-h-screen font-sans antialiased">
48
+ <div class="container mx-auto px-4 py-8">
49
+ <!-- Header -->
50
+ <header class="flex justify-between items-center mb-12">
51
+ <h1 class="text-3xl md:text-4xl font-bold text-indigo-700 dark:text-indigo-300">
52
+ <i class="far fa-calendar-alt mr-2"></i> Quel jour sommes-nous ?
53
+ </h1>
54
+ <button id="themeToggle" class="theme-toggle p-2 rounded-full">
55
+ <i class="fas fa-moon"></i>
56
+ </button>
57
+ </header>
58
+
59
+ <!-- Jour actuel -->
60
+ <div class="text-center mt-16">
61
+ <h2 class="text-xl mb-4 dark:text-gray-300">Aujourd'hui nous sommes :</h2>
62
+ <div id="currentDay" class="text-6xl font-bold text-indigo-600 dark:text-indigo-300 mb-4"></div>
63
+ <div id="currentDate" class="text-xl text-gray-600 dark:text-gray-400"></div>
64
+ </div>
65
+ </div>
66
+
67
+ <script>
68
+ const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'];
69
+ const months = [
70
+ 'janvier', 'f茅vrier', 'mars', 'avril', 'mai', 'juin',
71
+ 'juillet', 'ao没t', 'septembre', 'octobre', 'novembre', 'd茅cembre'
72
+ ];
73
+
74
+ function updateDate() {
75
+ const now = new Date();
76
+ document.getElementById('currentDay').textContent = days[now.getDay()];
77
+ document.getElementById('currentDate').textContent =
78
+ `${now.getDate()} ${months[now.getMonth()]} ${now.getFullYear()}`;
79
+ }
80
+
81
+ updateDate();
82
+
83
+ // Th猫me sombre/clair
84
+ const themeToggle = document.getElementById('themeToggle');
85
+ themeToggle.addEventListener('click', () => {
86
+ document.body.classList.toggle('dark');
87
+ themeToggle.querySelector('i').classList.toggle('fa-moon');
88
+ themeToggle.querySelector('i').classList.toggle('fa-sun');
89
+ });
90
+ </script>
91
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=mach9243/jour-ok" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
92
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Modifie ce site pour qu'il recherche le jour de la semaine actuel