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

update utility multiplier card to v3 #2622

Merged
merged 1 commit into from
Apr 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
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ const AirdropStats = ({
};

const MultiplierTasks = () => {
const [tasks, setTasks] = useState<"1x" | "12x">("12x");
const [tasks, setTasks] = useState<"8x" | "12x">("12x");

const providerLinks: { provider: Provider; link: string }[] = [
{ provider: "Uniswap", link: "https://app.uniswap.org/swap?outputCurrency=0x000F1720A263f96532D1ac2bb9CDC12b72C6f386&chain=arbitrum" },
Expand All @@ -1472,16 +1472,16 @@ const MultiplierTasks = () => {
<Card fill color="holo" rounded className="multiplier-tasks">
<div className="multiplier-tasks-header">
<Text style={{ color: "black" }} bold size="md">
Multiplier Tasks
Utility Multiplier
</Text>
<Text size="xs" style={{ color: "black" }}>
Transact FLY on listed platforms to earn more!
Transact <b>$FLY</b> and $ƒUSDC on listed platforms to earn more!
</Text>
</div>
<div
className="multiplier-tasks-multiplier"
onClick={() => {
setTasks((prev) => (prev === "1x" ? "12x" : "1x"));
setTasks((prev) => (prev === "8x" ? "12x" : "8x"));
}}
style={{ transform: "scale(0.6)" }}
>
Expand All @@ -1490,7 +1490,7 @@ const MultiplierTasks = () => {
direction="vertical"
checked={tasks === "12x"}
/>
<TextButton style={{ textDecorationThickness: "3px" }}>
<TextButton style={{ textDecorationThickness: "3px", width: "97%" }}>
<motion.div
key={tasks}
initial={{ opacity: 0, y: 10 }}
Expand All @@ -1503,17 +1503,16 @@ const MultiplierTasks = () => {
</motion.div>
</TextButton>
</div>
{tasks === "1x" && (
{tasks === "8x" && (
<motion.div
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0, transition: { duration: 0.2 } }}
exit={{ opacity: 0, y: -10, transition: { duration: 0.2 } }}
className="multiplier-tasks-tasks"
>
<Text size="xs" style={{ color: "black" }}>
Perform any type of fAsset transactions{" "}
<b>in any on-chain protocol</b>, including sending{" "}
<b>with any wallet</b>.
Get extra multipliers for transacting<br/>
<b>$FLY on any protocol, with any wallet.</b>
</Text>
</motion.div>
)}
Expand Down
7 changes: 4 additions & 3 deletions web/app.fluidity.money/app/styles/dashboard/airdrop.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions web/app.fluidity.money/app/styles/dashboard/airdrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ $holo: linear-gradient(
.multiplier-tasks {
z-index: 0;
color: black;
display: grid;
display: grid !important;
box-sizing: border-box;
grid-template-columns: 180px 64px 250px;
gap: 0.5em;
max-width: 100%;
flex-direction: row !important;

.multiplier-tasks-header {
display: flex;
Expand All @@ -219,9 +220,9 @@ $holo: linear-gradient(
grid-column: 3/4;
display: flex;
align-items: center;
justify-content: space-around;
justify-content: center;
width: 100%;
gap: 6px;
gap: 8px;

a {
text-align: center;
Expand Down
Loading