Skip to content

Commit

Permalink
ui update
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaAppsInc committed Apr 20, 2022
1 parent 8a8db51 commit eca2a2b
Show file tree
Hide file tree
Showing 8 changed files with 422 additions and 35 deletions.
3 changes: 1 addition & 2 deletions home.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class="name"><a class="focusLetter">F</a><a class="focusLetter">R</a><a clas
<div class="contentinfo">
<div class="links">
<div class="link games" id="clig">
<svg xmlns="http://www.w3.org/2000/svg" id="clig" class="icon-tabler icon-tabler-device-gamepad" width="44" height="44" viewBox="0 0 24 24" stroke-width="1" stroke="#ffffff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<svg xmlns="http://www.w3.org/2000/svg" id="clig" class="gml icon-tabler icon-tabler-device-gamepad" width="44" height="44" viewBox="0 0 24 24" stroke-width="1" stroke="#ffffff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="2" y="6" width="20" height="12" rx="2" />
<path d="M6 12h4m-2 -2v4" />
Expand All @@ -36,5 +36,4 @@ <h4 class="patlink">Check out our tiktok:<a class="patlinkc" onclick="tik();">@f
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script src="particlesjs.js"></script>
<script src="./js/home.js"></script>
<script src="./js/home.js"></script>
</html>
31 changes: 23 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="shortcut icon" href="./resources/favicon.ico" id="relt" type="image/x-icon">
<script src="/uv/uv.bundle.js"></script>
<script src="/uv/uv.config.js"></script>
<script async src="https://arc.io/widget.min.js#9RNMA9a8"></script>
<script async src="https://arc.io/widget.min.js#nxu6Wm1G"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', {
Expand Down Expand Up @@ -58,6 +58,18 @@
</svg>
</a>
</div>
<div id="sect" class="sectop">
<a class="full" id="full">
<svg xmlns="http://www.w3.org/2000/svg" class="icon showi" id="iconup" width="32px" height="32px" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="#fff" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 15l-6 -6l-6 6h12" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" class="icon hiddi" id="icondown" width="32px" height="32px" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="#fff" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 15l-6 -6l-6 6h12" transform="rotate(180 12 12)" />
</svg>
</a>
</div>

