Bilquar commited on
Commit
b43c03a
·
verified ·
1 Parent(s): 3643a0c

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +133 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Livresmaroc
3
- emoji: 🏃
4
- colorFrom: pink
5
- colorTo: blue
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: livresmaroc
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
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,133 @@
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>Trésors du Maroc - Livres Anciens</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
+ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');
11
+
12
+ body {
13
+ font-family: 'Montserrat', sans-serif;
14
+ background-color: #f8f5f0;
15
+ }
16
+
17
+ .title-font {
18
+ font-family: 'Playfair Display', serif;
19
+ }
20
+
21
+ .book-card:hover .book-overlay {
22
+ opacity: 1;
23
+ }
24
+
25
+ .book-overlay {
26
+ transition: all 0.3s ease;
27
+ }
28
+
29
+ .hero-pattern {
30
+ background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80');
31
+ background-size: cover;
32
+ background-position: center;
33
+ background-blend-mode: overlay;
34
+ }
35
+
36
+ .nav-link::after {
37
+ content: '';
38
+ display: block;
39
+ width: 0;
40
+ height: 2px;
41
+ background: #8b5a2b;
42
+ transition: width .3s;
43
+ }
44
+
45
+ .nav-link:hover::after {
46
+ width: 100%;
47
+ }
48
+
49
+ .cart-count {
50
+ top: -8px;
51
+ right: -8px;
52
+ }
53
+ </style>
54
+ </head>
55
+ <body class="text-gray-800">
56
+ <!-- Header -->
57
+ <header class="bg-white shadow-sm">
58
+ <div class="container mx-auto px-4 py-4 flex justify-between items-center">
59
+ <div class="flex items-center space-x-2">
60
+ <i class="fas fa-book-open text-2xl text-amber-800"></i>
61
+ <h1 class="title-font text-2xl font-bold text-amber-900">Trésors du Maroc</h1>
62
+ </div>
63
+
64
+ <nav class="hidden md:flex space-x-8">
65
+ <a href="#" class="nav-link font-medium text-gray-700 hover:text-amber-800">Accueil</a>
66
+ <a href="#" class="nav-link font-medium text-gray-700 hover:text-amber-800">Collection</a>
67
+ <a href="#" class="nav-link font-medium text-gray-700 hover:text-amber-800">Raretés</a>
68
+ <a href="#" class="nav-link font-medium text-gray-700 hover:text-amber-800">Histoire</a>
69
+ <a href="#" class="nav-link font-medium text-gray-700 hover:text-amber-800">Contact</a>
70
+ </nav>
71
+
72
+ <div class="flex items-center space-x-4">
73
+ <div class="relative">
74
+ <button id="cart-btn" class="text-gray-700 hover:text-amber-800">
75
+ <i class="fas fa-shopping-cart text-xl"></i>
76
+ <span id="cart-count" class="cart-count absolute bg-amber-700 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
77
+ </button>
78
+ </div>
79
+ <button class="md:hidden text-gray-700">
80
+ <i class="fas fa-bars text-xl"></i>
81
+ </button>
82
+ </div>
83
+ </div>
84
+ </header>
85
+
86
+ <!-- Hero Section -->
87
+ <section class="hero-pattern bg-amber-900 bg-opacity-70 py-20">
88
+ <div class="container mx-auto px-4 text-center">
89
+ <h2 class="title-font text-4xl md:text-5xl font-bold text-white mb-6">Découvrez les Trésors Littéraires du Maroc</h2>
90
+ <p class="text-xl text-white max-w-2xl mx-auto mb-8">Une collection exclusive de livres anciens racontant l'histoire, la culture et les traditions du Royaume</p>
91
+ <button class="bg-amber-700 hover:bg-amber-800 text-white font-medium py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">
92
+ Explorer la Collection
93
+ </button>
94
+ </div>
95
+ </section>
96
+
97
+ <!-- Featured Books -->
98
+ <section class="py-16 bg-white">
99
+ <div class="container mx-auto px-4">
100
+ <div class="text-center mb-12">
101
+ <h2 class="title-font text-3xl font-bold text-amber-900 mb-4">Nos Raretés</h2>
102
+ <p class="max-w-2xl mx-auto text-gray-600">Des ouvrages uniques datant du 18ème au 20ème siècle, témoins de l'histoire riche du Maroc</p>
103
+ </div>
104
+
105
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
106
+ <!-- Book 1 -->
107
+ <div class="book-card bg-white rounded-lg shadow-md overflow-hidden relative group">
108
+ <div class="relative overflow-hidden h-64">
109
+ <img src="https://images.unsplash.com/photo-1544947950-fa07a98d237f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Livre ancien sur le Maroc" class="w-full h-full object-cover">
110
+ <div class="book-overlay absolute inset-0 bg-black bg-opacity-60 flex items-center justify-center opacity-0">
111
+ <button class="add-to-cart bg-amber-700 hover:bg-amber-800 text-white py-2 px-6 rounded-full transition" data-id="1">
112
+ Ajouter au panier
113
+ </button>
114
+ </div>
115
+ </div>
116
+ <div class="p-4">
117
+ <h3 class="title-font font-bold text-lg mb-1">Maroc Impérial</h3>
118
+ <p class="text-sm text-gray-500 mb-2">Édouard Michaux-Bellaire, 1912</p>
119
+ <div class="flex justify-between items-center">
120
+ <span class="font-bold text-amber-800">€450</span>
121
+ <span class="text-xs bg-amber-100 text-amber-800 px-2 py-1 rounded">Édition originale</span>
122
+ </div>
123
+ </div>
124
+ </div>
125
+
126
+ <!-- Book 2 -->
127
+ <div class="book-card bg-white rounded-lg shadow-md overflow-hidden relative group">
128
+ <div class="relative overflow-hidden h-64">
129
+ <img src="https://images.unsplash.com/photo-1589998059171-988d322dfe03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Livre ancien sur le Maroc" class="w-full h-full object-cover">
130
+ <div class="book-overlay absolute inset-0 bg-black bg-opacity-60 flex items-center justify-center opacity-0">
131
+ <button class="add-to-cart bg-amber-700 hover:bg-amber-800 text-white py-2 px-6 rounded-full transition" data-id="2">
132
+ Ajouter au panier
133
+ </html>