hand JSBloqs
hand GutenBloqs
hand kuworking
What?
nochedía
Card-3D
By kuworking
import React from 'react'
import styled from '@emotion/styled'

export default () => {
  return (
    <>
      <link href="https://fonts.googleapis.com/css2?family=Kulim+Park&display=swap" rel="stylesheet"></link>
      <link href="/20201011_iframe.css" type="text/css" rel="stylesheet" />
      <Card id="bloq">
        <img src="https://source.unsplash.com/V4EOZj7g1gw/250x175" />
        <div className="title">Title</div>
        <div className="text">Now is the winter of our discontent</div>
        <Button>See</Button>
      </Card>
    </>
  )
}

const Card = styled.div`
  font-family: 'Kulim Park', sans-serif;
  max-width: 250px;
  border-radius: 3px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  --shadow1: #4e4e4e;

  background: #efefef;
  box-shadow: ${() => [...Array(10)].map((_, i) => `${i}px ${i}px 0px 0px var(--shadow1)`).join(',')};

  .title {
    font-size: 2.5rem;
    font-weight: 700;
    padding: 10px;
  }

  .text {
    padding: 0px 10px;
  }

  & > img {
    width: 250px;
    height: 175px;
  }
`

const Button = styled.button`
  cursor: pointer;
  width: fit-content;
  min-width: 200px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 30px 0px;
  padding: 10px;
  border-radius: 3px;

  background: #ffffff;
  border: 1px solid #a9a9a9;
  color: #616161;
  font-weight: 700;

  transition: background 0.2s ease-in;
  &:hover {
    background: #e2e2e2;
  }
`
Privacidad
by kuworking.com
[ 2020 >> kuworking ]