Skip to content

Commit

Permalink
Add Layout components
Browse files Browse the repository at this point in the history
- write Content and Footer components
  • Loading branch information
Jaewoook committed Aug 10, 2022
1 parent 116706e commit 8ea8f61
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* External modules
*/
import styled from "styled-components";
import { Layout } from "antd";

export const Header = styled.div`
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1;
background-color: #f0f2f5;
`;

export const Content = styled(Layout.Content)`
margin-top: 124px;
background-color: #fafafa;
`;

export const Footer = styled(Layout.Footer)`
display: flex;
padding: 0 0 16px 0;
justify-content: center;
align-items: center;
background-color: #fafafa;
& * {
color: rgba(0, 0, 0, 0.3) !important;
}
& > div > * {
cursor: pointer;
}
`;
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { AddressList } from "./AddressList";
export { ClickToCopyText } from "./ClickToCopyText";
export * from "./Layout";

0 comments on commit 8ea8f61

Please sign in to comment.