Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

import React from 'react'
import { styled } from 'styled-components'

const LocationWidget = styled.div`
  background: var(--bg-color);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  height: fit-content;
  box-shadow: var(--light-shadow);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;

  * {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  input {
    width: -webkit-fill-available;
  }

  h3 {
    font-weight: 600;
    color: var(--subtitle-color);
  }

  ul {
    border-top: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;

    label {
      cursor: pointer;
    }
  }

  @media (max-width: 768px) {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
`

const WidgetLayout = ({ children }) => {
  return <LocationWidget>{children}</LocationWidget>
}

export default WidgetLayout