Created
March 15, 2021 15:52
-
-
Save gtokman/18b9d5a0fd70241aea1a2a3af1b7e27f to your computer and use it in GitHub Desktop.
Scrollable List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logo from "./logo.svg"; | |
| import "./App.css"; | |
| import styled from "styled-components"; | |
| function App() { | |
| return ( | |
| <Container> | |
| <WrapperCard> | |
| <Card></Card> | |
| <Card></Card> | |
| {/* <Card></Card> eventually loop */} | |
| </WrapperCard> | |
| </Container> | |
| ); | |
| } | |
| const Container = styled.div` | |
| background: #36393e; | |
| width: 100%; | |
| height: 100%; | |
| position: fixed; | |
| display: flex; | |
| justify-content: center; | |
| flex-direction: row; | |
| `; | |
| const WrapperCard = styled.div` | |
| display: flex; | |
| justify-content: center; | |
| flex-direction: column; | |
| overflow: auto; | |
| height: 100%; | |
| white-space: nowrap; | |
| `; | |
| const Card = styled.div` | |
| margin: 20px; | |
| background: #fff; | |
| height: 400px; | |
| width: 400px; | |
| border-radius: 20px; | |
| `; | |
| export default App; |
Author
gtokman
commented
Mar 15, 2021

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment