+
+
+
+ #{info.data.referendumIndex}
+
+
+ {"//"}
+
+
+ {endDate &&
+ t(`duration.${endDate.isPositive ? "left" : "ago"}`, {
+ duration: endDate.duration,
+ })}
+
+
+
+
+ {voted && (
+
+ {t("toast.sidebar.referendums.voted")}
+ }
+ />
+
+ )}
+ } />
+
+
+
+
+
+
+ {info.data.title}
+
+
+
+
+
+
+
+
+
+
+ {t("toast.sidebar.referendums.aye")}
+
+
+ {t("toast.sidebar.referendums.nay")}
+
+
+
+
+
+
+
+ {t("toast.sidebar.referendums.value", {
+ value: votes.ayes,
+ percent: votes.percAyes,
+ })}
+
+
+ {t("toast.sidebar.referendums.value", {
+ value: votes.nays,
+ percent: votes.percNays,
+ })}
+
+
+
+ )
+}
diff --git a/src/components/ReferendumCard/ReferendumCard.styled.ts b/src/components/ReferendumCard/ReferendumCard.styled.ts
index 0d6e20288..ced51150c 100644
--- a/src/components/ReferendumCard/ReferendumCard.styled.ts
+++ b/src/components/ReferendumCard/ReferendumCard.styled.ts
@@ -2,6 +2,56 @@ import { css } from "@emotion/react"
import styled from "@emotion/styled"
import { theme } from "theme"
+export const SContainer = styled.a<{ type: "staking" | "toast" }>`
+ padding: 16px;
+ ${({ type }) =>
+ type === "toast"
+ ? css`
+ border-radius: ${theme.borderRadius.default}px;
+ `
+ : css`
+ border-radius: ${theme.borderRadius.medium}px;
+
+ position: relative;
+
+ :before {
+ content: "";
+ position: absolute;
+ inset: 0;
+
+ border-radius: ${theme.borderRadius.medium}px;
+ padding: 1px; // a width of the border
+
+ background: linear-gradient(
+ 180deg,
+ rgba(152, 176, 214, 0.27) 0%,
+ rgba(163, 177, 199, 0.15) 66.67%,
+ rgba(158, 167, 180, 0.2) 100%
+ );
+ -webkit-mask:
+ linear-gradient(#fff 0 0) content-box,
+ linear-gradient(#fff 0 0);
+ -webkit-mask-composite: xor;
+ mask-composite: exclude;
+ pointer-events: none;
+ }
+ `}
+
+ background: ${theme.colors.darkBlue700};
+
+ transition: background ${theme.transitions.default};
+
+ cursor: pointer;
+
+ &:hover {
+ background: ${theme.colors.darkBlue401};
+ }
+
+ &:active {
+ background: ${theme.colors.darkBlue400};
+ }
+`
+
export const SHeader = styled.div`
display: flex;
align-items: center;
diff --git a/src/components/ReferendumCard/ReferendumCardProgress.tsx b/src/components/ReferendumCard/ReferendumCardProgress.tsx
new file mode 100644
index 000000000..037c94967
--- /dev/null
+++ b/src/components/ReferendumCard/ReferendumCardProgress.tsx
@@ -0,0 +1,54 @@
+import { LinearProgress } from "components/Progress"
+import BN from "bignumber.js"
+import { theme } from "theme"
+
+export type ReferendumCardProgressProps = {
+ percAyes: BN
+ percNays: BN
+}
+
+export const ReferendumCardProgress: React.FC