-
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.
* Enable more sandpack customization * Clean up * Polish * Start on Getting Started documentation * Structure first pass of documentation * Write design principles * Change where sandpack source files are stored * Add css support * Draft CSS docs * Polish styles * Polish * Polish * Document initialization * Document nesting * Add docs for nesting and reusing * Use local manawave build * Change CTA * Polish * Draft * Document * Document * Document
- Loading branch information
Showing
34 changed files
with
1,034 additions
and
41 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
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 @@ | ||
import "manawave"; |
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,27 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html, | ||
body, | ||
body > main { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
main { | ||
padding: 0.5rem; | ||
} | ||
|
||
.text-manawave { | ||
font-family: sans-serif; | ||
font-size: 3rem; | ||
} | ||
|
||
.resize--parent { | ||
widdth: 100%; | ||
height: 100%; | ||
} |
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
47 changes: 47 additions & 0 deletions
47
web/src/content/docs/docs/guides/_src/css/content/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="./style.css"> | ||
<script type="module" src="./index.js"></script> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<h1>Styling your marquee content</h1> | ||
<h2>Applying CSS</h2> | ||
<h3>Using different selectors</h3> | ||
<manawave-marquee> | ||
<div class="content">content</div> | ||
<div id="special" class="content">content</div> | ||
<div id="special" class="content" style="color: hotpink">content</div> | ||
</manawave-marquee> | ||
<h2>Different layouts</h2> | ||
<h3>Grid</h3> | ||
<manawave-marquee> | ||
<div class="grid grid-col--2 grid-row--2"> | ||
<div class="content">1</div> | ||
<div class="content">2</div> | ||
<div class="content">3</div> | ||
<div class="content">4</div> | ||
</div> | ||
</manawave-marquee> | ||
<h3>Inline block wrapping</h3> | ||
<p>If you have a really big monitor and browser window, you can still see this by resizing your browser around. | ||
</p> | ||
<manawave-marquee autoplay> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
<div class="inline-block border bg--pink w--50 h--50 m--small"></div> | ||
</manawave-marquee> | ||
</main> | ||
</body> | ||
|
||
</html> |
56 changes: 56 additions & 0 deletions
56
web/src/content/docs/docs/guides/_src/css/content/style.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,56 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
h1 { | ||
font-size: 0.75rem; | ||
font-weight: normal; | ||
text-transform: uppercase; | ||
} | ||
|
||
.content { | ||
font-family: sans-serif; | ||
font-weight: bold; | ||
|
||
margin: 0.5rem; | ||
} | ||
|
||
.inline-block { | ||
display: inline-block; | ||
} | ||
|
||
.grid { | ||
display: grid; | ||
} | ||
|
||
.grid-col--2 { | ||
grid-template-columns: auto auto; | ||
} | ||
|
||
.grid-row--2 { | ||
grid-template-rows: auto auto; | ||
} | ||
|
||
.border { | ||
border: 1px solid black; | ||
} | ||
|
||
.bg--pink { | ||
background: pink; | ||
} | ||
|
||
.w--50 { | ||
width: 50px; | ||
} | ||
|
||
.h--50 { | ||
height: 50px; | ||
} | ||
|
||
.m--small { | ||
margin: 0.5rem; | ||
} | ||
|
||
#special { | ||
color: blue; | ||
} |
46 changes: 46 additions & 0 deletions
46
web/src/content/docs/docs/guides/_src/css/marquee/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="./style.css"> | ||
<script type="module" src="./index.js"></script> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<h1>Styling your marquee container</h1> | ||
<h2>Applying CSS</h2> | ||
<h3>Using element selectors</h3> | ||
<manawave-marquee> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<h3>With generic classes</h3> | ||
<manawave-marquee class="marquee"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<manawave-marquee class="marquee"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<h3>With an ID</h3> | ||
<manawave-marquee id="selected" class="marquee"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<h3>Using inline styles</h3> | ||
<manawave-marquee style="color: blue" class="marquee"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<h2>Resizing</h2> | ||
<h3>Limited marquee</h3> | ||
<manawave-marquee class="marquee marquee--small"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
<h3>Large, filling marquee</h3> | ||
<manawave-marquee class="marquee marquee--fill"> | ||
<div>styling the marquee</div> | ||
</manawave-marquee> | ||
</main> | ||
</body> | ||
|
||
</html> |
34 changes: 34 additions & 0 deletions
34
web/src/content/docs/docs/guides/_src/css/marquee/style.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,34 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
h1 { | ||
font-size: 0.75rem; | ||
font-weight: normal; | ||
text-transform: uppercase; | ||
} | ||
|
||
manawave-marquee { | ||
font-family: sans-serif; | ||
} | ||
|
||
.marquee { | ||
padding: 1rem; | ||
margin: 1rem; | ||
|
||
border: 1px solid black; | ||
} | ||
|
||
.marquee--small { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
|
||
.marquee--fill { | ||
height: 200px; | ||
} | ||
|
||
#selected { | ||
border-radius: 1rem; | ||
background: bisque; | ||
} |
Oops, something went wrong.