Composants Formulaire de connexion Playful_Sports_Login_Form

Playful_Sports_Login_Form

Un composant de formulaire de connexion ludique et joyeux avec des éléments arrondis et des couleurs de terre, conçu pour les applications de sport et de fitness. Il est entièrement réactif et prend en charge le mode sombre.

Aperçu

HTML Code

<div class="p-4 sm:p-6 md:p-8 min-h-screen flex items-center justify-center bg-green-100 dark:bg-stone-900 font-sans">
  <div class="w-full max-w-md p-6 sm:p-8 md:p-10 bg-white dark:bg-stone-800 rounded-3xl shadow-xl transform transition-all duration-300 hover:scale-[1.02] border border-green-200 dark:border-stone-700">
    <div class="flex justify-center mb-6 sm:mb-8">
      <img src="https://picsum.photos/100/100?random=1" alt="Sports Logo" class="rounded-full w-20 h-20 sm:w-24 sm:h-24 object-cover border-4 border-green-500 dark:border-green-600 shadow-md animate-bounce-slow">
    </div>
    <h2 class="text-center text-3xl sm:text-4xl font-extrabold text-green-800 dark:text-green-300 mb-4 sm:mb-6 leading-tight">
      Welcome Back, Athlete!
    </h2>
    <p class="text-center text-stone-600 dark:text-stone-400 mb-6 sm:mb-8 text-base sm:text-lg">
      Sign in to manage your team or track your fitness journey.
    </p>

    <form>
      <div class="mb-4 sm:mb-5">
        <label for="email" class="block text-stone-700 dark:text-stone-300 text-sm font-bold mb-2">
          Email Address
        </label>
        <input
          type="email"
          id="email"
          name="email"
          placeholder="[email protected]"
          class="shadow-sm appearance-none border border-green-300 dark:border-stone-700 rounded-xl w-full py-3 px-4 text-stone-700 dark:text-stone-200 leading-tight focus:outline-none focus:ring-4 focus:ring-green-200 dark:focus:ring-green-700 focus:border-transparent bg-green-50 dark:bg-stone-700 transition-all duration-200 placeholder:text-stone-400 dark:placeholder:text-stone-500"
          aria-label="Email Address"
        />
      </div>
      <div class="mb-6 sm:mb-7">
        <label for="password" class="block text-stone-700 dark:text-stone-300 text-sm font-bold mb-2">
          Password
        </label>
        <input
          type="password"
          id="password"
          name="password"
          placeholder="**********"
          class="shadow-sm appearance-none border border-green-300 dark:border-stone-700 rounded-xl w-full py-3 px-4 text-stone-700 dark:text-stone-200 leading-tight focus:outline-none focus:ring-4 focus:ring-green-200 dark:focus:ring-green-700 focus:border-transparent bg-green-50 dark:bg-stone-700 transition-all duration-200 placeholder:text-stone-400 dark:placeholder:text-stone-500"
          aria-label="Password"
        />
      </div>
      <div class="flex items-center justify-between mb-6 sm:mb-8">
        <a href="#" class="inline-block align-baseline font-bold text-sm text-green-600 dark:text-green-400 hover:text-green-800 dark:hover:text-green-300 transition-colors duration-200">
          Forgot Password?
        </a>
        <button
          type="submit"
          class="bg-green-500 hover:bg-green-600 dark:bg-green-600 dark:hover:bg-green-700 text-white font-bold py-3 px-6 rounded-full focus:outline-none focus:shadow-outline transform transition-all duration-200 hover:scale-105 active:scale-95 shadow-lg shadow-green-300/50 dark:shadow-green-900/50 flex items-center gap-2"
        >
          <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"></path>
          </svg>
          Sign In
        </button>
      </div>
      <p class="text-center text-stone-600 dark:text-stone-400 text-sm">
        Don't have an account? <a href="#" class="font-bold text-green-600 dark:text-green-400 hover:text-green-800 dark:hover:text-green-300 transition-colors duration-200">Sign Up</a>
      </p>
    </form>
  </div>
  <style>
    @keyframes bounce-slow {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    .animate-bounce-slow {
      animation: bounce-slow 3s infinite ease-in-out;
    }
  </style>
</div>

Composants associés

Composant du formulaire de connexion

Formulaire de connexion réactif avec conception matérielle, schéma de couleurs triadique et prise en charge du mode sombre à l’aide de Tailwind CSS.

Ouvrir

Formulaire de connexion Skeuomorphic

Un simple formulaire de connexion Skeuomorphic avec des couleurs triadiques à des fins de tableau de bord, avec un design réactif et une prise en charge du mode sombre à l’aide de Tailwind CSS.

Ouvrir

Composant du formulaire de connexion

Un composant de formulaire de connexion minimaliste conçu avec une palette de couleurs triadique adaptée à la présentation de portfolios avec prise en charge du mode sombre.

Ouvrir