Browse Source

Add signin/up routes

Does not forwards request / REST
master
Haris Razis 4 years ago
parent
commit
90306eb157
  1. 0
      app.js
  2. 0
      bin/www
  3. 0
      package-lock.json
  4. 0
      package.json
  5. 1330
      public/stylesheets/styles.min.css
  6. 15
      routes/index.js
  7. 0
      views/error.ejs
  8. 15
      views/index.ejs
  9. 0
      views/login.ejs
  10. 0
      views/signup.ejs

0
app.js

0
bin/www

0
package-lock.json

0
package.json

1330
public/stylesheets/styles.min.css

File diff suppressed because it is too large

15
routes/index.js

@ -1,16 +1,25 @@
var express = require('express');
var router = express.Router();
router.get('/', (req, res, next) => {
router.get('/', (req, res) => {
res.render('index');
});
router.get('/documentation', (req, res, next) => {
router.get('/documentation', (req, res) => {
res.render('documentation');
});
router.get('/faq', (req, res, next) => {
router.get('/faq', (req, res) => {
res.render('faq');
});
router.get('/login', (req, res) => {
res.send('login');
});
router.get('/signup', (req, res) => {
res.send('signup');
});
module.exports = router;

0
views/error.ejs

15
views/index.ejs

@ -1,18 +1,25 @@
<%- include("partials/header.ejs") %>
<header style="height: 90vh; background-color: #f8f9fa;">
<header class="container-fluid mt-5 p-5">
<div id="particles-js"></div>
<div class="container mb-5 mt-4">
<div class="col-sm-12 mt-5">
<div class="row no-gutters mb-5">
<div class="col-lg-12 my-auto order-lg-1 showcase-text text-center" style="margin-bottom: 5rem !important;">
<h1><%= t('welcome') %></h1>
<p style="font-size: 20px;"><%= t('welcome_text') %></p>
<a href="/documentation#getStarted" class="btn btn-primary rounded-pill btn-md mt-1" role="button"
data-bs-hover-animate="pulse" style="color: rgb(255,255,255);">Get Started!</a>
</div>
<div class="col-lg-12 order-lg-2 text-white" style="background: url(/images/undraw_content_team_3epn.svg) center / contain; height: 35vh; background-repeat:
no-repeat;"><span></span></div>
</div>
<!-- <div class="container mb-5 mt-4">
<div class="col-sm-12 mt-5">
</div>
<div class="container col-sm-12 col-lg-6 mt-5">
<img class="img-fluid float-right" src="/images/undraw_content_team_3epn.svg" alt="">
</div>
</div>
</div> -->
</header>
<section class="features-icons bg-light text-center" id="features">

0
views/login.ejs

0
views/signup.ejs

Loading…
Cancel
Save