Voici un exemple de base d'un site web pour une marketplace de cartes Pokémon en utilisant HTML et CSS. Ce code est statique (sans JavaScript ou backend) et peut être étendu selon vos besoins.
📁 Structure du projet
pokemon-marketplace/
├── index.html
├── style.css
🧾 index.html
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Marketplace de Cartes Pokémon</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- En-tête -->
<header>
<div class="logo">
<img src="https://upload.wikimedia.org/wikipedia/fr/0/0c/Pokémon_Logo.svg" alt="Pokémon Logo" />
<h1>Pokémon Market</h1>
</div>
<nav>
<ul>
<li><a href="#">Accueil</a></li>
<li><a href="#">Boutique</a></li>
<li><a href="#">À propos</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<!-- Section principale -->
<section class="hero">
<h2>Bienvenue dans le monde des cartes Pokémon !</h2>
<p>Découvrez des cartes rares, des versions limitées et bien plus encore.</p>
<a href="#" class="btn">Voir la collection</a>
</section>
<!-- Liste des produits -->
<section class="products">
<h2>Cartes Pokémon Disponibles</h2>
<div class="grid">
<!-- Carte 1 -->
<div class="card">
<img src="https://images.unsplash.com/photo-1593642537540-5b938e221d3f?auto=format&fit=crop&w=400&q=80" alt="Pokémon Charizard" />
<h3>Charizard</h3>
<p>35,00€</p>
<button>Ajouter au panier</button>
</div>
<!-- Carte 2 -->
<div class="card">
<img src="https://images.unsplash.com/photo-1593642537540-5b938e221d3f?auto=format&fit=crop&w=400&q=80" alt="Pokémon Pikachu" />
<h3>Pikachu</h3>
<p>28,00€</p>
<button>Ajouter au panier</button>
</div>
<!-- Carte 3 -->
<div class="card">
<img src="https://images.unsplash.com/photo-1593642537540-5b938e221d3f?auto=format&fit=crop&w=400&q=80" alt="Pokémon Bulbizarre" />
<h3>Bulbizarre</h3>
<p>32,00€</p>
<button>Ajouter au panier</button>
</div>
</div>
</section>
<!-- Pied de page -->
<footer>
<p>© 2023 Pokémon Market. Tous droits réservés.</p>
<div class="social">
<a href="#">Facebook</a> | <a href="#">Instagram</a> | <a href="#">Twitter</a>
</div>
</footer>
</body>
</html>
🎨 style.css
/* Réinitialisation des styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: #f5f5f5;
color: #333;
}
/* En-tête */
header {
background-color: #ff5722;
color: white;
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 40px;
margin-right: 10px;
}
nav ul {
list-style: none;
display: flex;
gap: 20px;
}
nav a {
color: white;
text-decoration: none;
font-weight: bold;
}
/* Section principale */
.hero {
background-color: #ffffff;
padding: 60px 40px;
text-align: center;
color: #333;
}
.hero h2 {
font-size: 2.5em;
margin-bottom: 10px;
}
.hero p {
font-size: 1.2em;
margin-bottom: 20px;
}
.btn {
background-color: #ff5722;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
}
.btn:hover {
background-color: #e64a19;
}
/* Produits */
.products {
padding: 40px 40px;
max-width: 1200px;
margin: auto;
}
.products h2 {
text-align: center;
margin-bottom: 30px;
font-size: 2em;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.2s;
}
.card:hover {
transform: translateY(-5px);
}
.card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.card h3 {
padding: 10px;
font-size: 1.2em;
text-align: center;
}
.card p {
padding: 0 10px 10px;
text-align: center;
color: #ff5722;
font-weight: bold;
}
.card button {
width: 100%;
background-color: #ff5722;
color: white;
border: none;
padding: 10px;
font-size: 1em;
cursor: pointer;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.card button:hover {
background-color: #e64a19;
}
/* Pied de page */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
margin-top: 40px;
}
.social a {
color: #ff5722;
margin: 0 10px;
text-decoration: none;
}
/* Réglage pour mobile */
@media (max-width: 600px) {
nav ul {
flex-direction: column;
gap: 10px;
}
}
📝 Notes
- Images : Les images sont des placeholders (de Unsplash). Remplacez-les par des images réelles de cartes Pokémon.
- Couleurs : Utilisez des thèmes Pokémon comme le rouge (#ff5722), le bleu, etc.
- Ajouts possibles : Ajoutez des fonctionnalités avec JavaScript (panier, filtres, etc.) ou un backend (PHP, Node.js).
- Responsivité : Le site est mobile-friendly grâce à
grid-template-columns: repeat(auto-fit, minmax(...)).
Souhaitez-vous que je vous aide à ajouter des fonctionnalités comme un panier ou une recherche ? 🎮