Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GarimaSingh0109 authored Oct 21, 2024
2 parents ed7bde2 + ba4d401 commit 8db5a87
Show file tree
Hide file tree
Showing 17 changed files with 2,383 additions and 500 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
268 changes: 257 additions & 11 deletions Carbo-footprint.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,168 @@
body {
font-family: Arial, sans-serif;
background-color: #EDF6F9;
color: #333;
text-align: center;
padding: 20px;
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

a {
text-decoration: none;
color: inherit;
}

/* Progress Bar */
#progress-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 9px;
z-index: 99990;
}

#progress-bar {
height: 9px;
width: 0;
background: linear-gradient(90deg, rgb(38, 166, 154) 0%, rgb(102, 187, 106) 50%, rgb(76, 175, 80) 100%);
box-shadow: 0 0 4px rgba(38, 166, 154, 0.7), 0 0 10px rgba(76, 175, 80, 0.7);
transition: width 0.09s ease-in-out;
border-radius: 10px;
}

/* Header and Navigation */
header {
background-color: #00796b;
color: white;
padding: 15px;
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
}

header h1 {
font-size: 1.5rem;
margin: 0;
color: white;
}

nav ul {
list-style-type: none;
display: flex;
}

nav ul li {
margin-left: 20px;
}

nav ul li a {
color: white;
transition: color 0.3s;
}

nav ul li a:hover {
color: #e0f7fa;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 7px;
}

.nav-controls {
display: flex;
align-items: center;
}

#theme-toggle, #menu-toggle {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
margin-left: 15px;
}

#menu-toggle {
display: none;
}

/* Dark Mode Styles */
body.dark-mode {
background-color: #333;
color: white;
}

body.dark-mode header {
background-color: #00796b;
}

body.dark-mode .button a {
color: #ddd;
}

body.dark-mode #progress-container {
background-color: #444;
}

body.dark-mode #progress-bar {
background: linear-gradient(90deg, rgb(38, 166, 154) 0%, rgb(102, 187, 106) 50%, rgb(76, 175, 80) 100%);
}
.dark-mode label{
color: black;
}
/* Responsive Styles */
@media (max-width: 768px) {
.nav-menu {
display: none; /* Hide nav menu on smaller screens */
}

.container {
max-width: 600px;
margin: auto;
#menu-toggle {
display: block; /* Show menu toggle button */
}
}


main {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Makes sure the content is vertically centered */
background-color: #EDF6F9; /* Light background for the main section */
padding: 20px;
}
main .container {
width: 100%; /* Ensures the container takes full width but stays within max-width */
max-width: 600px; /* Keeps the layout consistent */
background-color: #FFDDD2; /* Matches the container's background */
border: 1px solid #006D77;
border-radius: 10px;
background-color: #FFDDD2;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
margin-bottom: 20px;
color: #006D77;
}

label {
display: block;
margin: 10px 0 5px;
font-weight: bold;
}

input {
width: 100%;
padding: 8px;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #006D77;
border-radius: 5px;
transition: border-color 0.3s;
}

input:focus {
border-color: #004c54;
outline: none;
}

button {
Expand All @@ -35,13 +172,122 @@ button {
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}

button:hover {
background-color: #004c54;
transform: scale(1.05);
}

.result, .tips {
margin-top: 20px;
font-weight: bold;
background-color: #FFF;
border: 1px solid #006D77;
border-radius: 5px;
padding: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.nav-controls {
display: flex;
justify-content: space-between;
align-items: center;
}

.social-media {
display: flex;
justify-content: center;
gap: 15px; /* Space between the icons */
margin-top: 20px;
}

.social-media a {
display: inline-block;
font-size: 2rem;
color: #6366F1; /* Adjust this to match your site's theme */
transition: color 0.3s ease;
}
.social-media a:hover {
color: #4f50c4; /* Darker color on hover */
}

.social-media box-icon {
width: 40px; /* Adjust the size as per your requirement */
height: 40px;
}

@media (max-width: 768px) {
header {
flex-wrap: wrap;
}

nav {
order: 3;
width: 100%;
margin-top: 15px;
}

nav ul {
flex-direction: column;
display: none;
}

nav ul.show {
display: flex;
}

nav ul li {
margin: 10px 0;
}

#menu-toggle {
display: block;
}
}

#footer {
background-color: #00796b;
color: white;
text-align: center;
padding: 20px;
}

#newsletter-form {
display: flex;
justify-content: center;
gap: 10px;
margin: 20px 0;
}

#newsletter-form input {
padding: 10px;
border: 1px solid #e0f7fa;
border-radius: 5px;
}

#newsletter-form button {
background-color: #26a69a;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}

#newsletter-form button:hover {
background-color: #004d40;
transform: scale(1.05);
}

.social-media {
margin: 20px 0;
}

.social-media a {
color: white;
margin: 0 10px;
}
Binary file added assets/6824802.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/6881999.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/rb_2148298503.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/rb_8795.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8db5a87

Please sign in to comment.