Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9e70b3de
Unverified
Commit
9e70b3de
authored
Aug 11, 2020
by
anotherjsguy
Committed by
GitHub
Aug 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update with-filbert-js (#15968)
- Update dependencies for filbert-js - Add `@filbert-js/macro` example
parent
4c3d3b71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
.babelrc
examples/with-filbert/.babelrc
+4
-0
package.json
examples/with-filbert/package.json
+3
-2
index.js
examples/with-filbert/pages/index.js
+16
-10
No files found.
examples/with-filbert/.babelrc
0 → 100644
View file @
9e70b3de
{
"presets": ["next/babel"],
"plugins": ["macros"]
}
\ No newline at end of file
examples/with-filbert/package.json
View file @
9e70b3de
...
@@ -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"
...
...
examples/with-filbert/pages/index.js
View file @
9e70b3de
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
(
~
1
KB
)
css
-
in
-
js
solution
(
framework
)
🎨
<
/Small
>
<
Small
>
A
light
weight
(
~
1
KB
)
css
-
in
-
js
solution
(
framework
)
🎨
<
/Small
>
<
Text
>
Next
JS
is
awesome
<
/Text
>
<
div
css
=
{
css
`
color: hotpink;
`
}
>
Nextjs
is
awesome
<
/div
>
<
/Container
>
<
/Container
>
)
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment