-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLogo.tsx
More file actions
48 lines (42 loc) · 853 Bytes
/
Logo.tsx
File metadata and controls
48 lines (42 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
@media (max-width: 393px) {
gap: 6px;
}
`;
const LogoImage = styled.img`
margin-bottom: 30px;
@media (max-width: 393px) {
margin-bottom: 15px;
}
`;
const Title = styled.h1`
font-size: 2.4rem;
letter-spacing: 0.04em;
line-height: 1;
`;
const Subtitle = styled.p`
font-size: 20px;
letter-spacing: 0.02em;
`;
interface LogoProps {
subtitle?: string;
}
export const Logo: React.FC<LogoProps> = ({
subtitle = 'Your key to riches.',
}) => {
return (
<Wrapper>
<LogoImage src="./logo.webp" alt="TwoAxis Finance Logo" />
<div style={{ textAlign: 'center' }}>
<Title>TwoAxis Finance</Title>
<Subtitle>{subtitle}</Subtitle>
</div>
</Wrapper>
);
};