Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #51 from igorkamyshev/langind-style
Browse files Browse the repository at this point in the history
feat(landing): add layout for landing
  • Loading branch information
igorkamyshev authored Feb 20, 2019
2 parents 194b98d + 3b29775 commit 42bb350
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions front/src/features/landing/Landing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.container {
display: grid;

grid-template: 'sign-in sign-out';

align-items: center;
justify-content: space-eventaly;
justify-items: center;
width: 100vw;
height: 100vh;

& > * {
min-width: 350px;

@media (max-width: 768px) {
width: 100%;
}
}

@media (max-width: 768px) {
grid-template:
'sign-in'
'sign-out';
}
}
5 changes: 3 additions & 2 deletions front/src/features/landing/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { useRoutePrefetching } from '../routing'
import { SignIn } from './features/sign-in'
import { SignUp } from './features/sign-up'
import * as styles from './Landing.css'

export const Landing = () => {
useRoutePrefetching(['/hello', '/app'])

return (
<>
<section className={styles.container}>
<SignIn />
<SignUp />
</>
</section>
)
}

0 comments on commit 42bb350

Please sign in to comment.