<div class="droppies animateDropUp hide" id="droppies">
<div class="leftc">
Expand All @@ -77,15 +89,12 @@ <h2 class="gamedropText">Games</h2>
</svg>
<h2 class="bugsText">Bugs</h2>
</a>
<a href="https://fracital.dev" class=" btndrop links">
<h2 class="linksText">Fracital Alts</h2>
</a>
<a id="qlbtm" class="btndrop qlbt">
<svg xmlns="http://www.w3.org/2000/svg" class="rocket" viewBox="0 0 172 172">
<path d="M0,172v-172h172v172z" fill="none"></path>
<path d="M154.67683,17.32318c0,0 -51.47683,-0.12318 -91.61016,40.01016c-1.85295,1.85295 -3.46634,3.87014 -4.92708,5.95729c-7.11553,-0.56892 -18.0076,-0.38307 -23.58281,5.19583c-13.01467,13.01467 -17.35677,34.71354 -17.35677,34.71354l28.66667,-4.09844v9.83177l17.2,17.2h9.83177l-4.09844,28.66667c0,0 21.69888,-4.34211 34.71354,-17.35677c5.5789,-5.57521 5.76476,-16.46728 5.19583,-23.58281c2.08715,-1.46074 4.10434,-3.07413 5.95729,-4.92708c40.13333,-40.13333 40.01016,-91.61016 40.01016,-91.61016zM108.93333,51.6c6.33533,0 11.46667,5.13133 11.46667,11.46667c0,6.33533 -5.13133,11.46667 -11.46667,11.46667c-6.33533,0 -11.46667,-5.13133 -11.46667,-11.46667c0,-6.33533 5.13133,-11.46667 11.46667,-11.46667zM41.27552,114.64427c-2.17867,0.57333 -4.24329,1.66777 -5.94609,3.37057c-7.83173,7.83173 -6.58437,25.22891 -6.58437,25.22891c0,0 17.28277,1.35056 25.21771,-6.58437c1.7028,-1.70281 2.79724,-3.77863 3.37057,-5.95729l-2.62031,-2.62031c-0.258,0.36693 -0.41773,0.79299 -0.75026,1.11979c-5.59,5.59 -13.975,2.79948 -13.975,2.79948c0,0 -2.79625,-8.385 2.79948,-13.975c0.33253,-0.33253 0.74166,-0.48653 1.10859,-0.75026z"></path>
</svg>
<h2 class="qlText">Quick Sites</h2>
<h2 class="qlText">Quick Launch</h2>
</a>
<a class="btndrop settb" id="settb">
<svg xmlns="http://www.w3.org/2000/svg" class="settic icon-tabler icon-tabler-tool" viewBox="0 0 24 24" stroke="transparent" fill="none" stroke-linecap="round" stroke-linejoin="round">
Expand All @@ -95,13 +104,20 @@ <h2 class="qlText">Quick Sites</h2>
<h2 class="settT">Settings</h2>
</a>
<a class="btndrop dropbtn" onclick="lyric();">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icmusic" width="32px" height="32px" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="6" cy="17" r="3" />
<circle cx="16" cy="17" r="3" />
<polyline points="9 17 9 4 19 4 19 17" />
<line x1="9" y1="8" x2="19" y2="8" />
</svg>
<h2 class="lyric">Lyrics Search</h2>
</a>
</div>
</div>
<div class="dialogsL" id="dialogsL">
<div class="ql hidden" id="qld">
<h3 class="infql">Quick Launch sites</h3>
<h3 class="infql">Quick Launch</h3>
<div class="btnsql scroller">
<button class="qlb ggl" id="ggl">Google</button>
<button class="qlb yt" id="yt">YouTube</button>
Expand All @@ -115,12 +131,11 @@ <h3 class="infql">Quick Launch sites</h3>
</div>
</div>
</div>
<iframe src="home.html" frameborder="0" class="frame nonec" id="frame"></iframe>
<iframe src="home.html" frameborder="0" class="frame" id="frame"></iframe>
<!-- <div class="alertbtm" id="alert">
<p class="alert">You can search lyrics from the drop down menu!</a></p>
</div> -->
</body>
<script src="./js/alerts.js"></script>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script src="./js/index.js"></script>
</html>
7 changes: 0 additions & 7 deletions js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ document.getElementById('clig').addEventListener("click", () => {
window.open("./g.html", "_self");
});

document.addEventListener("keydown", ea => {
if (ea.keyCode == "9") {
ea.preventDefault();
parent.document.getElementById("urlbar").focus();
}
});

function patr() {
window.open('https://www.patreon.com/fracital?fan_landing=true');
}
Expand Down
49 changes: 49 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function selectElement(selector) {
return document.querySelector(selector);
}

const full = document.getElementById("full");
const frame = document.getElementById("frame");
const settb = document.getElementById("settb");
const toolb = document.getElementById("toolbar")
Expand Down Expand Up @@ -41,6 +42,45 @@ document.getElementById("btnsrch").addEventListener("click", () => {
go(document.getElementById('urlbar').value);
});

const sectop = document.getElementById("sect");
const fullup = document.getElementById("iconup");
const fulldown = document.getElementById("icondown");

full.addEventListener("click", () => {
if(fullup.classList.contains("showi")) {
fullup.classList.add("hiddi");
fullup.classList.remove("showi");
fulldown.classList.add("showi");
fulldown.classList.remove("hiddi");
document.getElementById("frame").classList.add("fr")
if(droppies.classList.contains("showPP")) {
droppies.classList.remove("showPP");
droppies.classList.add("noOpac");
droppies.classList.add("drph");

myTime = setTimeout(() =>{
droppies.classList.add("hide");
clearTimeout(myTime);
}, 500);
}
sectop.classList.add("fullup");
toolb.classList.add("tophide");
} else if(fullup.classList.contains("hiddi")) {
document.getElementById("frame").classList.remove("fr")
droppies.classList.remove("drph");
fullup.classList.add("showi");
fullup.classList.remove("hiddi");
fulldown.classList.add("hiddi");
fulldown.classList.remove("showi");
if(qld.classList.contains("open")) {
qld.classList.remove("open");
qld.classList.add("hidden");
}
sectop.classList.remove("fullup");
toolb.classList.remove("tophide");
}
});

// Quick Launch buttons //
const ggl = document.getElementById("ggl");
const ytmus = document.getElementById("ytmus");
Expand Down Expand Up @@ -157,6 +197,15 @@ urlbar.addEventListener("focus", () => {
return;
}
});
if(toolb.classList.contains("tophide")) {
toolb.classList.remove("tophide");
sectop.classList.remove("fullup");
document.getElementById("frame").classList.remove("fr");
fulldown.classList.remove("showi");
fulldown.classList.add("hiddi");
fullup.classList.add("showi");
fullup.classList.remove("hiddi");
}
});

function re() {
Expand Down
212 changes: 212 additions & 0 deletions styles/gtemp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
position: absolute;
display: grid;
justify-items: center;
align-items: center;
color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
margin: 8px 0;
}

p {
margin: 0;
}

.spacer {
flex: 1;
}

.toolbar {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 60px;
display: grid;
align-items: center;
background-color: #3d3d3d;
color: white;
font-weight: 600;
justify-items: center;
}

.toolbar img {
margin: 0 16px;
}

.content {
display: flex;
margin: 82px auto 32px;
padding: 0 16px;
max-width: 960px;
flex-direction: column;
align-items: center;
}

svg.material-icons {
height: 24px;
width: auto;
}

svg.material-icons:not(:last-child) {
margin-right: 8px;
}

.card svg.material-icons path {
fill: #888;
}

.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 16px;
}

.card {
all: unset;
border-radius: 4px;
border: 1px solid #eee;
background-color: #fafafa;
height: 40px;
width: 200px;
margin: 0 8px 16px;
padding: 16px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
transition: all 0.2s ease-in-out;
line-height: 24px;
}

.card-container .card:not(:last-child) {
margin-right: 0;
}

.card.card-small {
height: 16px;
width: 168px;
}

.card-container .card:not(.highlight-card) {
cursor: pointer;
}

.card-container .card:not(.highlight-card):hover {
transform: translateY(-3px);
box-shadow: 0 4px 17px rgba(0, 0, 0, 0.35);
}

.card-container .card:not(.highlight-card):hover .material-icons path {
fill: rgb(105, 103, 103);
}

.card.highlight-card {
background-color: #1976d2;
color: white;
font-weight: 600;
border: none;
width: auto;
min-width: 30%;
position: relative;
}

.card.card.highlight-card span {
margin-left: 60px;
}

a {
text-decoration: none;
color: #ffffff;
}

.circle-link:hover {
transform: translateY(-0.25rem);
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
}

footer {
margin-top: 8px;
display: flex;
align-items: center;
line-height: 20px;
}

footer a {
display: flex;
align-items: center;
}

/* Responsive Styles */

@media screen and (max-width: 767px) {
.card-container>*:not(.circle-link), .terminal {
width: 100%;
}
.card:not(.highlight-card) {
height: 16px;
margin: 8px 0;
}
.card.highlight-card span {
margin-left: 72px;
}
svg#rocket-smoke {
right: 120px;
transform: rotate(-5deg);
}
}

@media screen and (max-width: 575px) {
svg#rocket-smoke {
display: none;
visibility: hidden;
}
}

pre {
margin: 0;
font-size: 14px;
}

span {
display: inline-block;
line-height: 20px;
}

span.highlight {
background: #ed67ffd8;
}

span.begin {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}

span.end {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}

pre.merge-end>span:last-child {
border-bottom-right-radius: 0;
}

pre.merge-end+pre>span:last-child {
border-top-right-radius: 0;
}

pre.merge-begin>span:first-child {
border-bottom-left-radius: 0;
}

pre.merge-begin+pre>span:first-child {
border-top-left-radius: 0;
}
Loading

0 comments on commit eca2a2b

Please sign in to comment.