-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce duplication by importing readme into demo site
- Loading branch information
Showing
13 changed files
with
208 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,3 @@ package | |
|
||
# deploy config | ||
.netlify | ||
|
||
# auto-generated | ||
src/docs.svx |
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
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 |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
</head> | ||
|
||
<body> | ||
%svelte.body% | ||
<div id="svelte">%svelte.body%</div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
<h1 align="center"> | ||
<img src="https://raw.githubusercontent.com/janosh/svelte-bricks/main/static/favicon.svg" alt="Svelte Bricks" height=60> | ||
<br> Svelte Bricks | ||
</h1> | ||
|
||
<h4 align="center"> | ||
|
||
[![NPM version](https://img.shields.io/npm/v/svelte-bricks?color=blue&logo=NPM)](https://npmjs.com/package/svelte-bricks) | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/c3213069-e3cc-45ef-a446-b2358b9a35fb/deploy-status)](https://app.netlify.com/sites/svelte-bricks/deploys) | ||
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/janosh/svelte-bricks/main.svg)](https://results.pre-commit.ci/latest/github/janosh/svelte-bricks/main) | ||
|
||
</h4> | ||
|
||
Naive implementation in Svelte without column balancing. |
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,44 @@ | ||
<script lang="ts"> | ||
import GitHubCorner from 'svelte-github-corner' | ||
import Readme from '../../readme.md' | ||
import Collapsible from '../components/Collapsible.svelte' | ||
import Example from '../components/Example.svelte' | ||
import Header from '../components/Header.svx' | ||
</script> | ||
|
||
<GitHubCorner | ||
href="https://github.com/janosh/svelte-bricks" | ||
--ghc-color="var(--bodyBg)" | ||
--ghc-bg="white" | ||
/> | ||
|
||
<Header /> | ||
|
||
<Collapsible title={[`Click for docs`, `Close docs`]}> | ||
<Readme /> | ||
</Collapsible> | ||
|
||
<Example /> | ||
|
||
<style> | ||
:global(h1) { | ||
display: flex; | ||
font-size: clamp(2rem, 2rem + 2vw, 3rem); | ||
place-items: center; | ||
place-content: center; | ||
margin: 1.2em 0; | ||
} | ||
:global(h1 br) { | ||
display: none; | ||
} | ||
@media (max-width: 600px) { | ||
:global(h1) { | ||
flex-direction: column; | ||
gap: 1ex; | ||
line-height: 1.1em; | ||
} | ||
} | ||
:global(.hide-in-docs) { | ||
display: none; | ||
} | ||
</style> |
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
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
Oops, something went wrong.