cinqcinqdev-seo 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/assets/admin-tw.css +1 -1
- package/dist/runtime/components/admin-cms/ContentCalendar.vue +7 -7
- package/dist/runtime/components/admin-cms/DynamicRenderer.vue +2 -2
- package/dist/runtime/components/admin-cms/Navbar.vue +5 -5
- package/dist/runtime/components/admin-cms/Sidebar.vue +8 -8
- package/dist/runtime/pages/admin/account.vue +31 -31
- package/dist/runtime/pages/admin/branding.vue +14 -14
- package/dist/runtime/pages/admin/calendar.vue +1 -1
- package/dist/runtime/pages/admin/content-library.vue +16 -16
- package/dist/runtime/pages/admin/editor/[id].vue +114 -114
- package/dist/runtime/pages/admin/index.vue +20 -20
- package/dist/runtime/pages/admin/pages/[type].vue +54 -54
- package/dist/runtime/pages/admin/personas/[id].vue +9 -9
- package/dist/runtime/pages/admin/personas/index.vue +6 -6
- package/dist/runtime/pages/admin/products.vue +7 -7
- package/dist/runtime/pages/admin/seo.vue +36 -36
- package/dist/runtime/pages/admin/setup.vue +6 -6
- package/dist/runtime/pages/admin/strategies/[id].vue +7 -7
- package/dist/runtime/pages/admin/strategies/index.vue +7 -7
- package/dist/runtime/pages/admin/todos.vue +8 -8
- package/package.json +1 -1
|
@@ -54,26 +54,26 @@ const getMeta = (page, key) => {
|
|
|
54
54
|
|
|
55
55
|
<!-- Header -->
|
|
56
56
|
<div class="mb-8">
|
|
57
|
-
<h1 class="text-2xl font-black text-
|
|
58
|
-
<p class="text-sm text-
|
|
57
|
+
<h1 class="text-2xl font-black text-gray-900">SEO</h1>
|
|
58
|
+
<p class="text-sm text-gray-400 mt-1">Aperçu de l'optimisation SEO de toutes vos pages.</p>
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
61
|
<!-- Stats -->
|
|
62
62
|
<div class="grid grid-cols-4 gap-4 mb-10">
|
|
63
|
-
<div class="bg-
|
|
64
|
-
<p class="text-[10px] font-black uppercase tracking-widest text-
|
|
65
|
-
<p class="text-3xl font-black text-
|
|
63
|
+
<div class="bg-white rounded-2xl p-5 border border-gray-100 shadow-sm">
|
|
64
|
+
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">Total pages</p>
|
|
65
|
+
<p class="text-3xl font-black text-gray-900">{{ stats.total }}</p>
|
|
66
66
|
</div>
|
|
67
|
-
<div class="bg-
|
|
68
|
-
<p class="text-[10px] font-black uppercase tracking-widest text-
|
|
67
|
+
<div class="bg-white rounded-2xl p-5 border border-gray-100 shadow-sm">
|
|
68
|
+
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">Optimisées</p>
|
|
69
69
|
<p class="text-3xl font-black text-green-600">{{ stats.optimized }}</p>
|
|
70
70
|
</div>
|
|
71
|
-
<div class="bg-
|
|
72
|
-
<p class="text-[10px] font-black uppercase tracking-widest text-
|
|
71
|
+
<div class="bg-white rounded-2xl p-5 border border-gray-100 shadow-sm">
|
|
72
|
+
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">Partielles</p>
|
|
73
73
|
<p class="text-3xl font-black text-amber-500">{{ stats.partial }}</p>
|
|
74
74
|
</div>
|
|
75
|
-
<div class="bg-
|
|
76
|
-
<p class="text-[10px] font-black uppercase tracking-widest text-
|
|
75
|
+
<div class="bg-white rounded-2xl p-5 border border-gray-100 shadow-sm">
|
|
76
|
+
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">Sans SEO</p>
|
|
77
77
|
<p class="text-3xl font-black text-red-500">{{ stats.missing }}</p>
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
@@ -81,67 +81,67 @@ const getMeta = (page, key) => {
|
|
|
81
81
|
<!-- Filters -->
|
|
82
82
|
<div class="flex items-center gap-3 mb-5">
|
|
83
83
|
<div class="flex-1 relative">
|
|
84
|
-
<svg class="absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-
|
|
84
|
+
<svg class="absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
85
85
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
|
|
86
86
|
</svg>
|
|
87
87
|
<input v-model="search" type="text" placeholder="Rechercher une page…"
|
|
88
|
-
class="w-full pl-9 pr-4 py-2 text-sm border border-
|
|
88
|
+
class="w-full pl-9 pr-4 py-2 text-sm border border-gray-200 rounded-xl outline-none focus:ring-2 focus:ring-[#3d35ff] transition bg-white" />
|
|
89
89
|
</div>
|
|
90
|
-
<select v-model="filterType" class="text-sm border border-
|
|
90
|
+
<select v-model="filterType" class="text-sm border border-gray-200 rounded-xl px-3 py-2 outline-none focus:ring-2 focus:ring-[#3d35ff] bg-white">
|
|
91
91
|
<option value="">Tous les types</option>
|
|
92
92
|
<option v-for="t in pageTypes" :key="t.id" :value="t.id">{{ t.label }}</option>
|
|
93
93
|
</select>
|
|
94
|
-
<div class="flex rounded-xl border border-
|
|
94
|
+
<div class="flex rounded-xl border border-gray-200 overflow-hidden bg-white text-xs font-bold">
|
|
95
95
|
<button @click="filterSeo = 'all'"
|
|
96
|
-
:class="['px-3 py-2 transition', filterSeo === 'all' ? 'bg-
|
|
96
|
+
:class="['px-3 py-2 transition', filterSeo === 'all' ? 'bg-[#3d35ff] text-white' : 'text-gray-400 hover:text-gray-700']">
|
|
97
97
|
Tous
|
|
98
98
|
</button>
|
|
99
99
|
<button @click="filterSeo = 'optimized'"
|
|
100
|
-
:class="['px-3 py-2 transition border-l border-
|
|
100
|
+
:class="['px-3 py-2 transition border-l border-gray-200', filterSeo === 'optimized' ? 'bg-green-500 text-white' : 'text-gray-400 hover:text-gray-700']">
|
|
101
101
|
Optimisés
|
|
102
102
|
</button>
|
|
103
103
|
<button @click="filterSeo = 'missing'"
|
|
104
|
-
:class="['px-3 py-2 transition border-l border-
|
|
104
|
+
:class="['px-3 py-2 transition border-l border-gray-200', filterSeo === 'missing' ? 'bg-red-500 text-white' : 'text-gray-400 hover:text-gray-700']">
|
|
105
105
|
Incomplets
|
|
106
106
|
</button>
|
|
107
107
|
</div>
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
<!-- Table -->
|
|
111
|
-
<div class="bg-
|
|
111
|
+
<div class="bg-white border border-gray-100 rounded-2xl shadow-sm overflow-hidden">
|
|
112
112
|
<div v-if="pending" class="py-24 text-center">
|
|
113
|
-
<p class="text-sm text-
|
|
113
|
+
<p class="text-sm text-gray-400">Chargement…</p>
|
|
114
114
|
</div>
|
|
115
115
|
<div v-else-if="!filteredPages.length" class="py-24 text-center">
|
|
116
|
-
<svg class="w-10 h-10 mx-auto text-
|
|
116
|
+
<svg class="w-10 h-10 mx-auto text-gray-200 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
117
117
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
118
118
|
</svg>
|
|
119
|
-
<p class="text-sm font-semibold text-
|
|
119
|
+
<p class="text-sm font-semibold text-gray-500">Aucune page trouvée</p>
|
|
120
120
|
</div>
|
|
121
121
|
<table v-else class="w-full text-left">
|
|
122
122
|
<thead>
|
|
123
|
-
<tr class="border-b border-
|
|
124
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
125
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
126
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
127
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
128
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
129
|
-
<th class="px-6 py-3.5 text-[10px] font-black text-
|
|
123
|
+
<tr class="border-b border-gray-100">
|
|
124
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest">Page</th>
|
|
125
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest">Type</th>
|
|
126
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest">Meta titre</th>
|
|
127
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest">Meta description</th>
|
|
128
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest">Score</th>
|
|
129
|
+
<th class="px-6 py-3.5 text-[10px] font-black text-gray-400 uppercase tracking-widest text-right">Action</th>
|
|
130
130
|
</tr>
|
|
131
131
|
</thead>
|
|
132
132
|
<tbody class="divide-y divide-gray-50">
|
|
133
|
-
<tr v-for="page in filteredPages" :key="page.id" class="group hover:bg-
|
|
133
|
+
<tr v-for="page in filteredPages" :key="page.id" class="group hover:bg-gray-50/60 transition-colors">
|
|
134
134
|
<td class="px-6 py-4">
|
|
135
|
-
<div class="font-bold text-
|
|
136
|
-
<div class="text-[11px] text-
|
|
135
|
+
<div class="font-bold text-gray-900 text-sm">{{ page.title }}</div>
|
|
136
|
+
<div class="text-[11px] text-[#3d35ff] font-mono mt-0.5 opacity-70">/{{ page.slug }}</div>
|
|
137
137
|
</td>
|
|
138
138
|
<td class="px-6 py-4">
|
|
139
|
-
<span class="text-[11px] font-semibold text-
|
|
139
|
+
<span class="text-[11px] font-semibold text-gray-500 bg-gray-100 px-2 py-0.5 rounded-md">
|
|
140
140
|
{{ typeLabel(page.type) }}
|
|
141
141
|
</span>
|
|
142
142
|
</td>
|
|
143
143
|
<td class="px-6 py-4 max-w-[180px]">
|
|
144
|
-
<span v-if="getMeta(page, 'meta_title')" class="text-[11px] text-
|
|
144
|
+
<span v-if="getMeta(page, 'meta_title')" class="text-[11px] text-gray-700 truncate block" :title="getMeta(page, 'meta_title')">
|
|
145
145
|
{{ getMeta(page, "meta_title") }}
|
|
146
146
|
</span>
|
|
147
147
|
<span v-else class="inline-flex items-center gap-1 text-[11px] font-semibold text-red-400">
|
|
@@ -149,7 +149,7 @@ const getMeta = (page, key) => {
|
|
|
149
149
|
</span>
|
|
150
150
|
</td>
|
|
151
151
|
<td class="px-6 py-4 max-w-[200px]">
|
|
152
|
-
<span v-if="getMeta(page, 'meta_description')" class="text-[11px] text-
|
|
152
|
+
<span v-if="getMeta(page, 'meta_description')" class="text-[11px] text-gray-500 truncate block" :title="getMeta(page, 'meta_description')">
|
|
153
153
|
{{ getMeta(page, "meta_description") }}
|
|
154
154
|
</span>
|
|
155
155
|
<span v-else class="inline-flex items-center gap-1 text-[11px] font-semibold text-red-400">
|
|
@@ -172,7 +172,7 @@ const getMeta = (page, key) => {
|
|
|
172
172
|
</td>
|
|
173
173
|
<td class="px-6 py-4 text-right">
|
|
174
174
|
<NuxtLink :to="`${basePath}/editor/${page.id}`"
|
|
175
|
-
class="px-3 py-1.5 rounded-lg text-[11px] font-bold bg-
|
|
175
|
+
class="px-3 py-1.5 rounded-lg text-[11px] font-bold bg-gray-100 text-gray-600 hover:bg-[#3d35ff] hover:text-white transition-all">
|
|
176
176
|
Éditer
|
|
177
177
|
</NuxtLink>
|
|
178
178
|
</td>
|
|
@@ -62,7 +62,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
62
62
|
<div v-else class="space-y-6">
|
|
63
63
|
|
|
64
64
|
<!-- ── AI Context ───────────────────────────────────────────────── -->
|
|
65
|
-
<div class="bg-
|
|
65
|
+
<div class="bg-white border border-slate-200 rounded-2xl p-8">
|
|
66
66
|
<div class="flex items-center gap-3 mb-2">
|
|
67
67
|
<span class="text-xl">✨</span>
|
|
68
68
|
<h2 class="text-base font-bold text-slate-900">Contexte IA</h2>
|
|
@@ -80,7 +80,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
82
|
<!-- ── Component Defaults ──────────────────────────────────────── -->
|
|
83
|
-
<div class="bg-
|
|
83
|
+
<div class="bg-white border border-slate-200 rounded-2xl p-8">
|
|
84
84
|
<div class="flex items-center gap-3 mb-2">
|
|
85
85
|
<span class="text-xl">🎨</span>
|
|
86
86
|
<h2 class="text-base font-bold text-slate-900">Préférences des Composants</h2>
|
|
@@ -114,7 +114,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
114
114
|
@click="setPreset(String(type), 'layout', opt.value)"
|
|
115
115
|
:class="[
|
|
116
116
|
'px-3 py-1.5 rounded-lg text-xs font-semibold border transition-all',
|
|
117
|
-
getPreset(String(type), 'layout', conf.defaultProps?.layout) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-
|
|
117
|
+
getPreset(String(type), 'layout', conf.defaultProps?.layout) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-white text-slate-600 border-slate-200 hover:border-slate-400'
|
|
118
118
|
]"
|
|
119
119
|
>
|
|
120
120
|
<span v-if="opt.icon" class="mr-1">{{ opt.icon }}</span>{{ opt.label }}
|
|
@@ -132,7 +132,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
132
132
|
@click="setPreset(String(type), 'animation', opt.value)"
|
|
133
133
|
:class="[
|
|
134
134
|
'px-3 py-1.5 rounded-lg text-xs font-semibold border transition-all',
|
|
135
|
-
getPreset(String(type), 'animation', conf.defaultProps?.animation) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-
|
|
135
|
+
getPreset(String(type), 'animation', conf.defaultProps?.animation) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-white text-slate-600 border-slate-200 hover:border-slate-400'
|
|
136
136
|
]"
|
|
137
137
|
>
|
|
138
138
|
<span v-if="opt.icon" class="mr-1">{{ opt.icon }}</span>{{ opt.label }}
|
|
@@ -151,7 +151,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
151
151
|
@click="setPreset(String(type), 'radius', opt.value)"
|
|
152
152
|
:class="[
|
|
153
153
|
'px-3 py-1.5 rounded-lg text-xs font-semibold border transition-all',
|
|
154
|
-
getPreset(String(type), 'radius', conf.defaultProps?.radius) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-
|
|
154
|
+
getPreset(String(type), 'radius', conf.defaultProps?.radius) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-white text-slate-600 border-slate-200 hover:border-slate-400'
|
|
155
155
|
]"
|
|
156
156
|
>
|
|
157
157
|
<span v-if="opt.icon" class="mr-1">{{ opt.icon }}</span>{{ opt.label }}
|
|
@@ -168,7 +168,7 @@ const hasStyleOptions = (conf) => styleFields.some((f) => conf.fields?.[f]?.opti
|
|
|
168
168
|
@click="setPreset(String(type), 'spacing', opt.value)"
|
|
169
169
|
:class="[
|
|
170
170
|
'px-3 py-1.5 rounded-lg text-xs font-semibold border transition-all',
|
|
171
|
-
getPreset(String(type), 'spacing', conf.defaultProps?.spacing) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-
|
|
171
|
+
getPreset(String(type), 'spacing', conf.defaultProps?.spacing) === opt.value ? 'bg-slate-900 text-white border-slate-900' : 'bg-white text-slate-600 border-slate-200 hover:border-slate-400'
|
|
172
172
|
]"
|
|
173
173
|
>
|
|
174
174
|
<span v-if="opt.icon" class="mr-1">{{ opt.icon }}</span>{{ opt.label }}
|
|
@@ -86,7 +86,7 @@ const contentStatusClass = {
|
|
|
86
86
|
|
|
87
87
|
<div v-else-if="strategy">
|
|
88
88
|
<!-- Header -->
|
|
89
|
-
<div class="bg-
|
|
89
|
+
<div class="bg-white rounded-3xl p-8 border border-slate-200 shadow-sm mb-6">
|
|
90
90
|
<div class="flex items-start justify-between">
|
|
91
91
|
<div class="flex-1">
|
|
92
92
|
<div class="flex items-center gap-3 mb-2">
|
|
@@ -116,7 +116,7 @@ const contentStatusClass = {
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<!-- Edit Form -->
|
|
119
|
-
<div v-if="editMode" class="bg-
|
|
119
|
+
<div v-if="editMode" class="bg-white rounded-3xl p-8 border border-slate-200 shadow-sm mb-6">
|
|
120
120
|
<div class="grid grid-cols-2 gap-6 mb-6">
|
|
121
121
|
<div>
|
|
122
122
|
<label class="block text-xs font-black uppercase text-slate-500 mb-2">Nom</label>
|
|
@@ -148,7 +148,7 @@ const contentStatusClass = {
|
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
150
|
<!-- Tabs -->
|
|
151
|
-
<div class="flex gap-2 bg-
|
|
151
|
+
<div class="flex gap-2 bg-white p-2 rounded-2xl border border-slate-200 shadow-sm mb-6 inline-flex">
|
|
152
152
|
<button v-for="tab in [{ v: 'overview', l: 'Apercu' }, { v: 'contents', l: 'Contenus' }, { v: 'personas', l: 'Personas' }]" :key="tab.v"
|
|
153
153
|
@click="activeTab = tab.v"
|
|
154
154
|
:class="[activeTab === tab.v ? 'bg-blue-600 text-white shadow-lg' : 'text-slate-600 hover:bg-slate-50']"
|
|
@@ -157,11 +157,11 @@ const contentStatusClass = {
|
|
|
157
157
|
|
|
158
158
|
<!-- Overview Tab -->
|
|
159
159
|
<div v-if="activeTab === 'overview'" class="grid grid-cols-2 gap-6">
|
|
160
|
-
<div class="bg-
|
|
160
|
+
<div class="bg-white rounded-2xl p-6 border border-slate-200 shadow-sm">
|
|
161
161
|
<h3 class="font-black text-slate-900 mb-4 flex items-center gap-2"><Icon name="mdi:target" class="text-blue-600" /> Objectif</h3>
|
|
162
162
|
<p class="text-slate-600 leading-relaxed">{{ strategy.objective || "Non defini." }}</p>
|
|
163
163
|
</div>
|
|
164
|
-
<div class="bg-
|
|
164
|
+
<div class="bg-white rounded-2xl p-6 border border-slate-200 shadow-sm">
|
|
165
165
|
<h3 class="font-black text-slate-900 mb-4">Statistiques</h3>
|
|
166
166
|
<div class="space-y-3">
|
|
167
167
|
<div class="flex justify-between items-center">
|
|
@@ -182,7 +182,7 @@ const contentStatusClass = {
|
|
|
182
182
|
|
|
183
183
|
<!-- Contents Tab -->
|
|
184
184
|
<div v-if="activeTab === 'contents'" class="space-y-4">
|
|
185
|
-
<div class="bg-
|
|
185
|
+
<div class="bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
|
|
186
186
|
<div class="p-6 border-b border-slate-100">
|
|
187
187
|
<h3 class="font-black text-slate-900">Contenus de la Strategie</h3>
|
|
188
188
|
</div>
|
|
@@ -206,7 +206,7 @@ const contentStatusClass = {
|
|
|
206
206
|
|
|
207
207
|
<!-- Personas Tab -->
|
|
208
208
|
<div v-if="activeTab === 'personas'" class="space-y-4">
|
|
209
|
-
<div class="bg-
|
|
209
|
+
<div class="bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
|
|
210
210
|
<div class="p-6 border-b border-slate-100">
|
|
211
211
|
<h3 class="font-black text-slate-900">Personas Cibles</h3>
|
|
212
212
|
</div>
|
|
@@ -105,7 +105,7 @@ const handleDelete = async () => {
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-10">
|
|
108
|
-
<div v-for="stat in stats" :key="stat.label" class="bg-
|
|
108
|
+
<div v-for="stat in stats" :key="stat.label" class="bg-white p-6 rounded-[2rem] border border-slate-100 shadow-sm">
|
|
109
109
|
<div :class="[stat.bg, 'w-10 h-10 rounded-xl flex items-center justify-center mb-4']">
|
|
110
110
|
<Icon :name="stat.icon" :class="[stat.color, 'text-xl']" />
|
|
111
111
|
</div>
|
|
@@ -115,7 +115,7 @@ const handleDelete = async () => {
|
|
|
115
115
|
</div>
|
|
116
116
|
|
|
117
117
|
<div class="space-y-6">
|
|
118
|
-
<div v-for="strategy in strategies" :key="strategy.id" class="bg-
|
|
118
|
+
<div v-for="strategy in strategies" :key="strategy.id" class="bg-white rounded-[2rem] border border-slate-200 shadow-sm overflow-hidden hover:shadow-xl transition-all">
|
|
119
119
|
<div class="p-6 border-b border-slate-100">
|
|
120
120
|
<div class="flex items-start justify-between mb-4">
|
|
121
121
|
<div class="flex-1">
|
|
@@ -145,18 +145,18 @@ const handleDelete = async () => {
|
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
147
|
<div class="grid grid-cols-2 gap-px bg-slate-100">
|
|
148
|
-
<div class="bg-
|
|
148
|
+
<div class="bg-white p-4 text-center">
|
|
149
149
|
<p class="text-lg font-bold text-blue-600">{{ strategyContents[strategy.id]?.length || 0 }}</p>
|
|
150
150
|
<p class="text-xs font-medium text-slate-400">Contenus</p>
|
|
151
151
|
</div>
|
|
152
|
-
<div class="bg-
|
|
152
|
+
<div class="bg-white p-4 text-center">
|
|
153
153
|
<p class="text-lg font-bold text-blue-600">{{ strategyPersonas[strategy.id]?.length || 0 }}</p>
|
|
154
154
|
<p class="text-xs font-medium text-slate-400">Personas</p>
|
|
155
155
|
</div>
|
|
156
156
|
</div>
|
|
157
157
|
</div>
|
|
158
158
|
|
|
159
|
-
<div v-if="!loading && strategies.length === 0" class="text-center py-20 bg-
|
|
159
|
+
<div v-if="!loading && strategies.length === 0" class="text-center py-20 bg-white rounded-3xl border border-slate-200">
|
|
160
160
|
<Icon name="mdi:strategy" class="text-6xl text-slate-200 mb-4" />
|
|
161
161
|
<p class="text-slate-400 font-medium mb-4">Aucune strategie. Creez-en une pour commencer!</p>
|
|
162
162
|
<button @click="openCreate" class="px-6 py-3 bg-blue-600 text-white rounded-xl font-bold">Creer ma premiere strategie</button>
|
|
@@ -166,10 +166,10 @@ const handleDelete = async () => {
|
|
|
166
166
|
|
|
167
167
|
<Teleport to="body">
|
|
168
168
|
<div v-if="showModal" class="fixed inset-0 bg-slate-900/40 backdrop-blur-md z-50 flex items-center justify-center p-6" @click.self="closeModal">
|
|
169
|
-
<div class="bg-
|
|
169
|
+
<div class="bg-white rounded-[3rem] max-w-3xl w-full max-h-[90vh] overflow-hidden shadow-2xl">
|
|
170
170
|
<div class="bg-blue-600 p-8 text-white flex justify-between items-center">
|
|
171
171
|
<h2 class="text-2xl font-bold">{{ editingStrategy ? "Modifier Strategie" : "Nouvelle Strategie" }}</h2>
|
|
172
|
-
<button @click="closeModal" class="w-12 h-12 bg-
|
|
172
|
+
<button @click="closeModal" class="w-12 h-12 bg-white/10 hover:bg-white/20 rounded-2xl flex items-center justify-center">
|
|
173
173
|
<Icon name="mdi:close" class="text-2xl" />
|
|
174
174
|
</button>
|
|
175
175
|
</div>
|
|
@@ -66,8 +66,8 @@ const formatDueDate = (d) => {
|
|
|
66
66
|
};
|
|
67
67
|
const getPriorityBorder = (priority, overdue) => {
|
|
68
68
|
if (overdue) return "border-l-red-600 bg-red-50";
|
|
69
|
-
if (priority === "Haute") return "border-l-red-500 bg-
|
|
70
|
-
if (priority === "Moyenne") return "border-l-amber-500 bg-
|
|
69
|
+
if (priority === "Haute") return "border-l-red-500 bg-white";
|
|
70
|
+
if (priority === "Moyenne") return "border-l-amber-500 bg-white";
|
|
71
71
|
return "border-l-slate-400 bg-slate-50";
|
|
72
72
|
};
|
|
73
73
|
const getLabelColor = (label) => {
|
|
@@ -143,7 +143,7 @@ const handleDelete = async (todo) => {
|
|
|
143
143
|
</div>
|
|
144
144
|
|
|
145
145
|
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-10">
|
|
146
|
-
<div v-for="stat in stats" :key="stat.label" class="bg-
|
|
146
|
+
<div v-for="stat in stats" :key="stat.label" class="bg-white rounded-2xl p-6 border border-slate-100 shadow-sm">
|
|
147
147
|
<div :class="[stat.bg, 'w-10 h-10 rounded-xl flex items-center justify-center mb-4']">
|
|
148
148
|
<Icon :name="stat.icon" :class="[stat.color, 'text-xl']" />
|
|
149
149
|
</div>
|
|
@@ -167,7 +167,7 @@ const handleDelete = async (todo) => {
|
|
|
167
167
|
<div v-for="todo in group" :key="todo.id"
|
|
168
168
|
:class="['rounded-xl p-3 shadow-sm hover:shadow-md transition-all group border-l-4', getPriorityBorder(todo.priority, isOverdue(todo))]">
|
|
169
169
|
<div class="flex items-center gap-3">
|
|
170
|
-
<button @click="toggleTodo(todo)" :class="['w-5 h-5 rounded-lg border-2 transition-all flex-shrink-0', todo.completed ? 'bg-emerald-500 border-emerald-500' : 'bg-
|
|
170
|
+
<button @click="toggleTodo(todo)" :class="['w-5 h-5 rounded-lg border-2 transition-all flex-shrink-0', todo.completed ? 'bg-emerald-500 border-emerald-500' : 'bg-white border-slate-200']">
|
|
171
171
|
<Icon v-if="todo.completed" name="mdi:check-bold" class="text-white text-xs m-auto" />
|
|
172
172
|
</button>
|
|
173
173
|
<div class="flex-1 min-w-0">
|
|
@@ -197,7 +197,7 @@ const handleDelete = async (todo) => {
|
|
|
197
197
|
<div class="space-y-2">
|
|
198
198
|
<div v-for="todo in todosWithoutDate" :key="todo.id" class="bg-slate-50 rounded-xl p-3 shadow-sm hover:shadow-md transition-all group border-l-4 border-l-slate-300">
|
|
199
199
|
<div class="flex items-center gap-3">
|
|
200
|
-
<button @click="toggleTodo(todo)" :class="['w-5 h-5 rounded-lg border-2 transition-all flex-shrink-0', todo.completed ? 'bg-emerald-500 border-emerald-500' : 'bg-
|
|
200
|
+
<button @click="toggleTodo(todo)" :class="['w-5 h-5 rounded-lg border-2 transition-all flex-shrink-0', todo.completed ? 'bg-emerald-500 border-emerald-500' : 'bg-white border-slate-200']">
|
|
201
201
|
<Icon v-if="todo.completed" name="mdi:check-bold" class="text-white text-xs m-auto" />
|
|
202
202
|
</button>
|
|
203
203
|
<div class="flex-1 min-w-0">
|
|
@@ -213,7 +213,7 @@ const handleDelete = async (todo) => {
|
|
|
213
213
|
</div>
|
|
214
214
|
</div>
|
|
215
215
|
|
|
216
|
-
<div v-if="todos.length === 0" class="text-center py-20 bg-
|
|
216
|
+
<div v-if="todos.length === 0" class="text-center py-20 bg-white rounded-3xl border-2 border-dashed border-slate-200">
|
|
217
217
|
<Icon name="mdi:clipboard-text-outline" class="text-6xl text-slate-200 mb-4" />
|
|
218
218
|
<p class="text-xl font-bold text-slate-800">Aucun todo pour le moment</p>
|
|
219
219
|
<button @click="openCreate" class="text-blue-600 font-black hover:underline mt-2">+ Creer votre premiere tache</button>
|
|
@@ -223,7 +223,7 @@ const handleDelete = async (todo) => {
|
|
|
223
223
|
|
|
224
224
|
<Teleport to="body">
|
|
225
225
|
<div v-if="showModal" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/40 backdrop-blur-md">
|
|
226
|
-
<div class="bg-
|
|
226
|
+
<div class="bg-white rounded-[2rem] w-full max-w-lg overflow-hidden shadow-2xl">
|
|
227
227
|
<div class="p-5 border-b border-slate-100 bg-slate-50 flex justify-between items-center">
|
|
228
228
|
<h2 class="text-xl font-black text-slate-900">{{ editingTodo ? "Modifier" : "Nouveau Todo" }}</h2>
|
|
229
229
|
<button @click="closeModal" class="text-slate-400 hover:text-slate-600"><Icon name="mdi:close" class="text-xl" /></button>
|
|
@@ -237,7 +237,7 @@ const handleDelete = async (todo) => {
|
|
|
237
237
|
</div>
|
|
238
238
|
<div class="grid grid-cols-3 gap-1.5 p-1 bg-slate-100 rounded-xl">
|
|
239
239
|
<button v-for="p in ['Basse', 'Moyenne', 'Haute']" :key="p" @click="formData.priority = p"
|
|
240
|
-
:class="formData.priority === p ? 'bg-
|
|
240
|
+
:class="formData.priority === p ? 'bg-white shadow-sm text-slate-900' : 'text-slate-400'"
|
|
241
241
|
class="py-2 rounded-lg font-black text-[10px] uppercase transition-all">{{ p }}</button>
|
|
242
242
|
</div>
|
|
243
243
|
<button @click="saveTodo" :disabled="saving" class="w-full bg-slate-900 text-white font-black py-3 rounded-xl hover:bg-slate-800 transition-all text-sm">
|