Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve css of copyright section issue #389 #466

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 77 additions & 77 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
integrity="sha384-k6RqeWeci5ZR/Lv4MR0sA0FfDOMhZj7z9qvhs8kcJ6D6t3h7jsKK4Gk16+/D57g" crossorigin="anonymous">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
<link rel="stylesheet" href="./popup/popup.css"/>

Expand Down Expand Up @@ -528,86 +531,82 @@ <h4>Emily Davismore</h4>



<section id="contact" data-aos="fade-right">

<div class="card pb-5 pt-1">
<div class="card-header">
<h2 >Contact Us</h2>
<section id="contact" data-aos="fade-right">
<div class="card pb-5 pt-1">
<div class="card-header">
<h2>Contact Our Customer Support Team</h2>
<p class="contact-message">
We're here to assist you with any questions or concerns you may have.
</p>


</div>
<div class="card-body">
<div class="image-section">
<img src="images/7725176.jpg" alt="Contact Image"
style="max-width: 80%; height: auto; max-height: 500px;">
</div>
<div class="card-body">
<div class="image-section">
<img src="images/7725176.jpg" alt="Contact Image"style="max-width: 80%; height: auto; max-height: 500px;">
</div>
<div class="form-section">
<form id="contactForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your name">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your message"></textarea>
</div>
<button type="submit">Send</button>
</form>

<script>
// Function to load form data from local storage
function loadFormData() {
const data = JSON.parse(localStorage.getItem('formData')) || [];
if (data.length > 0) {
// Optionally, you can display the saved data
console.log('Saved Form Data:', data);
}
}

// Function to save form data to local storage
function saveFormData() {
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;

// Create a new entry
const newEntry = { name, email, message };

// Get existing data from local storage or initialize an empty array
const existingData = JSON.parse(localStorage.getItem('formData')) || [];

// Add the new entry to the existing data
existingData.push(newEntry);

// Save the updated data back to local storage
localStorage.setItem('formData', JSON.stringify(existingData));
}

// Event listener for form submission
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission
saveFormData(); // Save form data to local storage
clearForm(); // Clear the input fields
alert('Message sent!'); // Display a confirmation message
});

// Function to clear input fields
function clearForm() {
document.getElementById('name').value = '';
document.getElementById('email').value = '';
document.getElementById('message').value = '';
<div class="form-section">
<form id="contactForm">
<div class="form-group">
<label for="name"><i class="fas fa-user"></i> Name</label>
<input type="text" id="name" name="name" placeholder="Your name">
</div>
<div class="form-group">
<label for="email"><i class="fas fa-envelope"></i> Email</label>
<input type="email" id="email" name="email" placeholder="Your email">
</div>
<div class="form-group">
<label for="message"><i class="fas fa-comment"></i> Message</label>
<textarea id="message" name="message" placeholder="Your message"></textarea>
</div>
<button type="submit">Send</button>
</form>

<script>
// Function to load form data from local storage
function loadFormData() {
const data = JSON.parse(localStorage.getItem('formData')) || [];
if (data.length > 0) {
console.log('Saved Form Data:', data);
}

// Load the form data when the page is loaded
window.onload = loadFormData;
</script>

</div>

}

// Function to save form data to local storage
function saveFormData() {
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;

const newEntry = { name, email, message };
const existingData = JSON.parse(localStorage.getItem('formData')) || [];
existingData.push(newEntry);
localStorage.setItem('formData', JSON.stringify(existingData));
}

// Event listener for form submission
document.getElementById('contactForm').addEventListener('submit', function (event) {
event.preventDefault();
saveFormData();
clearForm();
alert('Message sent!');
});

// Function to clear input fields
function clearForm() {
document.getElementById('name').value = '';
document.getElementById('email').value = '';
document.getElementById('message').value = '';
}

// Load the form data when the page is loaded
window.onload = loadFormData;
</script>
</div>
</div>
</section>
</div>
</section>


<footer class="footer">
<div class="footer-content">
Expand Down Expand Up @@ -659,7 +658,8 @@ <h2>Feedback Form</h2>
</div>
</div>
<div class="footer-bottom">
&copy; 2024 GamingTools | Designed by Swaraj
<p>© 2024 GamingTools | All Rights Reserved</p>
<p>Designed and Developed by <span>Swaraj</span></p>
</div>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

p {
margin-bottom: 26px;
color: #555;
color: #d7d7d7;
font-size: 13px;
}

Expand Down
85 changes: 81 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
border-radius: 6px;
align-items: center;
}
.contact-message {
font-size: 1.2rem;

color: #b4abab;

text-align: center;

margin-top: 5px;

line-height: 1.2;

padding: 5px;

background-color: #f9f9f9;

border-radius: 5px;

}
.card-body {
display: flex;
width: 90%;
Expand All @@ -25,7 +43,39 @@
justify-content: space-between; /* Form on the right and image on the left */
align-items: flex-start; /* Align content to the top */
}
.card-header h2 {
font-size: 2.1rem;
/* Large font size */
color: #333;
/* Dark gray color for text */
font-weight: bold;
/* Bold font weight */
text-align: center;
/* Center align the text */
margin: 0;
/* Remove default margin */
padding: 15px 0;
/* Add vertical padding */
position: relative;
/* Relative positioning for pseudo-element */
}

.card-header h2::after {
content: '';
/* Pseudo-element for the underline */
display: block;
/* Make it a block element */
width: 50%;
/* Width of the underline */
height: 4px;
/* Height of the underline */
background: #007bff;
/* Color for the underline */
margin: 8px auto 0;
/* Center align the underline */
border-radius: 2px;
/* Slightly rounded corners */
}
.form-section {
width: 50%; /* Width for the form section */
}
Expand Down Expand Up @@ -815,11 +865,37 @@ button {
}

.footer-bottom {
background: #343a40;
color: #686868;
background-color: #111;
color: #fff;
text-align: center;
padding: 15px 0;
margin-top: 40px;
padding: 20px 0;

/* Add a subtle brand color */
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
/* Shadow for depth */
}

.footer-bottom p {
font-size: 1rem;
margin: 5px 0;
color: white;
letter-spacing: 1.02px;
}

.footer-bottom p span {
color: #f0c040;
/* Highlight designer name */
font-weight: bold;
}

.footer-bottom p:hover {
color: #f0c040;
/* Hover effect for the footer text */
transition: color 0.3s ease-in-out;
}

.footer-bottom span:hover {
color: white;
}

@media screen and (max-width: 768px) {
Expand Down Expand Up @@ -885,6 +961,7 @@ button {
border: none;
transition: background-color 0.3s ease, transform 0.3s ease;
z-index: 1;
border: 1px solid rgb(147, 143, 143);
}

.social-sidebar ul{
Expand Down