Open In App

Blaze UI Example Login

Blaze UI is a framework-free open source UI toolkit that uses JavaScript components to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. This framework allows us to use various of its styles and properties to make a website more user-friendly.

In this article, we will create the login form page using Blaze UI. The login page is used to proceed to any website, it may be used for authentication, setting credentials, managing data, etc.



Blaze UI Classes used:

Syntax:



<form class="o-container...">
    <header class="c-card...">
          <h2 class="c-heading...">
            ...
          </h2>
    </header>
    <div class="c-card__body">
        ...
    </div>
    <div class="o-form-element">
           ...
    </div>
    <div class="c-card__footer ...">
        <button type="..." class="c-button ...">
              ...
           </button>
      </div>
</form>

Example 1: The following code demonstrates the Blaze UI login form.




<!DOCTYPE html>
<html>
  
<head>
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <link rel="stylesheet" href=
</head>
  
<body>
    <form class="o-container o-container--xsmall c-card u-high">
        <header class="c-card__header">
            <h2 class="c-heading" style="color:green">
                GeeksforGeeks
                <div class="c-heading__sub">
                    Blaze UI Login Form Example
                </div>
            </h2>
        </header>
  
        <div class="c-card__body">
            <div class="o-form-element">
                <label class="c-label">
                    Name:
                    <input class="c-field" type="email" 
                        placeholder="Enter Name" />
                </label>
            </div>
            <div class="o-form-element">
                <label class="c-label">
                    Email:
                    <input class="c-field" type="email" 
                        placeholder="Enter e-mail" />
                </label>
            </div>
            <label class="o-form-element c-label">
                Password:
                <input class="c-field" type="password"
                    placeholder="Enter password" />
            </label>
            <label class="o-form-element c-label">
                Enter OTP:
                <input class="c-field" type="text"
                    placeholder="Enter OTP" />
            </label>
        </div>
        <div class="c-card__footer">
            <button type="button" 
                class="c-button c-button--success">
                Login
            </button>
        </div>
    </form>
</body>
  
</html>

Output:        

 

Example 2: The following code demonstrates the Blaze UI login form using the other classes.




<!DOCTYPE html>
<html>
  
<head>
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <link rel="stylesheet" href=
</head>
  
<body>
    <br />
    <form class="o-container">
        <header class="c-card__header">
            <h2 class="c-heading" style="color:green">
                GeeksforGeeks
                <div class="c-heading__sub">
                    Blaze UI Login Form Example
                </div>
            </h2>
        </header>
        <div class="c-card__body">
            <div class="o-form-element">
                <label class="c-label">
                    Name:
                    <input class="c-field" type="email"
                        placeholder="Enter Name" />
                </label>
            </div>
            <div class="o-form-element">
                <label class="c-label">
                    Email:
                    <input class="c-field" type="email"
                        placeholder="Enter e-mail" />
                    <div role="tooltip" class="c-hint">
                        The email used to register the account
                    </div>
                </label>
            </div>
            <label class="o-form-element c-label">
                Password:
                <input class="c-field" type="password" 
                    placeholder="Enter password" />
            </label>
            <label class="o-form-element c-label">
                Enter OTP:
                <input class="c-field" type="text" 
                    placeholder="Enter OTP" />
            </label>
        </div>
        <div class="c-card__footer">
            <button type="button" 
                class="c-button c-button--success">
                Login
            </button>
        </div>
    </form>
</body>
  
</html>

Output:         

 

Reference: https://www.blazeui.com/examples/login/


Article Tags :