Skip to content

Commit

Permalink
fix: hero
Browse files Browse the repository at this point in the history
  • Loading branch information
imantsk authored Aug 31, 2024
1 parent c4e9e63 commit 7da6007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<link rel="stylesheet" media="all" href="main.css?v1" uncache />
<script src="https://cdn.tailwindcss.com?plugins=typography,aspect-ratio,container-queries"></script>
<script src="js/tconfig.js?v1.3" uncache></script>
<script src="js/main.js?v1.14" uncache></script>
<script src="js/main.js?v1.15" uncache></script>
</head>

<body class="font-mono">
Expand All @@ -37,7 +37,7 @@

<hero id="kur" class="min-h-screen text-gray-300 flex justify-center items-center">
<h1 class="opacity-0 absolute top-0">SINTĒZE</h1>
<img alt="SINTĒZE 2024" id="logo" class="mx-auto my-0 w-[20rem] h-auto flex justify-center items-center transition-all"
<img alt="SINTĒZE 2024" id="logo" class="mx-auto my-0 w-[25rem] h-auto flex justify-center items-center transition-all"
src="assets/sinteze.svg" />
</hero>

Expand Down
4 changes: 1 addition & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ document.addEventListener("DOMContentLoaded", function () {
console.log(`highEnd : ${highEnd}`);

// Adjust logo size using the frequencies
let newSize = !audio.paused
? Math.min(80, Math.max(20, bass + highEnd))
: 20;
let newSize = Math.min(80, Math.max(25, bass + highEnd));

console.log(`newSize : ${newSize}rem`);

Expand Down

0 comments on commit 7da6007

Please sign in to comment.