Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // home.style.js
- import styled from 'styled-components';
- export const HomeContainer = styled.div`
- display: flex;
- justify-content: space-evenly;
- align-items: center;
- flex-direction: column;
- margin-left: auto;
- margin-right: auto;
- margin-top: 10px;
- padding: 10px;
- width: 95%;
- height: 85vh;
- `;
- export const ScrollRow = styled.div`
- display: inline-flex;
- justify-content: space-evenly;
- align-items: center;
- flex-direction: row;
- margin-left: auto;
- margin-right: auto;
- border-radius: 10px;
- margin-bottom: 1rem;
- /* border: 1px solid var(--accent-color);
- padding: 12px; */
- width: 90vw;
- height: 30vh;
- overflow-x: auto;
- scrollbar-width: thin; /* For Firefox */
- scrollbar-color: var(--secondary-color) transparent; /* For Firefox */
- &::-webkit-scrollbar {
- height: 15px;
- }
- &::-webkit-scrollbar-track {
- background: transparent;
- border: 1px solid var(--accent-color);
- border-radius: 6px;
- }
- &::-webkit-scrollbar-thumb {
- background-color: var(--secondary-color);
- border-radius: 6px;
- border: 3px solid transparent;
- background-clip: content-box;
- }
- `;
- export const HomeRow = styled.div`
- margin-left: 9px;
- margin-right: 9px;
- height: 40vh;
- width: 100%;
- display: flex;
- justify-content: space-evenly;
- flex-direction: column;
- border: 1px solid var(--accent-color);
- border-radius: 10px;
- `;
- export const Card = styled.div`
- flex: 0 0 30%;
- margin: 0 10px;
- background-color: var(--background-color-2);
- border-radius: 10px;
- padding: 10px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- text-align: center;
- max-height: 25vh;
- overflow-y: auto;
- `;
- export const CardTitle = styled.h3`
- width: 100%;
- margin-top: 0.3rem;
- font-family: var(--fontA);
- font-style: italic;
- font-weight: normal;
- font-size: 1rem;
- color: var(--text-color);
- letter-spacing: 1px;
- word-spacing: 1px;
- `;
- export const CardDetails = styled.div`
- width: 95%;
- border: 1px solid var(--secondary-color);
- margin-top: 1rem;
- margin-left: auto;
- margin-right: auto;
- padding: 5px;
- border-radius: 10px;
- box-shadow: 1px 2px 3px var(--secondary-color);
- height: 20vh;
- overflow-y: auto;
- &::-webkit-scrollbar {
- height: 15px;
- }
- &::-webkit-scrollbar-track {
- background: transparent;
- border: 1px solid var(--accent-color);
- border-radius: 6px;
- }
- &::-webkit-scrollbar-thumb {
- background-color: var(--secondary-color);
- border-radius: 6px;
- border: 3px solid transparent;
- background-clip: content-box;
- }
- `;
- export const CardFooter = styled.div`
- display: flex;
- justify-content: space-evenly;
- align-items: center;
- flex-direction: row;
- margin-left: auto;
- margin-right: auto;
- padding: 5px;
- width: 95%;
- `;
- export const CatLabel = styled.span`
- font-family: var(--fontA);
- font-style: italic;
- font-weight: bold;
- font-size: 1.4rem;
- color: var(--text-color);
- letter-spacing: 3px;
- word-spacing: 1px;
- margin-bottom: 1rem;
- margin-left: 2rem;
- margin-top: 1rem;
- `;
- export const CardText = styled.p`
- font-family: var(--fontA);
- font-style: italic;
- font-weight: bold;
- font-size: 1rem;
- color: var(--text-color);
- letter-spacing: 1px;
- `;
- export const AppIcon = styled.img`
- width: 30px;
- height: 30px;
- margin-left: auto;
- margin-right: 1rem;
- border-radius: 10px;
- align-self: center;
- border: 1px solid white;
- `;
- export const CardTitleLink = styled.a`
- font-family: var(--fontA);
- font-style: italic;
- font-weight: bold;
- font-size: 1.54rem;
- color: var(--text-color);
- letter-spacing: 1px;
- word-spacing: 1px;
- `;
- export const FooterSpan = styled.span`
- font-family: var(--fontA);
- font-style: italic;
- font-weight: bold;
- font-size: 0.8rem;
- color: var(--text-color);
- letter-spacing: 1px;
- word-spacing: 1px;
- `;
Advertisement
Add Comment
Please, Sign In to add comment