142
CSS in JS Playground
source link: https://css-in-js-playground.com
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
CSS in JS Playground
import React from 'react';
import styled from 'styled-components';
import Form from './form';
import Header from './header';
const Container = styled.main`
display: flex;
flex-direction: column;
min-height: 100%;
width: 100%;
background-color: #f6f9fc;
`;
const Stripe = styled.div`
height: 10vh;
overflow: hidden;
transform: skewY(-8deg);
transform-origin: 0;
background: linear-gradient(-150deg, rgba(255, 255, 255, 0) 40%, #ddecf7 70%);
`;
export default function Login() {
return (
<Container>
<Header />
<Stripe />
<Form fields={['email', 'phoneNumber']} />
</Container>
);
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK