Add example styled component

This commit is contained in:
noot 2023-01-02 18:49:34 -05:00
commit 32383bd04b
2 changed files with 22 additions and 0 deletions

17
src/StyledComponent.tsx Normal file
View file

@ -0,0 +1,17 @@
import styled from "styled-components";
const Title = styled.h1`
color: red;
text-align: center;
`;
const Wrapper = styled.section`
padding: 4em;
background: papayawhip;
`;
export default () => (
<Wrapper>
<Title>This is a Styled Component!</Title>
</Wrapper>
);

View file

@ -15,6 +15,7 @@ import { VFC } from "react";
import { FaShip } from "react-icons/fa";
import logo from "../assets/logo.png";
import StyledComponent from "./StyledComponent";
// interface AddMethodArgs {
// left: number;
@ -57,6 +58,10 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
</ButtonItem>
</PanelSectionRow>
<PanelSectionRow>
<StyledComponent />
</PanelSectionRow>
<PanelSectionRow>
<div style={{ display: "flex", justifyContent: "center" }}>
<img src={logo} />