JuiceUI/index.html
2020-03-03 23:16:34 -05:00

531 lines
No EOL
18 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="Libraries/css/themekit/main-dark.css" rel="stylesheet" id="themekit-css">
<script src="Libraries/js/themekit/menu.js"></script>
<script src="Libraries/js/themekit/modal.js"></script>
<script src="Libraries/js/app.js"></script>
<title>Juice-UI</title>
</head>
<body style="visibility: hidden;" onload="document.body.style.visibility = 'visible'">
<div class="top translucent titlebar ">
<div class="mobile-menu">
<div class="close-mobile-menu" onclick='toggleMenu()'>
<i class="fa fa-close"></i>
</div>
<div class="compact item" for-modal="aboutModal">
<span>About&nbsp;<i class="fa fa-info"></i></span>
</div>
<a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="compact item">
<span>GitHub&nbsp;<i class="fa fa-github"></i></span>
</a>
<div class="compact submenu item" onclick="toggleSubMenu(this)">
<span>
Support&nbsp;<i class="fa fa-caret-right"></i>
</span>
<div class="compact sub item">
Item 1
</div>
<div class="compact sub item">
Item 2
</div>
<div class="compact sub item">
Item 3
</div>
</div>
<div class="compact item" onclick="toggleDisplayMode()">
<span class="display-mode-icon">
</span>
</div>
</div>
<!-- Mobile friendly menu -->
<div class="dropdown item compact" onclick='toggleMenu()'>
<span>
<i class="fa fa-bars"></i>&nbsp;Menu
</span>
</div>
<div class="item" for-modal="aboutModal">
<span>About&nbsp;<i class="fa fa-info"></i></span>
</div>
<a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="item">
<span>GitHub&nbsp;<i class="fa fa-github"></i></span>
</a>
<div class="dropdown item">
<span>
Support&nbsp;<i class="fa fa-caret-down"></i>
</span>
<div class="dropdown-content">
<div class="item">Link 1</div>
<div class="item">Link 2</div>
<div class="item">Link 3</div>
</div>
</div>
<div class="item" onclick="toggleDisplayMode()">
<span class="display-mode-icon"></span>
</div>
</div>
<div class="rainbow gradient masthead">
<p class="content">
<b>Juice-UI</b>
<span class="subheader">oitsjustjose's Custom Themekit</span>
</p>
<div class="bounce down">
<i class="fa fa-angle-down"></i>
</div>
</div>
<div class="container">
<h2 class="centered">
General Theming:
</h2>
<div class="in-center">
<h3>
Font Choices
</h3>
</div>
<div class="in-center">
<table cellspacing="16">
<tr>
<th style="text-align: left;">
Standard Font
</th>
<td sytle="text-align: center">
:
</td>
<td style="text-align: left;">
<a href="https://fonts.google.com/specimen/Spartan" target="_blank">Spartan</a>
</td>
</tr>
<tr>
<th style="text-align: left;">
Monospace Font
</th>
<td sytle="text-align: center">
:
</td>
<td style="text-align: left;">
<a href="https://fonts.google.com/specimen/Fira%20Code" target="_blank">Fira Code</a>
</td>
</tr>
</table>
</div>
<div class="in-center">
<p>
Fira Code's Font Ligatures are enabled too!
</p>
</div>
<div class="in-center">
<p class="code">
const foo = () => {
if(bar == 1 && bar != 2) { return bar }
};
</p>
</div>
<div class="in-center">
<h3>
Coloring:
</h3>
</div>
<div class="in-center">
<p>
There are a few different colors used, but not many. If you want to re-compile the SCSS code, look at
<span class="code">Libraries/css/themekit/_colors.scss</span>.
</p>
</div>
<div class="grid">
<div class="color-demo red">
Red
</div>
<div class="color-demo blue">
Blue
</div>
<div class="color-demo green">
Green
</div>
<div class="color-demo bg">
Background
</div>
<div class="color-demo fg">
Foreground
</div>
</div>
</div>
<div class="wide divider"> </div>
<div class="container">
<h2 class="centered">
Images
</h2>
<h3 class="centered" style="margin-top: 2rem; margin-bottom: 2rem;">
Images have a few different classes that correspond to their sizes:
</h3>
<div class="centered container">
<p>
Thumbnails | <span class="code">class='thumbnail'</span>:
</p>
<img class="thumbnail" src="https://oitsjustjose.com/Resources/img/logo.png">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
Small | <span class="code">class='small'</span>:
</p>
<img class="small" src="https://oitsjustjose.com/Resources/img/logo.png">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
Medium | <span class="code">class='medium'</span>:
</p>
<img class="medium" src="https://i.picsum.photos/id/237/536/354.jpg">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
Large | <span class="code">class='large'</span>:
</p>
<img class="large" src="https://i.picsum.photos/id/1002/4312/2868.jpg">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
Images (and most things actually!) can be blurred using <span class="code">class='blurred'</span>:
</p>
<img class="large blurred" src="https://i.picsum.photos/id/107/5760/3840.jpg">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
You can make them unblurable on hover by adding the <span class="code">class='unblurable'</span>:
</p>
<img class="large blurred unblurable" src="https://i.picsum.photos/id/1021/2048/1206.jpg">
</div>
<div class="divider"></div>
<div class="centered container">
<p>
Lastly, images can be rounded with <span class="code">class='rounded'</span>:
</p>
<img class="large rounded" src="https://i.picsum.photos/id/1002/4312/2868.jpg">
</div>
</div>
<div class="wide divider"> </div>
<div class="container">
<h2 class="centered">Buttons</h2>
<p class="centered" style="margin-top: 2rem; margin-bottom: .5rem;">
Buttons have colors!
</p>
<div class="in-center">
<p class="code">
&lt;button&gt;Plain&lt;/button&gt;<br>
&lt;button class="inverted"&gt;Inverted&lt;/button&gt;<br>
&lt;button class="red"&gt;Red&lt;/button&gt;<br>
&lt;button class="cyan"&gt;Cyan&lt;/button&gt;<br>
&lt;button class="green"&gt;Green&lt;/button&gt;<br>
</p>
</div>
<div class="centered grid" style="max-width:50vw">
<div class="in-center">
<button>Plain</button>
</div>
<div class="in-center">
<button class="inverted">Inverted</button>
</div>
<div class="in-center">
<button class="red">Red</button>
</div>
<div class="in-center">
<button class="cyan">Cyan</button>
</div>
<div class="in-center">
<button class="green">Green</button>
</div>
</div>
<p class="centered" style="margin-top: 2rem; margin-bottom: .5rem;">
Buttons can also be <sub>smol</sub>
</p>
<div class="in-center">
<p class="code">
&lt;button class="small"&gt;Plain&lt;/button&gt;<br>
&lt;button class="small inverted"&gt;Inverted&lt;/button&gt;<br>
&lt;button class="small red"&gt;Red&lt;/button&gt;<br>
&lt;button class="small cyan"&gt;Cyan&lt;/button&gt;<br>
&lt;button class="small green"&gt;Green&lt;/button&gt;<br>
</p>
</div>
<div class="centered grid" style="max-width:50vw">
<div class="in-center">
<button class="small">Plain</button>
</div>
<div class="in-center">
<button class="small inverted">Inverted</button>
</div>
<div class="in-center">
<button class="small red">Red</button>
</div>
<div class="in-center">
<button class="small cyan">Cyan</button>
</div>
<div class="in-center">
<button class="small green">Green</button>
</div>
</div>
<p class="centered" style="margin-top: 2rem; margin-bottom: .5rem;">
Lastly, buttons can be just their outlines!
</p>
<div class="in-center">
<p class="code">
&lt;button class="outlined"&gt;Plain&lt;/button&gt;<br>
&lt;button class="outlined inverted"&gt;Inverted&lt;/button&gt;<br>
&lt;button class="outlined red"&gt;Red&lt;/button&gt;<br>
&lt;button class="outlined cyan"&gt;Cyan&lt;/button&gt;<br>
&lt;button class="outlined green"&gt;Green&lt;/button&gt;<br>
</p>
</div>
<div class="centered grid" style="max-width:50vw">
<div class="in-center">
<button class="outlined">Plain</button>
</div>
<div class="in-center">
<button class="outlined inverted">Inverted</button>
</div>
<div class="in-center">
<button class="outlined red">Red</button>
</div>
<div class="in-center">
<button class="outlined cyan">Cyan</button>
</div>
<div class="in-center">
<button class="outlined green">Green</button>
</div>
</div>
</div>
<div class="wide divider"></div>
<div class="container">
<h2 class="centered">
Modals
</h2>
<p class="centered">
Modals are pretty straight foward to implement:
</p>
<div class="in-center">
<p class="code">
&lt;div&nbsp;id="testModal"&nbsp;class="modal"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class="modal-content"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&nbsp;class="close"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;i&nbsp;class="fa&nbsp;fa-close"&gt;&lt;/i&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&nbsp;class="header"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YouTube&nbsp;Embed&nbsp;Demo&nbsp;In&nbsp;A&nbsp;Modal<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/h2&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class="embed"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;iframe&nbsp;src="https://www.youtube.com/embed/5tjr7g5WFqc"&nbsp;frameborder="0"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allow="accelerometer;&nbsp;encrypted-media;&nbsp;gyroscope;&nbsp;picture-in-picture"&nbsp;allowfullscreen&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/iframe&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br>
&lt;/div&gt;
</p>
</div>
<p class="centered">
This modal won't be shown in any way though! The way to bind the object that shows this modal is by
using
the
<span class="code">for-modal</span> attribute, which should be assigned to the ID of the modal. So, in
this
example we would use <span class="code">for-modal="testModal"</span>, and we can add this to *any*
element!
For
example:
</p>
<div style="margin-top: 4rem; margin-bottom: 4rem;"></div>
<div class="centered">
<p style="cursor: pointer" for-modal="testModal">Modal Triggering Text</p>
<div style="margin-top: 4rem; margin-bottom: 4rem;"></div>
<button style="cursor: pointer" for-modal="testModal">Modal Triggering Button</button>
</div>
<div style="margin-top: 4rem; margin-bottom: 4rem;"></div>
<img style="cursor: pointer" for-modal="testModal" class="centered large rounded"
src="https://i.ytimg.com/vi/5tjr7g5WFqc/maxresdefault.jpg">
</div>
<div class="wide divider"></div>
<h2 class="centered">
Cards!
</h2>
<p class="centered">
Cards are Responsive, and of course can be used to trigger modal popups!
</p>
<div class="container">
<div class="cards">
<div class="card">
<h3 class="header">Card 1</h3>
<p class="content">
Here, have a very nice lorem picsum image courtesy of <span
class="code">i.picsum.photos/id/1002/4312/2868.jpg</span>
<img class="" src="https://i.picsum.photos/id/1002/4312/2868.jpg">
</p>
</div>
<div class="card">
<h3 class="header">Card 2</h3>
<p class="content">
Here, have a very nice lorem picsum image courtesy of <span
class="code">i.picsum.photos/id/237/536/354.jpg</span>
<img class="" src="https://i.picsum.photos/id/237/536/354.jpg">
</p>
</div>
<div class="card" for-modal="card-modal-demo">
<h3 class="header">Card 3</h3>
<p class="content">
Click on me!<br><br>
By click on this card, you should see a Modal pop up as a result with an image!
</p>
</div>
</div>
</div>
<!-- MODALS: -->
<div id="card-modal-demo" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
Card Modal Demo
</h3>
<img class="" src="https://i.picsum.photos/id/107/5760/3840.jpg">
</div>
</div>
<div id="testModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
YouTube Embed Demo In A Modal
</h3>
<div class="embed">
<iframe src="https://www.youtube.com/embed/5tjr7g5WFqc" frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
</div>
</div>
</div>
<div id="aboutModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<div class="container">
<h3 class="header">About This Page</h3>
<p class="content">
<ul>
<li>
This page was written with mobile optimization first!
</li>
<li>
This ThemeKit is written from scratch with minimal <b>NO</b> JQuery (using DOM)
</li>
<li>
This page not only shows you how these things work, but demo to me how they're turning out
too!
</li>
</ul>
</p>
</div>
</div>
</div>
</body>
</html>