Dumped maoremobile.yt

This commit is contained in:
Kevin Bataille
2025-10-11 13:53:31 +02:00
commit d7cc2e23f4
54 changed files with 2680 additions and 0 deletions

View File

@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Site.Title }} - {{ .Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
header {
background: linear-gradient(135deg, #007bff, #0056b3);
color: white;
padding: 1rem 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
font-weight: bold;
}
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: background-color 0.3s;
}
nav a:hover {
background-color: rgba(255,255,255,0.1);
}
.language-switcher {
display: flex;
gap: 0.5rem;
}
.language-switcher a {
padding: 0.3rem 0.8rem;
font-size: 0.9rem;
border: 1px solid rgba(255,255,255,0.3);
border-radius: 3px;
}
.language-switcher a.active {
background-color: rgba(255,255,255,0.2);
border-color: white;
}
main {
min-height: calc(100vh - 200px);
padding: 2rem 0;
}
.hero {
background: white;
padding: 3rem 0;
margin-bottom: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #007bff;
}
.hero p {
font-size: 1.2rem;
color: #666;
}
.services {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 2rem 0;
}
.service-card {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.service-card h3 {
color: #007bff;
margin-bottom: 1rem;
font-size: 1.3rem;
}
.service-card ul {
list-style: none;
padding-left: 0;
}
.service-card li {
padding: 0.3rem 0;
border-bottom: 1px solid #eee;
}
.service-card li:before {
content: "✓ ";
color: #28a745;
font-weight: bold;
}
.contact-section {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-top: 2rem;
}
.contact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 1rem;
}
.contact-item h4 {
color: #007bff;
margin-bottom: 0.5rem;
}
footer {
background: #333;
color: white;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
}
@media (max-width: 768px) {
.header-content {
flex-direction: column;
gap: 1rem;
}
nav ul {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.hero h1 {
font-size: 2rem;
}
.services {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
{{ partial "header.html" . }}
<main>
<div class="container">
{{ block "main" . }}{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,45 @@
{{ define "main" }}
<div class="hero">
<h1>{{ .Title }}</h1>
<p>{{ .Site.Params.description }}</p>
</div>
{{ .Content }}
{{ if .Sections }}
<section id="services" class="services">
{{ range .Sections }}
<div class="service-card">
<h3>{{ .Title }}</h3>
{{ .Content }}
</div>
{{ end }}
</section>
{{ end }}
{{ if eq .Kind "page" }}
<section id="contact" class="contact-section">
<h2>{{ i18n "contact" }}</h2>
<div class="contact-grid">
<div class="contact-item">
<h4>{{ i18n "phone" }}</h4>
<p>+262 XXX XXX XXX</p>
</div>
<div class="contact-item">
<h4>{{ i18n "email" }}</h4>
<p>contact@maoremobile.yt</p>
</div>
<div class="contact-item">
<h4>{{ i18n "address" }}</h4>
<p>Mayotte, 97600</p>
</div>
<div class="contact-item">
<h4>{{ i18n "hours" }}</h4>
<p>{{ i18n "weekdays" }}: 8:00 - 18:00<br>
{{ i18n "saturday" }}: 9:00 - 13:00<br>
{{ i18n "sunday" }}: {{ i18n "closed" }}</p>
</div>
</div>
</section>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,10 @@
{{ define "main" }}
<div class="hero">
<h1>{{ .Title }}</h1>
<p>{{ .Params.subtitle }}</p>
</div>
<div class="content">
{{ .Content }}
</div>
{{ end }}

View File

@@ -0,0 +1,5 @@
<footer>
<div class="container">
<p>&copy; {{ now.Year }} {{ .Site.Title }}. {{ i18n "allRightsReserved" }}</p>
</div>
</footer>

View File

@@ -0,0 +1,22 @@
<header>
<div class="container">
<div class="header-content">
<div class="logo">{{ .Site.Title }}</div>
<nav>
<ul>
<li><a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}/">Accueil</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<div class="language-switcher">
{{ if .IsTranslated }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
{{ end }}
<a href="{{ .Permalink }}" class="active">{{ .Site.Language.LanguageName }}</a>
</div>
</div>
</div>
</header>