Skip to content

Commit

Permalink
Add TopBar.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksho committed Dec 21, 2021
1 parent 942f19f commit 0b850cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ThemeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const darkTheme = {

export const GlobalStyles = createGlobalStyle<{theme: ThemeType}>`
body {
background: ${({ theme }) => theme.body};
background-color: ${({ theme }) => theme.body};
color: ${({ theme }) => theme.text};
transition: all 0.50s linear;
}
Expand Down
8 changes: 8 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function Home(data: any) {
return (
<ThemeProvider theme={activeTheme}>
<GlobalStyles />
<TopBar></TopBar>
<MainContentWrapper id='page-main-grid'>
<MainContent>
<Header>
Expand All @@ -116,6 +117,12 @@ function Home(data: any) {
);
}

const TopBar = styled.div`
background-color: #3f06dd;
height: 6px;
width: 104vw;
`

const Header = styled.div`
display: flex;
justify-content: space-between;
Expand All @@ -126,6 +133,7 @@ const LightSwitch = styled.div`
flex-direction: column;
justify-content: center;
font-size: 30px;
margin: 6px;
`;

const MainContentWrapper = styled.div`
Expand Down
1 change: 0 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
background-color: #3f06dd;
}

a {
Expand Down

1 comment on commit 0b850cd

@vercel
Copy link

@vercel vercel bot commented on 0b850cd Dec 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.