diff options
Diffstat (limited to 'backend/views/pages')
-rw-r--r-- | backend/views/pages/auth.ejs | 21 | ||||
-rw-r--r-- | backend/views/pages/success.ejs | 30 |
2 files changed, 51 insertions, 0 deletions
diff --git a/backend/views/pages/auth.ejs b/backend/views/pages/auth.ejs new file mode 100644 index 0000000..7977b37 --- /dev/null +++ b/backend/views/pages/auth.ejs @@ -0,0 +1,21 @@ +<!-- views/pages/auth.ejs --> +<!doctype html> +<html> +<head> + <title>Google SignIn</title> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> + <style> + body { padding-top:70px; } + </style> +</head> +<body> +<div class="container"> + <div class="jumbotron text-center text-primary"> + <h1><span class="fa fa-lock"></span> Social Authentication</h1> + <p>Login or Register with:</p> + <a href="/auth/google" class="btn btn-danger"><span class="fa fa-google"></span> SignIn with Google</a> + </div> +</div> +</body> +</html> diff --git a/backend/views/pages/success.ejs b/backend/views/pages/success.ejs new file mode 100644 index 0000000..e14e4e0 --- /dev/null +++ b/backend/views/pages/success.ejs @@ -0,0 +1,30 @@ +<!-- views/success.ejs --> +<!doctype html> +<html> + <head> + <title>Google SignIn</title> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <!-- load bootstrap css --> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- load fontawesome --> + <style> + body { padding-top:70px; } + </style> + </head> + <body> + <div class="container"> + <div class="jumbotron"> + <h1 class="text-primary text-center"><span class="fa fa-user"></span> Profile Information</h1> + <div class="row"> + <div class="col-sm-6"> + <div class="well"> + <p> + <strong>Id</strong>: <%= user.id %><br> + <strong>Email</strong>: <%= user.emails[0].value %><br> + <strong>Name</strong>: <%= user.displayName %> + </p> + </div> + </div> + </div> + </div> + </div> + </body> +</html> |