home.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. /**
  3. * Vue de la page d'accueil
  4. */
  5. include __DIR__ . '/partials/header.php';
  6. ?>
  7. <main class="main-content">
  8. <div class="container-fluid">
  9. <div class="row">
  10. <div class="col-12">
  11. <!-- Zone de travail principale -->
  12. <div class="card">
  13. <div class="card-header">
  14. <h5 class="card-title mb-0">
  15. <i class="bi bi-pencil-square me-2"></i>
  16. Éditeur de carte
  17. </h5>
  18. </div>
  19. <div class="card-body">
  20. <!-- Zone indiquant qu'aucun projet n'est chargé -->
  21. <div class="editor-empty border d-flex align-items-center justify-content-center" style="width:100%; height:600px; background-color:#e9ecef;">
  22. <div class="text-center">
  23. <!-- Illustration SVG représentant une carte vide -->
  24. <svg role="img" aria-label="Illustration : cadriage avec point d'attention" width="200" height="140" viewBox="0 0 200 140" xmlns="http://www.w3.org/2000/svg" class="mx-auto d-block">
  25. <defs>
  26. <linearGradient id="g" x1="0" x2="1">
  27. <stop offset="0" stop-color="#f8f9fa"/>
  28. <stop offset="1" stop-color="#e9ecef"/>
  29. </linearGradient>
  30. </defs>
  31. <rect x="8" y="12" width="184" height="116" rx="8" fill="url(#g)" stroke="#ced4da" />
  32. <!-- Grid lines -->
  33. <g stroke="#adb5bd" stroke-width="1">
  34. <line x1="20" y1="20" x2="180" y2="20"/>
  35. <line x1="20" y1="40" x2="180" y2="40"/>
  36. <line x1="20" y1="60" x2="180" y2="60"/>
  37. <line x1="20" y1="80" x2="180" y2="80"/>
  38. <line x1="20" y1="100" x2="180" y2="100"/>
  39. <line x1="20" y1="120" x2="180" y2="120"/>
  40. <line x1="20" y1="20" x2="20" y2="120"/>
  41. <line x1="60" y1="20" x2="60" y2="120"/>
  42. <line x1="100" y1="20" x2="100" y2="120"/>
  43. <line x1="140" y1="20" x2="140" y2="120"/>
  44. <line x1="180" y1="20" x2="180" y2="120"/>
  45. </g>
  46. <!-- Point d'attention -->
  47. <rect x="95" y="55" width="10" height="10" fill="#dc3545" stroke="#b02a37" rx="2"/>
  48. <text x="100" y="50" text-anchor="middle" font-size="8" fill="#dc3545" font-weight="bold">!</text>
  49. </svg>
  50. <!-- Texte principal -->
  51. <h5 class="mt-3 mb-1">Aucun projet chargé</h5>
  52. <!-- Explication -->
  53. <p class="text-muted small mb-3">Créez un nouveau projet ou chargez-en un existant pour commencer à éditer une carte.</p>
  54. <!-- Actions rapides -->
  55. <div class="d-flex justify-content-center gap-2">
  56. <a href="/projects/new" class="btn btn-primary btn-sm">Nouveau projet</a>
  57. <a href="/projects" class="btn btn-outline-secondary btn-sm">Charger un projet</a>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <!-- Informations sur le projet -->
  64. <div class="row mt-4">
  65. <div class="col-md-4">
  66. <div class="card">
  67. <div class="card-body">
  68. <h6 class="card-title">
  69. <i class="bi bi-info-circle me-1"></i>
  70. Informations
  71. </h6>
  72. <p class="card-text small">
  73. <strong>Dimensions:</strong> 800x600 px<br>
  74. <strong>Calques:</strong> 1<br>
  75. <strong>Outil actif:</strong> Pinceau<br>
  76. <strong>Couleur:</strong> <span style="display: inline-block; width: 12px; height: 12px; background-color: #000000; border-radius: 2px;"></span> Noir
  77. </p>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="col-md-4">
  82. <div class="card">
  83. <div class="card-body">
  84. <h6 class="card-title">
  85. <i class="bi bi-clock-history me-1"></i>
  86. Historique
  87. </h6>
  88. <ul class="list-unstyled small">
  89. <li><i class="bi bi-dot me-1"></i>Carte créée</li>
  90. <li><i class="bi bi-dot me-1"></i>Calque ajouté</li>
  91. <li><i class="bi bi-dot me-1"></i>Outil sélectionné</li>
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="col-md-4">
  97. <div class="card">
  98. <div class="card-body">
  99. <h6 class="card-title">
  100. <i class="bi bi-star me-1"></i>
  101. Astuces
  102. </h6>
  103. <p class="card-text small">
  104. Utilisez Ctrl+Z pour annuler.<br>
  105. Cliquez-droit pour le menu contextuel.<br>
  106. Glissez-déposez des images pour les importer.
  107. </p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </main>
  116. <?php
  117. include __DIR__ . '/partials/footer.php';
  118. ?>