-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented fix for widget functionality, added initial version route…
… in frontend API, and adjusted color scheme
- Loading branch information
1 parent
a1dad98
commit 0d27df0
Showing
10 changed files
with
124 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ | |
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import { FaRocket } from "react-icons/fa"; | ||
import { PiRocketLaunch } from "react-icons/pi"; | ||
import styles from "./FixWidget.module.css"; | ||
|
||
const FixWidget = () => { | ||
const handleClick = () => { | ||
window.open("https://referral-network-hub.vercel.app/", "_blank"); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className={styles.widgetContainer} onClick={handleClick}> | ||
<div className={styles.widget}> | ||
<FaRocket className={styles.icon} /> | ||
</div> | ||
</div> | ||
<div className={styles.widgetContainer}> | ||
<div className={styles.desktopWidget}> | ||
<p> | ||
Be the first to experience our latest updates!{" "} | ||
<span onClick={handleClick}> | ||
Sign up now for early access{" "} | ||
<PiRocketLaunch className={styles.blueIcon} /> | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default FixWidget; |
67 changes: 67 additions & 0 deletions
67
frontend/src/components/Widget/FixWidget/FixWidget.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.widgetContainer { | ||
position: fixed; | ||
bottom: 20px; | ||
right: 20px; | ||
z-index: 1000; | ||
} | ||
|
||
.widget { | ||
width: 50px; | ||
height: 50px; | ||
background-color: #ffd700; | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
transition: transform 0.2s; | ||
} | ||
|
||
.widget:hover { | ||
transform: scale(1.1); | ||
} | ||
|
||
.icon { | ||
color: #000; | ||
} | ||
|
||
.blueIcon { | ||
color: #0062ff; | ||
vertical-align: middle; | ||
font-size: 24px; | ||
} | ||
|
||
.desktopWidget { | ||
display: none; | ||
background-color: var(--bg-component-yellow); | ||
color: #000; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
font-family: poppins; | ||
letter-spacing: 0.5px; | ||
text-align: center; | ||
} | ||
|
||
.desktopWidget span { | ||
color: #0062ff; | ||
font-weight: 500; | ||
cursor: pointer; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.widget { | ||
display: none; | ||
} | ||
.desktopWidget { | ||
display: block; | ||
} | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.tooltip { | ||
top: -40px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters