views > welcome.pug | LogSyS

/views/welcome.pug

This our index page which redirect us to login or registered page.

doctype
html
     head
          title LogSys
          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
          <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
     body

          .container
               != messages('message'locals)
               if errors
                    each errori in errors
                         div(class="alert alert-danger"#{error.msg}
          if (mesg)
               div.alert.alert-success.alert-dismissible
                    strong Success!
                    | #{mesg} 
                    button.close(type='button' data-dismiss='alert' aria-label='Close')
                         span(aria-hidden='true'&times; 
          h1 Welcome, This is Home Page
          br
          h2 Hello! #{email}
          a(href="/register") REGISTER
          br
          a(href="/login") LOGIN
          br
          a(href="/home") LoginHome

Comments

Popular posts from this blog

Generative AI Model for text summarization

maintext/ react

Resume description for AI/ ML Developer