Unverified Commit 9e70b3de authored by anotherjsguy's avatar anotherjsguy Committed by GitHub

update with-filbert-js (#15968)

- Update dependencies for filbert-js
- Add `@filbert-js/macro` example
parent 4c3d3b71
{
"presets": ["next/babel"],
"plugins": ["macros"]
}
\ No newline at end of file
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
"author": "Kuldeep Keshwar", "author": "Kuldeep Keshwar",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@filbert-js/core": "^0.0.4", "@filbert-js/core": "latest",
"@filbert-js/server-stylesheet": "^0.0.4", "@filbert-js/macro": "latest",
"@filbert-js/server-stylesheet": "latest",
"next": "latest", "next": "latest",
"react": "^16.7.0", "react": "^16.7.0",
"react-dom": "^16.7.0" "react-dom": "^16.7.0"
......
import { Global, styled } from '@filbert-js/core' import { Global, css, styled } from '@filbert-js/macro'
import React from 'react' import React from 'react'
const Text = styled('div')` const Heading = styled.h1`
color: hotpink;
`
const Heading = styled('h1')`
outline: none; outline: none;
text-decoration: none; text-decoration: none;
font-weight: 300; font-weight: 300;
...@@ -14,7 +11,6 @@ const Heading = styled('h1')` ...@@ -14,7 +11,6 @@ const Heading = styled('h1')`
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.01); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.01);
padding: 0.4125em 1.25em; padding: 0.4125em 1.25em;
color: #3793e0; color: #3793e0;
&:hover { &:hover {
border-bottom-color: #4682b4; border-bottom-color: #4682b4;
border-bottom: 1px solid; border-bottom: 1px solid;
...@@ -24,10 +20,10 @@ const Heading = styled('h1')` ...@@ -24,10 +20,10 @@ const Heading = styled('h1')`
text-decoration: none; text-decoration: none;
} }
` `
const Small = styled('div')` const Small = styled.div`
color: black; color: black;
` `
const Container = styled('div')` const Container = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
...@@ -57,7 +53,11 @@ export default function Home() { ...@@ -57,7 +53,11 @@ export default function Home() {
`} `}
/> />
<img src="/filbert.png" width="150" alt="filbert" /> <img
src="https://raw.githubusercontent.com/kuldeepkeshwar/filbert-js/master/filbert.png"
width="150"
alt="filbert"
/>
<Heading> <Heading>
<a target="_black" href="https://filbert-js.vercel.app/"> <a target="_black" href="https://filbert-js.vercel.app/">
{' '} {' '}
...@@ -65,7 +65,13 @@ export default function Home() { ...@@ -65,7 +65,13 @@ export default function Home() {
</a> </a>
</Heading> </Heading>
<Small>A light weight(~1KB) css-in-js solution(framework)🎨</Small> <Small>A light weight(~1KB) css-in-js solution(framework)🎨</Small>
<Text>Next JS is awesome</Text> <div
css={css`
color: hotpink;
`}
>
Nextjs is awesome
</div>
</Container> </Container>
) )
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment