From 5509e250a28b9533e17bb996a8b0acb5e32fbe0b Mon Sep 17 00:00:00 2001 From: PeanutBrrutter Date: Mon, 24 Jun 2024 16:32:01 +0800 Subject: [PATCH] added htmls --- config.json | 5 ++++ templates/about.html | 30 ------------------- templates/contact.html | 30 ------------------- templates/header.html | 68 ------------------------------------------ templates/index.html | 40 ++++++++++--------------- templates/success.html | 29 ++++++++++++++++++ 6 files changed, 49 insertions(+), 153 deletions(-) create mode 100644 config.json delete mode 100644 templates/about.html delete mode 100644 templates/contact.html delete mode 100644 templates/header.html create mode 100644 templates/success.html diff --git a/config.json b/config.json new file mode 100644 index 0000000..6016a33 --- /dev/null +++ b/config.json @@ -0,0 +1,5 @@ +{ + "session_secret":"Secret-session-key", + "google_client_id":"8283214538-lr39n0mnn0el6p51tb4jk80i7k3ima9q.apps.googleusercontent.com", + "google_client_secret":"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" +} \ No newline at end of file diff --git a/templates/about.html b/templates/about.html deleted file mode 100644 index fbe852c..0000000 --- a/templates/about.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - About - - - - {{template "header.html" .}} -

-

About

-
This is an about page.
- - \ No newline at end of file diff --git a/templates/contact.html b/templates/contact.html deleted file mode 100644 index 3e9acda..0000000 --- a/templates/contact.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Contact Us - - - - {{template "header.html" .}} -

-

Contact Us

-
This is a contact page.
- - \ No newline at end of file diff --git a/templates/header.html b/templates/header.html deleted file mode 100644 index 04c0029..0000000 --- a/templates/header.html +++ /dev/null @@ -1,68 +0,0 @@ - - - My Website - - - -
-

NK Robotics

- -
- - \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 94febe1..240875d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,30 +1,20 @@ - - + + - - Home - + Google SignIn + + + - {{template "header.html" .}} -

-

Home Page

-
This is a home page.
+
+
+

Social Authentication

+

Login or Register with:

+ SignIn with Google +
+
\ No newline at end of file diff --git a/templates/success.html b/templates/success.html new file mode 100644 index 0000000..1ea8d27 --- /dev/null +++ b/templates/success.html @@ -0,0 +1,29 @@ + + + + Google SignIn + + + + + +
+
+

Profile Information

+
+
+
+

+ Id: {{.UserID}}
+ Email: {{.Email}}
+ Name: {{.Name}} +

+
+
+
+
+
+ + \ No newline at end of file