4466ba436b
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
77 lines
1.6 KiB
JavaScript
77 lines
1.6 KiB
JavaScript
import { Global, css, styled } from "@filbert-js/macro";
|
|
|
|
import React from "react";
|
|
|
|
const Heading = styled.h1`
|
|
outline: none;
|
|
text-decoration: none;
|
|
font-weight: 300;
|
|
letter-spacing: 1px;
|
|
transition: all 0.2s ease;
|
|
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.01);
|
|
padding: 0.4125em 1.25em;
|
|
color: #3793e0;
|
|
&:hover {
|
|
border-bottom-color: #4682b4;
|
|
border-bottom: 1px solid;
|
|
}
|
|
a {
|
|
color: #3793e0;
|
|
text-decoration: none;
|
|
}
|
|
`;
|
|
const Small = styled.div`
|
|
color: black;
|
|
`;
|
|
const Container = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
> * + * {
|
|
margin-top: 1rem;
|
|
}
|
|
`;
|
|
export default function Home() {
|
|
return (
|
|
<Container>
|
|
<Global
|
|
styles={`
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
|
|
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
|
|
sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
`}
|
|
/>
|
|
<img
|
|
src="https://raw.githubusercontent.com/kuldeepkeshwar/filbert-js/master/filbert.png"
|
|
width="150"
|
|
alt="filbert"
|
|
/>
|
|
<Heading>
|
|
<a target="_black" href="https://filbert-js.vercel.app/">
|
|
{" "}
|
|
Welcome to Filbert!
|
|
</a>
|
|
</Heading>
|
|
<Small>A light weight(~1KB) css-in-js solution(framework)🎨</Small>
|
|
<div
|
|
css={css`
|
|
color: hotpink;
|
|
`}
|
|
>
|
|
Nextjs is awesome
|
|
</div>
|
|
</Container>
|
|
);
|
|
}
|