-
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.
Merge pull request #69 from tone-row/hide-docs
docs(docs): under construction page
- Loading branch information
Showing
12 changed files
with
1,045 additions
and
80 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> | ||
|
||
declare module "*.svg" { | ||
const content: any; | ||
export default content; | ||
} |
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,10 @@ | ||
module.exports = { | ||
target: "experimental-serverless-trace", | ||
webpack(config) { | ||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
use: ["@svgr/webpack"], | ||
}); | ||
return config; | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"sass": "^1.32.8" | ||
}, | ||
"devDependencies": { | ||
"@svgr/webpack": "^5.5.0", | ||
"concurrently": "^6.0.0" | ||
} | ||
} |
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,60 @@ | ||
import { Code, InlineCode, Page, Section, Title } from "../components/theme"; | ||
import { Type, Box } from "slang"; | ||
import React from "react"; | ||
import Link from "next/link"; | ||
|
||
export default function Home() { | ||
return ( | ||
<Page> | ||
<Section> | ||
<Title>Slang</Title> | ||
<Type size={1}> | ||
Welcome! This the documentation for the open source UI component | ||
library called Slang. It's not quite ready to use but it will be soon. | ||
</Type> | ||
<Type size={1}>Stay tuned, there's more to come! 🍿</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h2" size={2}> | ||
Why? | ||
</Type> | ||
<Type> | ||
The idea driving Slang is that we can do a large part of what's needed | ||
to style our applications with a small number of abstractions. In | ||
fact, Slang offers only <u>two</u> exported components. | ||
</Type> | ||
<Type>In additon to that, Slang is:</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h4" size={1}> | ||
✅ CSS First | ||
</Type> | ||
<Type> | ||
The internet has a had a zero-runtime approach to styling since 1996. | ||
</Type> | ||
<Type> | ||
Whenever possible we use CSS over an equivalent from the javascript | ||
ecosystem. This includes bundling:{" "} | ||
<InlineCode><link rel="stylesheet href="..."></InlineCode> is | ||
already great at that. It also includes dynamic styles, for which | ||
psuedo-classes and css custom properties have our back. | ||
</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h4" size={1}> | ||
✅ Continuous By Design | ||
</Type> | ||
<Type> | ||
Although there are plenty of reasons we still need media queries, | ||
there is a lot to be gained by making our designs more fluid at the | ||
lowest levels. Slang has fluid type and fluid spacing units built in, | ||
as well as a continuous exponential type scale. The result is a lot | ||
better use of screen-space over a broader range of devices. | ||
</Type> | ||
</Section> | ||
<Box as="button" background="palette-black-0" p={3}> | ||
<Type color="palette-white-0">Cool Button!</Type> | ||
</Box> | ||
</Page> | ||
); | ||
} |
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,9 @@ | ||
.Warning { | ||
width: 85vw; | ||
height: 45vh; | ||
object-fit: contain; | ||
filter: drop-shadow(0 1.1px 2.6px rgba(0, 0, 0, 0.02)) | ||
drop-shadow(0 3.1px 6.3px rgba(0, 0, 0, 0.028)) | ||
drop-shadow(0 6.2px 12.9px rgba(0, 0, 0, 0.035)); | ||
transform: translateY(-20px); | ||
} |
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 |
---|---|---|
@@ -1,60 +1,20 @@ | ||
import { Code, InlineCode, Page, Section, Title } from "../components/theme"; | ||
import { Type, Box } from "slang"; | ||
import React from "react"; | ||
import Link from "next/link"; | ||
import { Box, Type } from "slang"; | ||
import Warning from "../components/warning.svg"; | ||
import styles from "./index.module.css"; | ||
|
||
export default function Home() { | ||
export default function Index() { | ||
return ( | ||
<Page> | ||
<Section> | ||
<Title>Slang</Title> | ||
<Type size={1}> | ||
Welcome! This the documentation for the open source UI component | ||
library called Slang. It's not quite ready to use but it will be soon. | ||
</Type> | ||
<Type size={1}>Stay tuned, there's more to come! 🍿</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h2" size={2}> | ||
Why? | ||
</Type> | ||
<Type> | ||
The idea driving Slang is that we can do a large part of what's needed | ||
to style our applications with a small number of abstractions. In | ||
fact, Slang offers only <u>two</u> exported components. | ||
</Type> | ||
<Type>In additon to that, Slang is:</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h4" size={1}> | ||
✅ CSS First | ||
</Type> | ||
<Type> | ||
The internet has a had a zero-runtime approach to styling since 1996. | ||
</Type> | ||
<Type> | ||
Whenever possible we use CSS over an equivalent from the javascript | ||
ecosystem. This includes bundling:{" "} | ||
<InlineCode><link rel="stylesheet href="..."></InlineCode> is | ||
already great at that. It also includes dynamic styles, for which | ||
psuedo-classes and css custom properties have our back. | ||
</Type> | ||
</Section> | ||
<Section> | ||
<Type as="h4" size={1}> | ||
✅ Continuous By Design | ||
</Type> | ||
<Type> | ||
Although there are plenty of reasons we still need media queries, | ||
there is a lot to be gained by making our designs more fluid at the | ||
lowest levels. Slang has fluid type and fluid spacing units built in, | ||
as well as a continuous exponential type scale. The result is a lot | ||
better use of screen-space over a broader range of devices. | ||
</Type> | ||
</Section> | ||
<Box as="button" background="palette-black-0" p={3}> | ||
<Type color="palette-white-0">Cool Button!</Type> | ||
<Box root content="center" items="center"> | ||
<Box gap={12}> | ||
<Warning className={styles.Warning} /> | ||
<Box content="center" flow="column" gap={3}> | ||
<Type size={2} weight="700"> | ||
Stay tuned! | ||
</Type> | ||
<Type size={2}> Slang is not quite ready.</Type> | ||
</Box> | ||
</Box> | ||
</Page> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.
9efa050
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: