move move frontend to progress-test
This commit is contained in:
19
app/javascript/components/CardGrid/CardGrid.tsx
Normal file
19
app/javascript/components/CardGrid/CardGrid.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React, { FC } from "react";
|
||||
import styled from "styled-components";
|
||||
|
||||
const Grid = styled.div`
|
||||
display: grid;
|
||||
grid-gap: 1rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
|
||||
`;
|
||||
|
||||
type Props = {
|
||||
className?: string
|
||||
children: any
|
||||
}
|
||||
|
||||
export const CardGrid: FC<Props> = ({ children, className }) => (
|
||||
<Grid className={className}>
|
||||
{children}
|
||||
</Grid>
|
||||
);
|
||||
1
app/javascript/components/CardGrid/index.ts
Normal file
1
app/javascript/components/CardGrid/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { CardGrid } from "./CardGrid";
|
||||
Reference in New Issue
Block a user