register.html.twig 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ t.title }} - Hockey CMS{% endblock %}
  3. {% block content %}
  4. <style>
  5. /* Κρύβουμε sidebar και κατηγορίες */
  6. aside, .categories-sidebar, .sidebar, [class*="category"] {
  7. display: none !important;
  8. }
  9. .main-content, .content, main {
  10. width: 100% !important;
  11. grid-column: 1 / -1 !important;
  12. max-width: 100% !important;
  13. }
  14. </style>
  15. <div style="display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 40px 20px; width: 100%;">
  16. <div style="background: var(--panel-bg, #1e293b); padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 1px solid var(--border-color, #334155); width: 100%; max-width: 420px; box-sizing: border-box;">
  17. <h2 style="margin-top: 0; color: var(--primary, #f97316); text-align: center; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 0.5px;">
  18. {{ t.title }}
  19. </h2>
  20. {{ message | raw }}
  21. <form method="POST" action="register.php">
  22. <!-- Όνομα και Επίθετο το ένα κάτω από το άλλο -->
  23. <div style="margin-bottom: 15px;">
  24. <input type="text" name="reg_first_name" placeholder="{{ t.fname }}" required style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  25. </div>
  26. <div style="margin-bottom: 15px;">
  27. <input type="text" name="reg_last_name" placeholder="{{ t.lname }}" required style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  28. </div>
  29. <div style="margin-bottom: 15px;">
  30. <input type="text" name="reg_username" placeholder="{{ t.username }}" required style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  31. </div>
  32. <div style="margin-bottom: 15px;">
  33. <input type="email" name="reg_email" placeholder="{{ t.email }}" required style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  34. </div>
  35. <div style="margin-bottom: 15px;">
  36. <input type="tel" name="reg_phone" placeholder="{{ t.phone }}" style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  37. </div>
  38. <div style="margin-bottom: 15px;">
  39. <input type="password" name="reg_password" placeholder="{{ t.password }}" required style="width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;">
  40. </div>
  41. <!-- CAPTCHA Box -->
  42. <div style="background: rgba(0,0,0,0.2); padding: 15px; border-radius: 6px; margin-bottom: 20px; border: 1px dashed var(--border-color, #334155); text-align: center;">
  43. <label style="font-weight: 600; color: var(--text-muted, #94a3b8); display: block; margin-bottom: 10px; font-size: 14px;">
  44. {{ t.captcha_label }} <strong style="color: var(--text-main, #f8fafc); font-size: 18px;">{{ captcha_text }}</strong> ? *
  45. </label>
  46. <input type="number" name="reg_captcha" placeholder="{{ t.captcha_ph }}" required style="width: 120px; padding: 10px; background: #0f172a; border: 1px solid var(--border-color, #334155); color: var(--text-main, #f8fafc); border-radius: 6px; text-align: center; font-size: 16px; font-weight: bold; outline: none;">
  47. </div>
  48. <button type="submit" style="width: 100%; padding: 14px; background: var(--primary, #f97316); color: white; border: none; border-radius: 6px; font-weight: 800; cursor: pointer; font-size: 14px; text-transform: uppercase; transition: 0.2s; margin-bottom: 15px;">
  49. {{ t.btn_register }}
  50. </button>
  51. </form>
  52. <div style="display: flex; align-items: center; text-align: center; margin: 20px 0; color: var(--text-muted, #94a3b8); font-size: 13px; font-weight: 600; text-transform: uppercase;">
  53. <span style="flex: 1; border-bottom: 1px solid var(--border-color, #334155); margin-right: .5em;"></span> OR <span style="flex: 1; border-bottom: 1px solid var(--border-color, #334155); margin-left: .5em;"></span>
  54. </div>
  55. <!-- Εγγραφή με Google -->
  56. <a href="google_auth.php" style="display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; background: #ffffff; color: #3c4043; border: 1px solid #dadce0; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; box-sizing: border-box; margin-bottom: 15px;">
  57. <img src="https://upload.wikimedia.org/wikipedia/commons/c/c1/Google_%22G%22_logo.svg" alt="Google Logo" style="width: 18px; height: 18px; margin-right: 10px;">
  58. {{ t.btn_google }}
  59. </a>
  60. <div style="text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted, #94a3b8);">
  61. {{ t.already_have }} <a href="login.php" style="color: var(--primary, #f97316); text-decoration: none; font-weight: 700;">{{ t.login }}</a>
  62. </div>
  63. <!-- Εναλλαγή Γλώσσας -->
  64. <div style="text-align: center; margin-top: 25px;">
  65. <a href="?lang=el" style="text-decoration: none; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; background: {% if current_lang == 'el' %}var(--primary, #f97316){% else %}rgba(255,255,255,0.05){% endif %}; color: {% if current_lang == 'el' %}white{% else %}var(--text-muted, #94a3b8){% endif %}; border: 1px solid var(--border-color, #334155); margin: 0 4px;">GR</a>
  66. <a href="?lang=en" style="text-decoration: none; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; background: {% if current_lang == 'en' %}var(--primary, #f97316){% else %}rgba(255,255,255,0.05){% endif %}; color: {% if current_lang == 'en' %}white{% else %}var(--text-muted, #94a3b8){% endif %}; border: 1px solid var(--border-color, #334155); margin: 0 4px;">EN</a>
  67. </div>
  68. </div>
  69. </div>
  70. {% endblock %}