Skip to content

Commit

Permalink
feat: drop
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 29, 2024
1 parent a7c3ded commit c7a47c5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 102 deletions.
14 changes: 14 additions & 0 deletions src/assets/bg-web.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 0 additions & 98 deletions src/components/index/Background.astro

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/index/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import blob from '../../assets/blob.svg';
import mascot from "../../assets/mascot.png";
import Waitlist from "./Waitlist.astro";
import Nav from "../Nav.astro";
import Background from "./Background.astro";
import SvgBackground from "./SvgBackground.astro";
---

Expand Down Expand Up @@ -88,7 +87,7 @@ import SvgBackground from "./SvgBackground.astro";
}

main {
min-height: calc(100vh - 6rem);
min-height: calc(100dvh - 6rem);
display: flex;
flex-direction: column;
margin: auto;
Expand Down
6 changes: 4 additions & 2 deletions src/components/index/SvgBackground.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
import background from '../../assets/bg-2.svg';
import webBackground from '../../assets/bg-web.svg';
---

<div class="background absolute top-0 z-0 h-[60vh] md:[h-100vh]">
<img src={background.src} alt="background" class="w-full h-full object-cover"/>
<div class="background absolute top-0 z-0 h-[60vh] md:h-[100vh]">
<img src={background.src} alt="background" class="w-full h-full object-cover block md:hidden"/>
<img src={webBackground.src} alt="background" class="w-full h-full object-cover hidden md:block"/>
</div>

<style>
Expand Down
9 changes: 9 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ import '@/styles/globals.css'

<Layout>
<Hero />
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>

</Layout>

0 comments on commit c7a47c5

Please sign in to comment.