Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/cloud background #46

Merged
merged 8 commits into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@import '@globals/styles/mixins.scss';

// @include desktop {
// .container {
// background-image:
// url('/images/cloud_background/TopClouds.svg'),
// linear-gradient(to bottom, var(--sky-background) 0%, #D5FCD1 100%);
// background-repeat: no-repeat;
// background-size: contain;
// background-position: top center;
// padding-top: 15%;
// padding-bottom: 5%;
// display: flex;
// align-items: stretch;
// height: 100vh; /* Full screen height */
// width: 100%;

// .child1, .child2 {
// width: 50%;
// position: relative; /* Required for Next.js Image fill */
// border: 3px solid black;
// }
// }
// }

.container {
background-image:
url('/images/cloud_background/TopClouds.svg'),
url('/images/cloud_background/Sand.svg'),
linear-gradient(to bottom, var(--sky-background) 0%, #D5FCD1 100%);
background-repeat: no-repeat, no-repeat, no-repeat;
background-size: contain, contain, cover; /* Clouds: Contain | Sand: Cover | Gradient: Cover */
background-position: top center, bottom center, center;
padding-top: 25%;
padding-bottom: 75%;
display: flex;
align-items: stretch;
height: 100vh; /* Full screen height */
width: 100%;

.child1 {
background-image: url('/images/cloud_background/LeftClouds.svg');
width: 50%;
height: 100vh;
background-repeat: no-repeat;
background-size: contain;
background-position: top left;
display: flex;
align-items: stretch;
}

.child2 {
background-image: url('/images/cloud_background/RightClouds.svg');
width: 50%;
height: 100vh;
padding-top: 15%;
background-repeat: no-repeat;
background-size: contain;
background-position: top right;
display: flex;
align-items: stretch;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from './CloudBackground.module.scss';
// import Image from 'next/image';

export default function CloudBackground() {
return (
<div className={styles.container}>
<div className={styles.child1}></div>
<div className={styles.child2}></div>
</div>
);
}
5 changes: 5 additions & 0 deletions public/images/cloud_background/LeftClouds.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/cloud_background/RightClouds.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions public/images/cloud_background/Sand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/cloud_background/TopClouds.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.