From 07ffd668e1b8081c2e6642ce3abb42b966dfef4a Mon Sep 17 00:00:00 2001 From: Bhumit Gupta Date: Wed, 9 Oct 2024 13:53:44 +0530 Subject: [PATCH 1/2] Navbar,Footer,Background --- Website/Contributor_list.json | 2 +- Website/HomePage.css | 150 ++++++++++++++++++++++++++++++++++ Website/HomePage.html | 113 +++---------------------- 3 files changed, 161 insertions(+), 104 deletions(-) create mode 100644 Website/HomePage.css diff --git a/Website/Contributor_list.json b/Website/Contributor_list.json index f9d9b05..54af73c 100644 --- a/Website/Contributor_list.json +++ b/Website/Contributor_list.json @@ -2,5 +2,5 @@ { "name": "Ridhima", "action": "Created the website" - }, + } ] diff --git a/Website/HomePage.css b/Website/HomePage.css new file mode 100644 index 0000000..b8158ce --- /dev/null +++ b/Website/HomePage.css @@ -0,0 +1,150 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; + scroll-behavior: smooth; + } + + body { + + font-family: 'Arial', sans-serif; + background: linear-gradient(45deg, #ff007f, #ff8c00, #00ffbf, #00f7ff, #9400d3, #ff007f); + background-size: 300% 300%; + animation: gradientMove 10s ease infinite; + color: white; + justify-content: center; + align-items: center; + height: 100vh; + } + + /* Navbar styling */ + nav{ + justify-content: center; + align-items: center; + width: 100%; + } + .nav-links { + position: fixed; + width: 100%; + margin-right: 10000px; + + top: 0; + background-color: #007acc; + padding: 10px 0; + z-index: 1000; + + } + .nav-links{ + display: flex; + align-items: center; + justify-content: center; + background: #8E44AD; + padding: 20px 15px; + border-radius: 12px; + box-shadow: 0 5px 10px rgba(0,0,0,0.2); + } + .nav-links li{ + list-style: none; + margin: 0 12px; + } + .nav-links li a{ + position: relative; + color: #FAFAFA; + font-size: 20px; + font-weight: 500; + padding: 6px 0; + text-decoration: none; + } + .nav-links li a:before{ + content: ''; + position: absolute; + bottom: 0; + left: 0; + height: 3px; + width: 0%; + background: linear-gradient(45deg, #ff007f, #ff8c00, #00ffbf, #00f7ff, #9400d3, #ff007f); + background-size: 100% 100%; + animation: gradientMove 1s ease infinite; + border-radius: 12px; + transition: all 0.4s ease; + } + .nav-links li a:hover:before{ + width: 100%; + } + .nav-links li.center a:before{ + left: 50%; + transform: translateX(-50%); + } + .nav-links li.upward a:before{ + width: 100%; + bottom: -5px; + opacity: 0; + } + .nav-links li.upward a:hover:before{ + bottom: 0px; + opacity: 1; + } + .nav-links li.forward a:before{ + width: 100%; + transform: scaleX(0); + transform-origin: right; + transition: transform 0.4s ease; + } + .nav-links li.forward a:hover:before{ + transform: scaleX(1); + transform-origin: left; + } + + /* Section styling */ + section { + padding: 80px 0; + text-align: center; + } + + h2 { + font-size: 36px; + color: white; + margin-bottom: 20px; + } + + .contributor-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + gap: 20px; + padding: 20px; + max-width: 1000px; + margin: 0 auto; + } + + .contributor { + background-color: #8E44AD; + border-radius: 10px; + padding: 20px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease; + } + + .contributor:hover { + transform: scale(1.05); + } + + .contributor img { + width: 100%; + height: 200px; + object-fit: cover; + border-radius: 10px; + } + + .contributor a { + text-decoration: none; + color: white; + font-size: 18px; + font-weight: bold; + margin-top: 10px; + display: block; + } + + /* Smooth animation when scrolling */ + html { + scroll-behavior: smooth; + } \ No newline at end of file diff --git a/Website/HomePage.html b/Website/HomePage.html index fdc9816..5ffa2e7 100644 --- a/Website/HomePage.html +++ b/Website/HomePage.html @@ -4,114 +4,17 @@ Hacktoberfest Contributors - + @@ -152,6 +55,9 @@

Cute Puppies

Puppy Cuteness Overload + @@ -184,6 +90,7 @@

Cute Puppies

}) .catch(error => console.error('Error loading contributors:', error)); }); + document.getElementById('year').textContent = new Date().getFullYear(); From 80efc86e7f4a404ef7a820cde41a80a01f39631a Mon Sep 17 00:00:00 2001 From: Bhumit Gupta Date: Wed, 9 Oct 2024 13:54:55 +0530 Subject: [PATCH 2/2] list --- Contributor_list.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Contributor_list.json b/Contributor_list.json index 54af73c..9198ddc 100644 --- a/Contributor_list.json +++ b/Contributor_list.json @@ -2,5 +2,7 @@ { "name": "Ridhima", "action": "Created the website" - } + }, + {"name":"Bhumit Gupta", +"action":"changes in navbar, footer and background"} ]