From e27bc7f8192af7efd6cd3fb341c6d6ea10f934a7 Mon Sep 17 00:00:00 2001 From: MIGHTY1o1 Date: Sun, 3 Nov 2024 06:09:56 +0530 Subject: [PATCH 1/4] add serchbar --- pages/stats.html | 775 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 590 insertions(+), 185 deletions(-) diff --git a/pages/stats.html b/pages/stats.html index 9de1e616..36accca3 100644 --- a/pages/stats.html +++ b/pages/stats.html @@ -1,5 +1,6 @@ + @@ -8,36 +9,192 @@ - + -
+
-
+
- -

GitHub Stats Dashboard

+ +

GitHub Stats Dashboard

-
@@ -96,244 +314,431 @@

GitHub Stats Dashboard

-

+

-
+ +
+ +
+
-
-
- -
-

0

-

Assigned Issues

+
+
+
+ +
+

0

+

Assigned Issues

+
-
+
+ View all assigned issues
-
-
- -
-

0

-

Open Pull Requests

+
+
+
+ +
+

0

+

Open Pull Requests

+
-
+
+ View all open pull requests
-
-
- -
-

0

-

Merged Pull Requests

+
+
+
+ +
+

0

+

Merged Pull Requests

+
-
+
+ View all merged pull requests
-
-

Recent Activity

-
+
+
+

Recent Activity

+
+
+ View all activity
-
-

Summary

-
-
- Total Contributions - 0 +
+
+

Summary

+
+
+
+ Total Contributions + 0
-
- Merge Rate - 0% +
+ Merge Rate + 0%
-
- Active Repositories - 0 +
+ Active Repositories + 0
+ + + + // Event Listener + document.getElementById('username-form').addEventListener('submit', handleSubmit); + \ No newline at end of file From 66fe1567ab6fa664ef39d719200a9284b0a3f163 Mon Sep 17 00:00:00 2001 From: MIGHTY1o1 Date: Sun, 3 Nov 2024 06:12:40 +0530 Subject: [PATCH 2/4] remove change button --- pages/stats.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/pages/stats.html b/pages/stats.html index 36accca3..72cc714e 100644 --- a/pages/stats.html +++ b/pages/stats.html @@ -316,9 +316,6 @@

GitHub Stats Dashboard

-
From edab70f2069c013b57387b5921b4bfa0663f8953 Mon Sep 17 00:00:00 2001 From: MIGHTY1o1 Date: Sun, 3 Nov 2024 06:19:08 +0530 Subject: [PATCH 3/4] connected login --- login.html | 218 +++++++++++++++++++++++++---------------------- login.js | 17 ++-- pages/stats.html | 27 ++++++ 3 files changed, 152 insertions(+), 110 deletions(-) diff --git a/login.html b/login.html index 21f77abb..4a430490 100644 --- a/login.html +++ b/login.html @@ -1,113 +1,123 @@ - - - - Register & Login - - - - - - - - - -
-
- -
-
- - - - - -
-
-

New here ?

-

- Discover new experiences and profiles with awesome-github-profiles
Get access to exclusive content and features.
Create your account. -

- - - - + + + + Register & Login + + + + + + + + + + +
+
+ -
- -
- -

One of us ?

-

- Welcome to our community -

- - + + +
+
+ +
+ + + + + +
+
+

New here ?

+

+ Discover new experiences and profiles with awesome-github-profiles
Get access to exclusive content and + features.
Create your account. +

+ + + + + + +
+ +
+
+ +
+ +

One of us ?

+

+ Welcome to our community +

+ +
- +
- +
- -
- - - - + +
+ +
+ + + + + \ No newline at end of file diff --git a/login.js b/login.js index cd4b2ab0..2cf02ea7 100644 --- a/login.js +++ b/login.js @@ -23,10 +23,10 @@ document.addEventListener('DOMContentLoaded', () => { const password = document.querySelector(".sign-in-form input[type='password']").value; // Dummy login logic for demo purposes - if (username === 'admin' && password === 'password') { + if (username === localStorage.getItem('username') && password === localStorage.getItem('password')) { alert('Login successful!'); - // Redirect to dashboard page - window.location.href = 'index.html'; + // Redirect to stats dashboard page + window.location.href = 'pages/stats.html'; } else { alert('Invalid username or password'); } @@ -40,8 +40,10 @@ document.addEventListener('DOMContentLoaded', () => { const username = document.querySelector(".sign-up-form input[type='text']").value; const email = document.querySelector(".sign-up-form input[type='email']").value; const password = document.querySelector(".sign-up-form input[type='password']").value; + const gitUsername = document.querySelector(".sign-up-form input[type='text'][placeholder='Git Username']").value; // Git Username - if (username === '' || email === '' || password === '') { + + if (username === '' || email === '' || password === '' || gitUsername === '') { alert('Please fill in all fields'); return; } @@ -97,10 +99,10 @@ document.addEventListener('DOMContentLoaded', () => { } // Dummy signup logic for demo purposes localStorage.setItem('username', username); + localStorage.setItem('gitUsername', gitUsername); localStorage.setItem('email', email); localStorage.setItem('password', password); localStorage.setItem('isLoggedIn', 'true'); - alert('Signup successful!'); // Redirect to dashboard page window.location.href = 'index.html'; @@ -155,4 +157,7 @@ document.addEventListener('DOMContentLoaded', () => { // Monitor password input on the sign-up form to check password strength document.querySelector(".sign-up-form input[type='password']").addEventListener('input', checkPasswordStrength); -}); \ No newline at end of file +}); + + + diff --git a/pages/stats.html b/pages/stats.html index 72cc714e..bb89c40c 100644 --- a/pages/stats.html +++ b/pages/stats.html @@ -420,6 +420,33 @@
+ \ No newline at end of file