From 270a1e28f94bfb9b1e4d0611d8d1b89136183c00 Mon Sep 17 00:00:00 2001 From: Kajal Mehta Date: Wed, 23 Oct 2024 10:33:23 +0000 Subject: [PATCH] popup --- frontend/index.html | 148 +---------------------------- frontend/src/Pages/Herosection.jsx | 2 + frontend/src/components/popup.jsx | 74 +++++++++++++++ 3 files changed, 77 insertions(+), 147 deletions(-) create mode 100644 frontend/src/components/popup.jsx diff --git a/frontend/index.html b/frontend/index.html index 574f51a..952225f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -262,115 +262,7 @@ } -#popup { - position: fixed; - bottom: 20px; /* Position 20px from the bottom */ - right: 20px; /* Position 20px from the right */ - height: auto; /* Adjust height based on content */ - width: 400px; /* Set width for the popup box */ - background-color: rgb(252 249 249 / 80%); /* Semi-transparent background */ - justify-content: center; - display: flex; - z-index: 1000; - align-items: center; - border-radius: 10px; /* Rounded corners */ - box-shadow: 0px 4px 10px #4d90fea3; /* Box shadow */ -} - -.popup-content { - position: relative; - width: 100%; /* Full width of the container */ - background-color: rgb(240, 238, 238); - border-radius: 10px; - overflow: hidden; - display: flex; - flex-direction: row; -} - -.popup-left img { - height: 100%; - width: 100%; - object-fit: cover; - padding: 24px; - border-radius: 59px; -} - - -.popup-right { - padding: 20px; - flex: 1; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} -.popup-right .h1 { - font-size: 24px; /* Adjust size for better fit */ - margin-bottom: 10px; - color: #131010; - text-align: center; - font-weight: bolder; -} - -.popup-right .h2 { - font-size: 18px; - color: #261d1d; - text-align: center; - margin-bottom: 15px; - font-weight: bold; -} - -#emailForm { - display: flex; - flex-direction: column; - align-items: center; - width: 100%; -} - -#popup-email { - padding: 10px; - width: 80%; - border: 1px solid #bbbbbb; - border-radius: 5px; - margin-bottom: 15px; - font-size: 16px; -} - -.signup-btn { - width: 80%; - padding: 10px; - background-color: #0b42e9; - color: aliceblue; - border: none; - border-radius: 5px; - cursor: pointer; - font-size: 16px; - font-weight: bolder; -} - -.terms { - color: #0e0a0a; - text-align: center; - font-size: 12px; - margin-top: 10px; -} - -.terms a { - color: #1278d8; - text-decoration: none; -} - -.close-button { - position: absolute; - top: 10px; - right: 10px; - font-size: 24px; - font-weight: bolder; - cursor: pointer; - color: #000000; - z-index: 1001; -} @@ -669,45 +561,7 @@

Saarthi

- -