Skip to content

Commit 46909a6

Browse files
authoredSep 17, 2023
Merge pull request #2 from RandomCoderOrg/design-sprinkle-01
Add a background with colors
2 parents 7b92c4b + 5da12aa commit 46909a6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
 

‎src/lib/randomEmoji.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ var emojis = [
824824

825825
let waitTime = 80;
826826
let emojiWait = 0;
827-
let prevEmoji = '';
827+
let prevEmoji = emojis[Math.floor(Math.random() * emojis.length)];
828828
function returnRandomEmoji() {
829829
if (emojiWait >= waitTime) {
830830
emojiWait = 0;

‎src/routes/+page.svelte

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
function counter(intervel, max, step) {
1414
let interval = setInterval(() => {
1515
count = count + step > max ? max : count + step;
16-
console.log(count + ' ' + interval);
1716
finalText = count.toString() + ' ' + returnRandomEmoji();
1817
if (count >= max) {
1918
clearInterval(interval);
@@ -27,14 +26,16 @@
2726
</script>
2827

2928
<div class="dark:bg-[#070704] bg-[#EDEDDE]">
30-
<div class="flex flex-col h-screen items-center justify-center">
31-
<a
29+
<div class="flex flex-col h-screen items-center justify-center bg-[#07070d] rounded-sm">
30+
<div class="bg-[#4e6638] p-6 rounded-xl">
31+
<a
3232
href="https://github.com/RandomCoderOrg/ubuntu-on-android"
3333
target="_blank"
3434
referrerpolicy="no-referrer"
35-
class="text-[#070704] dark:text-[#ededde] text-6xl hover:underline dark:decoration-[#705091] text-bold font-mono"
35+
class="text-[#070704] dark:text-[#ededde] text-4xl hover:underline dark:decoration-[#EDEDDE] text-bold font-mono"
3636
>UDROID Downloads</a
3737
>
38-
<p class="font-light font-mono text-3xl text-[#070704] dark:text-[#ededde]">{finalText}</p>
38+
<p class="font-light text-center font-mono text-3xl text-[#070704] dark:text-[#ededde]">{finalText}</p>
39+
</div>
3940
</div>
4041
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.