Skip to content

Commit

Permalink
feat(features/oauth): just jsx
Browse files Browse the repository at this point in the history
just jsx
ISSUES CLOSED: #4

ISSUES CLOSED: #14
  • Loading branch information
brutalsignature committed Aug 4, 2020
1 parent c1adbf1 commit 1d82ad1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/features/oauth/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { LoginButton } from './login-button';
4 changes: 4 additions & 0 deletions src/features/oauth/components/login-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import React from 'react';
import { button } from 'ui/atoms';

export const LoginButton = () => <button.Base>Sign in</button.Base>;
1 change: 1 addition & 0 deletions src/features/oauth/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './components';
13 changes: 10 additions & 3 deletions src/features/searchbar/organisms/searchbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { ContentCenteredTemplate, IconLogo, button } from 'ui';
import { LoginButton } from 'features/oauth';

import { Search } from '../molecules';

Expand All @@ -13,7 +14,10 @@ export const Searchbar = () => {
<SearchWrapper>
<Search />
</SearchWrapper>
<Avatar />
<LoginBlock>
{/* <Avatar /> */}
<LoginButton />
</LoginBlock>
<button.Base>New card</button.Base>
</Nav>
</ContentCenteredTemplate>
Expand All @@ -26,25 +30,28 @@ const Container = styled.header`
box-shadow: 0px 6px 9px #f6f5f8;
display: flex;
flex-shrink: 0;
height: 72px;
justify-content: center;
position: relative;
`;

const Nav = styled.nav`
align-items: center;
display: flex;
height: 72px;
`;

const SearchWrapper = styled.div`
flex-grow: 1;
margin-left: 3.125rem;
`;

const LoginBlock = styled.div`
margin: 0 1.125rem;
`;

export const Avatar = styled.div`
background-color: #f4f2f7;
border-radius: 3px;
height: 42px;
margin: 1.125rem;
width: 42px;
`;
Empty file added src/pages/oauth/done/index.tsx
Empty file.

0 comments on commit 1d82ad1

Please sign in to comment.