Skip to content

Commit

Permalink
Web js example improvements (#174)
Browse files Browse the repository at this point in the history
* added web-js example structure

* added setup for web-js example

* fixed prettier issues

* fixed issues with web-js-script example

* fixed formatting issues

* fixed vercel build issues
  • Loading branch information
Aby-JS authored Feb 1, 2024
1 parent d5f08cc commit f5c9ed9
Show file tree
Hide file tree
Showing 42 changed files with 2,153 additions and 393 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- main
- web_js_publish
- web_js_example_improvements

jobs:
deploy:
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ playground/*/node_modules/
playground/*/package-lock.json
playground/*/yalc.lock
playground/*/build/
examples/*/dist/

examples/*/node_modules/
examples/*/package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/components/Demo/DarkModeOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const DarkModeOptions = () => {
<div className='flex mt-8 flex-col gap-2'>
<label
className='subheading'
htmlFor='theme'
htmlFor='dark-mode'
>
Change Dark Mode
</label>
Expand Down
98 changes: 98 additions & 0 deletions examples/web-js-script/assets/prism.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/* PrismJS 1.29.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+typescript */
code[class*='language-'],
pre[class*='language-'] {
color: #ccc;
background: 0 0;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
}
:not(pre) > code[class*='language-'],
pre[class*='language-'] {
background: #2d2d2d;
}
:not(pre) > code[class*='language-'] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
.token.block-comment,
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #999;
}
.token.punctuation {
color: #ccc;
}
.token.attr-name,
.token.deleted,
.token.namespace,
.token.tag {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.function,
.token.number {
color: #f08d49;
}
.token.class-name,
.token.constant,
.token.property,
.token.symbol {
color: #f8c555;
}
.token.atrule,
.token.builtin,
.token.important,
.token.keyword,
.token.selector {
color: #cc99cd;
}
.token.attr-value,
.token.char,
.token.regex,
.token.string,
.token.variable {
color: #7ec699;
}
.token.entity,
.token.operator,
.token.url {
color: #67cdcc;
}
.token.bold,
.token.important {
font-weight: 700;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
Loading

0 comments on commit f5c9ed9

Please sign in to comment.