-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4ddc74
commit 1799707
Showing
16 changed files
with
158 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/docs-site/src/components/ButtonLink/ButtonLink.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Link } from "../Router"; | ||
import "./ButtonLink.css"; | ||
|
||
export function ButtonLink({ label, href }: { label: string; href: string }) { | ||
return ( | ||
<Link className="ButtonLink" href={href}> | ||
{label} | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={24} | ||
height={24} | ||
fill="currentColor" | ||
viewBox="0 -960 960 960" | ||
> | ||
<path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" /> | ||
</svg> | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./ButtonLink"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.Layout { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.Layout main { | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
} | ||
|
||
.Layout nav { | ||
background-color: rgb(247, 249, 252); | ||
flex-grow: 0; | ||
display: flex; | ||
border-bottom: 1px solid rgb(220, 220, 220); | ||
} | ||
|
||
.Layout nav ul { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
} | ||
|
||
.Layout nav li { | ||
height: 100%; | ||
} | ||
|
||
.Layout nav a { | ||
padding: 16px; | ||
display: flex; | ||
align-items: center; | ||
text-decoration: none; | ||
color: #595959; | ||
transition: all 0.1s; | ||
} | ||
|
||
.Layout nav a:hover { | ||
background-color: #e7e7e7; | ||
} | ||
|
||
.Layout nav a:focus { | ||
background-color: #e7e7e7; | ||
} | ||
|
||
.Layout nav a:active { | ||
background-color: #dddddd; | ||
} | ||
|
||
.Layout nav a[aria-current="page"] { | ||
background-color: #dddddd; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./Layout"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./Router"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./HomePage"; |
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
packages/docs-site/src/pages/PlaygroundPage/PlaygroundPage.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.PlaygroundPage { | ||
font-family: sans-serif; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
padding: 16px; | ||
} | ||
|
||
.PlaygroundPage h1, | ||
.PlaygroundPage h2 { | ||
margin: 0; | ||
font-weight: 400; | ||
color: #595959; | ||
} | ||
|
||
.PlaygroundPage h1 { | ||
font-size: 1.5rem; | ||
margin-bottom: 8px; | ||
} | ||
|
||
.PlaygroundPage h2 { | ||
padding: 8px; | ||
font-size: 1.2rem; | ||
background-color: rgb(245, 245, 245); | ||
} | ||
|
||
.PlaygroundPage .error { | ||
color: red; | ||
min-height: 30px; | ||
padding-top: 4px; | ||
} | ||
|
||
.PlaygroundPage .editor-column { | ||
flex-basis: 33.33%; | ||
} | ||
|
||
.PlaygroundPage .editor { | ||
border: 1px solid rgb(221, 221, 221); | ||
} | ||
|
||
.PlaygroundPage .error-viewer-container { | ||
flex-grow: 1; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.PlaygroundPage .error-viewer { | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
overflow: hidden; | ||
} | ||
|
||
.PlaygroundPage .tag { | ||
display: inline-block; | ||
border-radius: 8px; | ||
background-color: #dedede; | ||
padding: 8px; | ||
padding-top: 4px; | ||
padding-bottom: 4px; | ||
vertical-align: middle; | ||
font-size: 0.9rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./PlaygroundPage"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters