Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 530 | Rev 532 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
5 stevensc 1
import React from 'react'
530 stevensc 2
import styled from 'styled-components'
3
import { device } from '../../styles/MediaQueries'
5 stevensc 4
 
531 stevensc 5
const LayoutContainer = styled.div`
530 stevensc 6
  background-color: var(--bg-color);
7
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
5 stevensc 8
  height: fit-content;
530 stevensc 9
  width: -moz-available;
10
  width: -webkit-fill-available;
11
  width: fill-available;
12
  p {
13
    color: var(--font-color);
14
    font-size: 14px;
15
    text-align: justify;
5 stevensc 16
  }
531 stevensc 17
  span {
18
    font-size: 0.9rem;
19
  }
530 stevensc 20
  @media ${device.tablet} {
21
    border-radius: var(--border-radius);
22
  }
5 stevensc 23
`
24
 
531 stevensc 25
const LayoutActions = styled.div`
26
  display: flex;
27
  justify-content: space-between;
28
  border-top: 1px solid rgb(211, 211, 211);
29
  padding: 10px;
30
  & > button {
31
    align-items: center;
32
    border-radius: var(--border-radius);
33
    cursor: pointer;
34
    display: inline-flex;
35
    flex-direction: column;
36
    font-size: 0.9rem;
37
    padding: 5px;
38
    position: relative;
39
    &:hover {
40
      background-color: whitesmoke;
41
    }
42
    @media ${device.tablet} {
43
      flex-direction: row;
44
      gap: 0.5rem;
45
      font-size: 1rem;
46
    }
47
  }
48
`
49
 
50
const StyledContainer = ({ children, ...rest }) => {
51
  return <LayoutContainer {...rest}>{children}</LayoutContainer>
5 stevensc 52
}
53
 
531 stevensc 54
const Actions = ({ children, ...rest }) => {
55
  return <LayoutActions {...rest}>{children}</LayoutActions>
56
}
57
 
58
StyledContainer.Actions = Actions
59
 
60
export default StyledContainer