Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashmitha2606 authored Nov 6, 2024
2 parents 849443a + 8435ad5 commit b8aab83
Show file tree
Hide file tree
Showing 16 changed files with 810 additions and 640 deletions.
191 changes: 122 additions & 69 deletions Finveda/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2744,105 +2744,166 @@ <h4 class="title custom-margin">Contact Us</h4>
</style>


<!-- Newsletter pop-up -->
<!-- Newsletter pop-up -->
<style>
.popup-nl {
.popup-content-nl {
display: flex;
background-color: white;
border-radius: 10px;
max-width: 800px;
height: 450px;
width: 90%; /* Adjusted to be responsive */
overflow: hidden;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
flex-direction: row;
}

display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
z-index: 1009;
.popup-left-nl img {
width: 100%;
height: 100%;
object-fit: cover;
}

}
.popup-right-nl {
padding: 20px;
width: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.popup-content-nl {
/* Close button styling */
.close1-btn-nl {
width: 20px;
cursor: pointer;
margin: 18px 10px;
position: absolute;
top: -4px;
right: 12px;
font-size: 18px;
font-weight: 800;
}

display: flex;
background-color: white;
border-radius: 10px;
max-width: 800px;
height: 450px;
width: 700px;
overflow: hidden;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
.popup-nl h1 {
font-size: 24px;
background: linear-gradient(to right, #ff4aac, #faa2d3);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
text-align: center;
margin-bottom: 12px;
margin-top: 35px;
}

}
.h2-nl {
font-size: 18px;
margin-bottom: 8px;
text-align: center;
color: #333;
}

.close1-btn-nl {
.pop_up-nl {
margin-bottom: 15px;
font-weight: bold;
background: linear-gradient(135deg, #0d4670, #32bbdc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 12.7px;
}

width: 20px;
cursor: pointer;
margin: 18px 10px;
position: absolute;
top: -4px;
right: 12px;
font-size: 18px;
font-weight: 800;
.popup-right-nl p {
margin-top: 0;
margin-bottom: 10px;
text-align: center;
}

}
.popup-nl {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
z-index: 1009;
}

.popup-left-nl img {
/* Responsive Styles */
@media (max-width: 768px) {
.popup-content-nl {
flex-direction: column;
height: auto;
width: 90%;
}

width: 100%;
height: 100%;
object-fit: cover;
.popup-right-nl {
width: 100%;
padding: 15px;
}

}
.popup-left-nl,
.popup-left-nl img {
height: 200px; /* Adjust height for mobile */
}

.popup-right-nl {
.popup-nl h1 {
font-size: 20px;
}

padding: 20px;
width: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.h2-nl {
font-size: 16px;
}

}
.pop_up-nl {
font-size: 12px;
}
}

.popup-nl h1 {
@media (max-width: 480px) {
.popup-content-nl {
width: 95%;
height: auto;
}

font-size: 24px;
background: linear-gradient(to right, #ff4aac, #faa2d3);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
text-align: center;
margin-bottom: 12px;
margin-top: 35px;
.popup-nl h1 {
font-size: 18px;
}

}
.h2-nl {
font-size: 14px;
}

.pop_up-nl {
font-size: 11px;
}
}
.h2-nl{

font-size: 18px;
margin-bottom: 8px;
text-align: center;
color: #333;

}

.pop_up-nl {

margin-bottom: 15px;
font-weight: bold;
background: linear-gradient(135deg, #0d4670, #32bbdc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 12.7px;
}
.popup-right-nl p {
margin-top: 0;
margin-bottom: 10px;
text-align: center;

}

.bold{

font-size: 13.1px;

}

input[type="email"] {
Expand Down Expand Up @@ -2913,14 +2974,6 @@ <h4 class="title custom-margin">Contact Us</h4>

}

.popup-right-nl p {

margin-top: 0;
margin-bottom: 10px;
text-align: center;

}

</style>
<div id="popup-nl" class="popup-nl">
<div class="popup-content-nl">
Expand Down
17 changes: 16 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2950,7 +2950,7 @@ text-align: center;
margin-top: 20px;
}

.form-section {
.form-section {
width: 50rem;
height: 60rem;
display: flex;
Expand Down Expand Up @@ -3090,6 +3090,21 @@ text-align: center;
padding: 20px;
}

.form-section h2{
padding-top: 30px;
}

#form-group2{
display: flex;
justify-content: center;
align-items: center;
}

#form-group2 .form-button{
margin-left: 0%;
margin-top: 15px;
}

.form-info-section {
flex: 1 1 100%;
}
Expand Down
12 changes: 12 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Register the service worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js') // Pointing to the sw.js file
.then(registration => {
console.log('ServiceWorker registration successful:', registration);
})
.catch(error => {
console.error('ServiceWorker registration failed:', error);
});
});
}
43 changes: 43 additions & 0 deletions assets/js/sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const CACHE_NAME = 'my-pwa-cache-v1';
const urlsToCache = [
'/',
'/index.html',
'/styles.css',
'/script.js',
'/manifest.json',
'/icon-192x192.png',
'/icon-512x512.png'
];

self.addEventListener('install', (event) => {
event.waitUntil(
caches.open(CACHE_NAME)
.then((cache) => {
return cache.addAll(urlsToCache);
})
);
});

self.addEventListener('fetch', (event) => {
event.respondWith(
caches.match(event.request)
.then((response) => {
return response || fetch(event.request);
})
);
});

self.addEventListener('activate', (event) => {
const cacheWhitelist = [CACHE_NAME];
event.waitUntil(
caches.keys().then((cacheNames) => {
return Promise.all(
cacheNames.map((cacheName) => {
if (!cacheWhitelist.includes(cacheName)) {
return caches.delete(cacheName);
}
})
);
})
);
});
Loading

0 comments on commit b8aab83

Please sign in to comment.