-
Notifications
You must be signed in to change notification settings - Fork 156
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
Showing
34 changed files
with
914 additions
and
1,861 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div class="alert" :class="type"> | ||
<Markdown unwrap="p" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
type: { | ||
type: String, | ||
default: 'info' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.alert { | ||
padding: 1rem; | ||
border-radius: 5px; | ||
} | ||
.info { | ||
background: #acdffa; | ||
} | ||
.success { | ||
background: #acfab2; | ||
} | ||
.warning { | ||
background: #faacac; | ||
} | ||
</style> |
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,22 @@ | ||
<template> | ||
<div class="source-container"> | ||
<div> | ||
<Markdown /> | ||
</div> | ||
<div> | ||
<Markdown use="preview" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.source-container { | ||
display: flex; | ||
} | ||
.source-container div { | ||
flex: 1; | ||
padding: 1rem; | ||
border: 1px solid #ccc; | ||
overflow: auto; | ||
} | ||
</style> |
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,103 @@ | ||
<div id="span"> | ||
|
||
# Span | ||
| Syntax | Preview | | ||
| ---------------- | -------------- | | ||
| `[Span Content]` | [Span Content] | | ||
|
||
</div> | ||
|
||
|
||
# Components | ||
|
||
## Simple usage | ||
|
||
::code-preview | ||
|
||
:H3[Source] | ||
|
||
```md | ||
::alert | ||
The alert component. | ||
:: | ||
``` | ||
|
||
#preview | ||
|
||
:H3[Preview] | ||
|
||
::alert | ||
The alert component. | ||
:: | ||
:: | ||
|
||
|
||
## With inline attributes | ||
|
||
::code-preview | ||
|
||
:H3[Source] | ||
|
||
```md | ||
::alert{type=success} | ||
The alert component. | ||
:: | ||
``` | ||
|
||
#preview | ||
|
||
:H3[Preview] | ||
|
||
::alert{type=success} | ||
The alert component. | ||
:: | ||
:: | ||
|
||
|
||
## With YAML attributes | ||
|
||
::code-preview | ||
|
||
:H3[Source] | ||
|
||
```md | ||
::alert | ||
--- | ||
type: warning | ||
--- | ||
The alert component. | ||
:: | ||
``` | ||
|
||
#preview | ||
|
||
:H3[Preview] | ||
|
||
::alert | ||
--- | ||
type: warning | ||
--- | ||
The alert component. | ||
:: | ||
:: | ||
|
||
## With inline styles (Not Recommended) | ||
|
||
::code-preview | ||
|
||
:H3[Source] | ||
|
||
```md | ||
::alert{style="background: tomato; color: white"} | ||
The alert component. | ||
:: | ||
``` | ||
|
||
#preview | ||
|
||
:H3[Preview] | ||
|
||
::alert{style="background: tomato; color: white"} | ||
The alert component. | ||
:: | ||
:: |
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,5 @@ | ||
--- | ||
title: Page 1 | ||
--- | ||
|
||
Page 1 |
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,5 @@ | ||
--- | ||
title: page 2 | ||
--- | ||
|
||
Page 2 |
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,5 @@ | ||
--- | ||
title: Sub page | ||
--- | ||
|
||
Sub 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: page 2 | ||
--- | ||
|
||
Page 2 |
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,5 @@ | ||
--- | ||
title: Home | ||
--- | ||
|
||
This is home. |
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,5 @@ | ||
--- | ||
title: Home | ||
--- | ||
|
||
This is home. |
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
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.