From 8e9064e9e82c62006a9809bb7c6246fdd28069f1 Mon Sep 17 00:00:00 2001 From: callum <116295240+callumjt@users.noreply.github.com> Date: Sat, 3 Feb 2024 14:46:18 +0000 Subject: [PATCH] Add files via upload --- images/arrow.svg | 1 + images/question.svg | 1 + images/tw.webp | Bin 0 -> 4468 bytes index.html | 28 +++++++++++ scripts/site.js | 22 ++++++++- style.css | 116 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 166 insertions(+), 2 deletions(-) create mode 100644 images/arrow.svg create mode 100644 images/question.svg create mode 100644 images/tw.webp diff --git a/images/arrow.svg b/images/arrow.svg new file mode 100644 index 0000000..f6ed1c5 --- /dev/null +++ b/images/arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/question.svg b/images/question.svg new file mode 100644 index 0000000..b3e332a --- /dev/null +++ b/images/question.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/tw.webp b/images/tw.webp new file mode 100644 index 0000000000000000000000000000000000000000..cd0f78f80763b025e8343003e0dc42a727f75c5b GIT binary patch literal 4468 zcmV-)5sU6pNk&F&5dZ*JMM6+kP&iCr5dZ)$U%(d-RfmGMZJ2~V?Cvs%hzVe63#bxS zbwP(M1KN@0*U)YSV5@B@Q^IsIHyl5wgmIS>jeGRu%Ff3ke{#Zcce`hN1|4^Ice%Fr z_Xqpi`<%Tm1^gvoJHjP>;YfHIqJ?Q>@0KXQA++7W+?+ZbI@mE1l1++rK?8I^1B9;} zLOO8QUBV72feuJD``3E$3z5(&qyc*P)~kSsI`qqNw+8N7C!+~Mh$!LU(gE32goMxp z>nq{rB$6aaQY6XTBO|L=`T7#a}po1QCe4~ke&|QyCYg$ih(4gZ%Gy03})a~1* z+T*cP*c6r;OU1T-YkolMpo0#6G^1y9Jm_bBKYR$Isanb(?&n~ql1diGeP}|S;sSW^vrBHsKfE(Lm&E3&=1A--4#2E-8=_q zLV}5q9BqlE>fB=zx#)!$r{nrRm?$e75^d<8vgvH%hj>_ z=(2QC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40^Sn`Cb=XubKq`UK*Mr4F$QWz$I5M%0NV9 z+>-Yyii(O>7p+J;1-qWWHekSK3xOi287CL79j|U6wDYKlwYvw$PG6H>*;FEa@v@Mt z%Ip!CV=+)qXUYXuSO_Y#7JmZ{v-y|@X85&%R1zyqAx&Z_!N7PDh^LURc27mCjw-SsLy z|Md%^5VIsYT3b6sARTYl{W(xh~6s~OnUkJS{7trg7im(COn?Dr=Z`)_Vwm*BrGq@so(n@;bY%YkD3#O&%nLM3%wg!5nG6woiHKMq9@q$R zr*cY`6>)Gi>>@;v=>bNh%K5FL`O=-zpb7@2O%%<#UWwU61i@=sn`}ofEBw8GsQ#{lVdvZun`b7gVs*$Wy=Po@&&`t@eC&y zX_v+0O*tk=^pZWKY=Q}b&@rJ2SD>8 zN|J;UHxc5O{NC`vYnFYJlE2WQ9j!i7HvbducuvGCloH9=XLYN-3*W`4!)&TZgSr)4 z5+b?#w~rwC5wFvsjc!nL)Sr4fj`OI^?5Mg`GD-m+qv27KJ%D{v3;9 zMp0jqXt#-<(&4WG?d`TD&LA7~L9v!bOd=j4B19BLf^Zb&Iq18hvqpvmzy7)&mTi-D zTY9Q8?KuB;#kw$iF|!c82{Z%RL>{P^`W5Iwe{b1+4DFGmF-8wpQ_K!we)E>3GSGY- zm;Ms;#_@l4O&iK?#iQpur@vP!68naPlC(d0@ErVvCp
+
+ +
+ +
+ + +
@@ -26,5 +37,22 @@
+ + + X + +

What is UEG?

+

UEG aims to have an all in one library to simplify finding extensions.

+
+ +

How do i have my extension added?

+

Message @callumjt on discord with your github repo of all your extensions (WE WILL NOT HOST YOUR SB3'S OR THUMBNAILS, YOU MUST PROVIDE IT YOURSELF).

+
+ +

How do i get my extensions removed?

+

Message @callumjt on discord to request to have your extensions taken of here.

+
+ +
diff --git a/scripts/site.js b/scripts/site.js index 65132bd..4c2bd7a 100644 --- a/scripts/site.js +++ b/scripts/site.js @@ -136,14 +136,32 @@ document.getElementById('all')?.addEventListener('click', function () { }); function search(query) { + const filter = document.getElementById('searchFor') const array = []; for (const x of jsons[current]) { - if (x.name.toLowerCase().includes(query.toLowerCase())) { - array.push(x); + if (filter.value == "name") { + if (x.name.toLowerCase().includes(query.toLowerCase())) { + array.push(x); + } + } else if (x.credits && filter.value == "username") { + for (const y of x.credits) { + if (y.name.toLowerCase().includes(query.toLowerCase())) { + array.push(x) + } + } } } outer.innerHTML = ''; create(array); } + +const modal = document.getElementById('faqModal') +document.getElementById('faqButton').addEventListener('click', function() { + modal.showModal(); +}) + +document.getElementById('closeFaq').addEventListener('click', function() { + modal.close(); +}) diff --git a/style.css b/style.css index ec0c4d8..70a69a4 100644 --- a/style.css +++ b/style.css @@ -199,6 +199,45 @@ body, html { background-color: transparent; } +.filter { + position: relative; +} + +.filter > select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + height: 33px; + width: 101px; + border-radius: 999px; + overflow: hidden; + padding-left: 12px; + background-color: #111; + border: 2px solid #333; + transition: all .2s; +} + +.filter > select:hover { + cursor: pointer; + filter: brightness(1.2) +} + +.filter > select:focus { + outline: none; +} + +.arrow { + position: absolute; + top: 4px; + right: 5px; + height: 26px; + width: 20px; + border-radius: 0px 999px 999px 0px; + pointer-events: none; + border-left: none !important; + background: none; +} + .right { position: absolute; right: 0; @@ -206,6 +245,10 @@ body, html { height: 38px; width: max-content; margin-right: 50px; + + display: flex; + flex-direction: row; + gap: 5px; } .button { @@ -222,4 +265,77 @@ body, html { .button:hover { cursor: pointer; filter: brightness(1.3); +} + +@media (max-width: 1114px){ + .searchWrapper { + flex-direction: column; + } + + .right { + flex-direction: column; + gap: 5px; + height: max-content + } +} + +.left { + position: absolute; + + left: 0; + margin-left: 50px; +} + +.leftButton { + background: #111; + border: 2px solid #333; + height: 38px; + width: 38px; + font-size: 14px; + border-radius: 999px; + + transition: all .2s; +} + +.leftButton:hover { + cursor: pointer; + filter: brightness(1.2); +} + +#faqModal { + width: 70%; + height: 80%; + + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + + border-radius: 12px; + border-color: #333; + position: relative; + word-wrap: normal; +} + +#faqModal::backdrop { + background-color: rgba(0, 0, 0, 0.5); +} + +#closeFaq { + position: absolute; + top: 5px; + right: 10px; +} + +#closeFaq:hover { + cursor: pointer; +} + +#faqModal > h1 { + margin-left: 10px; + margin-top: 10px; + color: #eb4034; +} + +#faqModal > p { + margin-left: 10px; } \ No newline at end of file