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

popup ui fixes done #24

Merged
merged 1 commit into from
Dec 12, 2024
Merged
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
37 changes: 24 additions & 13 deletions common/components/DevnetVotingPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { useEffect, useState, FC, ReactNode } from 'react';
import styled from 'styled-components';
import { toast, Toaster } from 'sonner';
import { Button, Cross, PushLogo } from '../../blocks';
import { Cross, PushLogo } from '../../blocks';

type NotificationProps = {
image?: ReactNode;
Expand Down Expand Up @@ -128,23 +128,23 @@ const NotificationItem: FC<NotificationProps> = ({
handleNotificationClose();
}}
>
<Cross size={24} color="icon-primary" />
<Cross size={24} color="white-100" />
</CloseButton>
<TextContainer>
<LogoContainer>
<PushLogo width={50} height={53} />
<ChainSvg />
</LogoContainer>
<NotificationTitle>{firstTitle}</NotificationTitle>
<Button
<VoteButton
onClick={() => {
localStorage.setItem('chainNotificationShown', 'true');
window.open('https://gov.push.org', '_blank');
toast.dismiss();
}}
>
Learn More
</Button>
</VoteButton>
<NotificationDescription>{description}</NotificationDescription>
</TextContainer>
</NotificationContainer>
Expand All @@ -155,13 +155,12 @@ const NotificationItem: FC<NotificationProps> = ({
const NotificationContainer = styled.div`
position: relative;
border-radius: var(--radius-md, 24px);
border: 1px solid var(--stroke-secondary, #313338);
background: var(--surface-primary, #202124);
background: #000;
display: flex;
flex-direction: column;
align-items: stretch;
height: 310px;
width: 272px;
width: 320px;
cursor: pointer;
box-sizing: border-box;
font-family: var(--font-family);
Expand Down Expand Up @@ -204,8 +203,7 @@ const TextContainer = styled.div`
`;

const NotificationTitle = styled.span`
font-family: 'FK Grotesk Neue', sans-serif;
color: var(--text-primary);
color: #fff;
text-align: center;
font-family: var(--font-family);
font-size: 26px;
Expand All @@ -215,8 +213,7 @@ const NotificationTitle = styled.span`
`;

const NotificationDescription = styled.span`
font-family: 'FK Grotesk Neue', sans-serif;
color: var(--text-primary);
color: #fff;
text-align: center;
font-family: var(--font-family);
font-size: 16px;
Expand All @@ -227,13 +224,27 @@ const NotificationDescription = styled.span`
overflow: hidden;
`;

const VoteButton = styled.button`
font-family: var(--font-family);
background-color: transparent;
cursor: pointer;
color: #fff;
margin: 0 auto;
border: 1.5px solid #fff;
padding: 16px 32px;
border-radius: 16px;
font-size: 16px;
font-weight: 500;
line-height: 16px;
`;

const CloseButton = styled.button`
background-color: transparent;
cursor: pointer;
color: #fff;
padding: 0px;
position: absolute;
right: 8px;
top: 8px;
right: 14px;
top: 10px;
border: none;
`;
Loading