Skip to content

Commit

Permalink
Merge pull request #1 from NaoCoding/main
Browse files Browse the repository at this point in the history
Update Background Image and Improve some css
  • Loading branch information
Darrin-Lin authored Sep 20, 2024
2 parents c25c5e2 + dbeb0a4 commit 641824e
Show file tree
Hide file tree
Showing 8 changed files with 14,238 additions and 191 deletions.
13,754 changes: 13,754 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

187 changes: 106 additions & 81 deletions public/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions public/background_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
205 changes: 153 additions & 52 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/js/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
const particles2 = document.getElementById('particles2');
const particles3 = document.getElementById('particles3');




if (particles1) {

particles1.style.cssText = `
width: 1px;
height: 1px;
Expand Down
201 changes: 154 additions & 47 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 11 additions & 10 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,22 @@ const stack = [
<div id='particles3' class='fixed inset-0'></div>
</div>

<!-- Light Mode: Galaxy Light -->
<div id="galaxyLight" class="fixed inset-0 block dark:hidden">
</div>

<!-- Dark Theme: Stars -->
<div class='absolute inset-0 bg-black hidden dark:block'>
<div id='stars1' class='fixed inset-0'></div>
<div id='stars2' class='fixed inset-0'></div>
<div id='stars3' class='fixed inset-0'></div>
</div>



<!-- Dark Theme: Twinkling Stars / Metors -->
<div id="galaxy" class="fixed inset-0">
<div class="hidden dark:block">

</div>
<div id="galaxy" class="fixed inset-0 hidden dark:block">

</div>

<!-- <script is:inline src="/js/bg.js"></script> -->
Expand All @@ -78,13 +82,10 @@ const stack = [
<div class="animate absolute h-full w-full flex items-center justify-center">
<div class='relative w-full h-full flex items-end justify-center'>
<div class='p-5 text-center'>
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75'>
歡迎來到
</p>
<p class='animated text-2xl md:text-3xl lg:text-4xl font-bold uppercase text-black dark:text-white'>
<p class='animated mt-auto text-2xl md:text-3xl lg:text-2.5xl font-bold uppercase text-black dark:text-white'>
國立臺灣師範大學 資訊工程學系學會
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75'>
<p class='animated mt-auto text-sm md:text-base lg:text-lg opacity-75'>
官方網站
</p>
<div id="ctaButtons" class='animated flex flex-wrap gap-4 justify-center mt-5'>
Expand All @@ -106,7 +107,7 @@ const stack = [
<!-- About Section -->
<section class="animate">
<article>
<p>歡迎來到師大資工系學會官方網站,系學會相關資訊都會放在這裡。</p>
<p class="animated text-lg md:text-xl lg:text-l">歡迎來到師大資工系學會官方網站,系學會相關資訊都會放在這裡。</p>
</article>
</section>

Expand Down
7 changes: 6 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ body {
#galaxy{
background-image: url("/background.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

#galaxyLight{
background-image: url("/background_white.svg");
background-size: contain;
background-position: center;
}

Expand Down

0 comments on commit 641824e

Please sign in to comment.