Skip to content

Commit 62fc137

Browse files
author
Guillaume Galuz
committed
some colors for funsies
1 parent 0f9a8cf commit 62fc137

File tree

2 files changed

+70
-5
lines changed

2 files changed

+70
-5
lines changed

components/shared/Sidebar.tsx

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import styled from "styled-components";
33
import { Col, Steps, Space } from 'antd';
44
import { ArrowLeft } from 'react-feather';
55
import Link from "next/link";
6+
import Image from 'next/image'
7+
import logoSVG from "public/figment-learn-color.svg"
68

79
import { ChainType, StepType } from "types/types";
810

@@ -18,9 +20,9 @@ const Sidebar = ({
1820
stepIndex: number
1921
}) => {
2022
return (
21-
<Left span={8}>
22-
<div style={{ marginBottom: "0px", fontSize: "16px", fontWeight: 600, color: "grey" }}>Figment Learn</div>
23-
<div style={{ marginBottom: "40px", fontSize: "28px", fontWeight: 700 }}>{`${chain.label} Pathway`}</div>
23+
<Left span={8} chainId={chain.id}>
24+
<Image src={logoSVG} alt="Figment Learn" height={40} width={100} />
25+
<ChainTitle chainId={chain.id}>{`${chain.label} Pathway`}</ChainTitle>
2426

2527
<Steps direction="vertical" size="small" current={stepIndex}>
2628
{steps.map((s: StepType) => <Step key={s.id} title={s.title} />)}
@@ -36,8 +38,55 @@ const Sidebar = ({
3638
)
3739
}
3840

39-
const Left = styled(Col)`
40-
background: rgb(255, 242, 155);
41+
const Learn = styled.div<{ chainId: string }>`
42+
margin-bottom: 0;
43+
font-size: 16px;
44+
font-weight: 600;
45+
46+
color: ${({ chainId }) => {
47+
if (chainId === "solana") {
48+
return '#EEE';
49+
} else if (chainId === "avalanche") {
50+
return '#EEE';
51+
} else if (chainId === "polygon") {
52+
return '#EEE';
53+
}
54+
return '#EEE';
55+
}};
56+
`;
57+
58+
const ChainTitle = styled.div<{ chainId: string }>`
59+
margin-bottom: 40px;
60+
font-size: 28px;
61+
font-weight: 600;
62+
63+
color: ${({ chainId }) => {
64+
if (chainId === "solana") {
65+
return 'black';
66+
} else if (chainId === "avalanche") {
67+
return '#F6F6F6';
68+
} else if (chainId === "polygon") {
69+
return '#F6F6F6';
70+
}
71+
return '#F6F6F6';
72+
}};
73+
`;
74+
75+
const Left = styled(Col)<{ chainId: string }>`
76+
background: ${({ chainId }) => {
77+
if (chainId === "solana") {
78+
return 'linear-gradient(253deg, #00FFA3, #DC1FFF)';
79+
} else if (chainId === "avalanche") {
80+
return '#e84141';
81+
} else if (chainId === "polygon") {
82+
return '#8247e5';
83+
} else if (chainId === "polkadot") {
84+
return '#e6007a';
85+
} else if (chainId === "tezos") {
86+
return '#0f62ff';
87+
}
88+
return 'rgb(255, 242, 155)';
89+
}};
4190
padding: 40px 0 0 40px;
4291
height: 100vh;
4392
`;

public/figment-learn-color.svg

Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)