-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added schedule backgroud, moved ScheduleTimer to its own directory * Changed chest and title to svg, reordered Header.tsx imports, renamed schedule-background.svg
- Loading branch information
1 parent
e8b72b2
commit 506390f
Showing
11 changed files
with
278 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.header { | ||
margin-top: 200px; | ||
height: auto; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 50px; | ||
align-items: center; | ||
|
||
gap: 50px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
@use "bootstrap-utils" as bootstrap; | ||
|
||
$container-padding: 8rem; | ||
$sm-width: 170vw; | ||
$md-width: 140vw; | ||
$width: 100vw; | ||
|
||
.schedule { | ||
h1 { | ||
text-align: center; | ||
.background { | ||
position: absolute; | ||
width: $sm-width; | ||
left: calc((100% - $sm-width) / 2); | ||
padding-top: 0; | ||
|
||
@include bootstrap.rfs(8rem, margin-bottom); | ||
} | ||
|
||
margin: 10rem 1rem; | ||
z-index: -1; | ||
|
||
@include bootstrap.media-breakpoint-up(md) { | ||
margin: 10rem 7rem; | ||
padding-top: 50px; | ||
width: $md-width; | ||
left: calc((100% - $md-width) / 2); | ||
} | ||
|
||
h2 { | ||
text-align: center; | ||
@include bootstrap.media-breakpoint-up(xxl) { | ||
height: auto; | ||
width: $width; | ||
left: calc((100% - $width) / 2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import Image from "next/image"; | ||
|
||
import { getSchedule } from "./getSchedule"; | ||
import ScheduleTimer from "./ScheduleTimer/ScheduleTimer"; | ||
|
||
import background from "@/assets/images/schedule-background.svg"; | ||
|
||
import styles from "./Schedule.module.scss"; | ||
import ScheduleTimer from "./ScheduleTimer"; | ||
|
||
export default async function Schedule() { | ||
const schedule = await getSchedule(); | ||
return <ScheduleTimer schedule={schedule}></ScheduleTimer>; | ||
return ( | ||
<> | ||
<Image | ||
src={background} | ||
alt="cloud background" | ||
className={styles.background} | ||
/> | ||
<ScheduleTimer schedule={schedule} /> | ||
</> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/site/src/app/schedule/ScheduleTimer/ScheduleTimer.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.timer { | ||
padding-top: 200px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.