feat: guide — bouton Jouer (retour au jeu)
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 35s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 35s
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import { useNavigate } from 'react-router-dom';
|
||||||
import type { Monster, Item, Recipe } from '../api/types';
|
import type { Monster, Item, Recipe } from '../api/types';
|
||||||
import { Swords, Shield, Map as MapIcon, Hammer, ShoppingBag, BookOpen, Sparkles, Search } from 'lucide-react';
|
import { Swords, Shield, Map as MapIcon, Hammer, ShoppingBag, BookOpen, Sparkles, Search, Gamepad2 } from 'lucide-react';
|
||||||
import { useGuideData } from '../hooks/useGuideData';
|
import { useGuideData } from '../hooks/useGuideData';
|
||||||
|
|
||||||
// ── Constants ──
|
// ── Constants ──
|
||||||
@@ -411,17 +412,31 @@ export function GuidePage() {
|
|||||||
const [tab, setTab] = useState('start');
|
const [tab, setTab] = useState('start');
|
||||||
const [search, setSearch] = useState('');
|
const [search, setSearch] = useState('');
|
||||||
const { materials, filteredMonsters, filteredItems, filteredRecipes, q } = useGuideData(search);
|
const { materials, filteredMonsters, filteredItems, filteredRecipes, q } = useGuideData(search);
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ maxWidth: 900, margin: '0 auto', padding: '2rem 1rem' }}>
|
<div style={{ maxWidth: 900, margin: '0 auto', padding: '2rem 1rem' }}>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div style={{ textAlign: 'center', marginBottom: '1.5rem' }}>
|
<div style={{ textAlign: 'center', marginBottom: '1.5rem', position: 'relative' }}>
|
||||||
<h1 style={{ color: '#f4c94e', fontSize: 28, margin: '0 0 0.25rem', fontWeight: 800 }}>
|
<h1 style={{ color: '#f4c94e', fontSize: 28, margin: '0 0 0.25rem', fontWeight: 800 }}>
|
||||||
📖 Guide du Têtard
|
📖 Guide du Têtard
|
||||||
</h1>
|
</h1>
|
||||||
<p style={{ color: '#6b7a99', fontSize: 13, margin: 0 }}>
|
<p style={{ color: '#6b7a99', fontSize: 13, margin: 0 }}>
|
||||||
Tout ce qu'il faut savoir pour survivre dans le monde de TetaRdPG
|
Tout ce qu'il faut savoir pour survivre dans le monde de TetaRdPG
|
||||||
</p>
|
</p>
|
||||||
|
<button
|
||||||
|
onClick={() => navigate('/dashboard')}
|
||||||
|
style={{
|
||||||
|
position: 'absolute', right: 0, top: '50%', transform: 'translateY(-50%)',
|
||||||
|
display: 'flex', alignItems: 'center', gap: 6,
|
||||||
|
padding: '8px 14px', borderRadius: 8, border: '1px solid #2a3448',
|
||||||
|
background: '#1e2535', color: '#f4c94e', fontSize: 12,
|
||||||
|
fontWeight: 600, cursor: 'pointer', transition: 'all 0.15s',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Gamepad2 size={14} />
|
||||||
|
Jouer
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Search */}
|
{/* Search */}
|
||||||
|
|||||||
Reference in New Issue
Block a user