Merge pull request #12 from pattern-x/feature/add-example-link

Added online examples link
This commit is contained in:
pattern-x
2022-11-17 17:25:58 +08:00
committed by GitHub
3 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# gemini-viewer-examples
Examples and demos for gemini-viewer sdk
Examples and demos for gemini-viewer sdk.
[Online examples](https://pattern-x.github.io/gemini-viewer-examples/)
# Set up the example project
npm install

View File

@ -16,3 +16,11 @@
height: 100%;
overflow: hidden;
}
.demo .github {
position: absolute;
bottom: 20px;
left: 10px;
cursor: pointer;
text-decoration: underline;
}

View File

@ -21,6 +21,9 @@ function Demo() {
<div className="content">
<CodeEditor></CodeEditor>
</div>
<div className="github">
<a href="https://github.com/pattern-x/gemini-viewer-examples">Github repo</a>
</div>
</div>
)
}