diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-12-10 08:39:32 +0200 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-12-10 08:39:32 +0200 |
commit | 84913b0c5645071615cc113011d5696548905ef9 (patch) | |
tree | 2d9781cce31f73cb31d779fdc2f5a5fc9b92c95d /backend/views | |
parent | ccbbd775a921f92e5472ccf53317d9e31bd9152d (diff) |
Merged the front-end and back-end dev environments into master.
Massive W for the team. Full Google Auth + other Prisma quirks and functionalities.
Changes to be committed:
new file: .gitattributes
new file: backend/index.js
new file: backend/login_pages/index.js
new file: backend/package-lock.json
new file: backend/package.json
new file: backend/populate_prisma.js
new file: backend/prisma/schema.prisma
new file: backend/views/pages/auth.ejs
new file: backend/views/pages/success.ejs
new file: frontend/README.md
new file: frontend/package-lock.json
new file: frontend/package.json
new file: frontend/public/favicon.ico
new file: frontend/public/index.html
new file: frontend/public/logo192.png
new file: frontend/public/logo1922.png
new file: frontend/public/logo512.png
new file: frontend/public/manifest.json
new file: frontend/public/robots.txt
new file: frontend/src/App.css
new file: frontend/src/App.js
new file: frontend/src/App.test.js
new file: frontend/src/Footer.css
new file: frontend/src/Footer.js
new file: frontend/src/components/Navbar.js
new file: frontend/src/components/NavbarElements.js
new file: frontend/src/components/logo192.png
new file: frontend/src/index.css
new file: frontend/src/index.js
new file: frontend/src/logo.svg
new file: frontend/src/pages/about.js
new file: frontend/src/pages/contact.css
new file: frontend/src/pages/contact.js
new file: frontend/src/pages/courses.css
new file: frontend/src/pages/courses.js
new file: frontend/src/pages/index.css
new file: frontend/src/pages/index.js
new file: frontend/src/reportWebVitals.js
new file: frontend/src/setupTests.js
Diffstat (limited to 'backend/views')
-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> |