-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b57b084
commit 47eb42f
Showing
3 changed files
with
69 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
use leptos::{ev::MouseEvent, *}; | ||
|
||
use crate::component::connect::ConnectLogin; | ||
|
||
#[component] | ||
pub fn FeedPopUp<F: Fn(MouseEvent) + 'static>( | ||
on_click: F, | ||
header_text: &'static str, | ||
body_text: &'static str, | ||
login_text: &'static str, | ||
) -> impl IntoView { | ||
view! { | ||
<div class="h-full w-full absolute bg-black opacity-90 z-50 flex flex-col justify-center" on:click=on_click> | ||
<div class="flex flex-row justify-center"> | ||
<div class="flex flex-col justify-center w-9/12 sm:w-4/12 relative"> | ||
<img | ||
class="h-28 w-28 absolute -left-4 -top-10" | ||
src="/img/coins/coin-topleft.svg" | ||
/> | ||
<img | ||
class="h-18 w-18 absolute -right-2 -top-14" | ||
src="/img/coins/coin-topright.svg" | ||
/> | ||
<img | ||
class="h-18 w-18 absolute -bottom-14 -left-8" | ||
src="/img/coins/coin-bottomleft.svg" | ||
/> | ||
<img | ||
class="h-18 w-18 absolute -bottom-12 -right-2" | ||
src="/img/coins/coin-bottomright.svg" | ||
/> | ||
<span class="text-white text-3xl text-center text-bold p-2 whitespace-pre-line"> | ||
{header_text} | ||
</span> | ||
<span class="text-white text-center p-2 pb-4"> | ||
{body_text} | ||
</span> | ||
<div class="flex justify-center"> | ||
<div class="w-7/12 sm:w-4/12 z-[60]"> | ||
<ConnectLogin login_text={login_text}/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
} |
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