Skip to content

Commit

Permalink
Update community section to include transparent background
Browse files Browse the repository at this point in the history
  • Loading branch information
itsrachelfish committed Dec 2, 2024
1 parent abb38c5 commit 58e090d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/src/lib/images/bg-community-home-desktop-swoop.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 ui/src/lib/images/bg-community-home-mobile-swoop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions ui/src/routes/community.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
position: relative;
}
.content-background {
mix-blend-mode: multiply;
img {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.mobile {
width: 100%;
height: 125%;
}
.desktop {
display: none;
}
}
.content {
Expand All @@ -30,20 +52,52 @@
}
@media screen and (min-width: 1600px) {
.content-background {
.mobile {
display: none;
}
.desktop {
display: block;
height: 150%;
width: 60%;
right: 15em;
top: -25%;
left: auto;
}
}
.content {
.text {
width: 30%;
margin-right: 24em;
}
}
}
@media screen and (min-width: 2048px) {
.content-background {
.desktop {
width: 55%;
right: 15em;
}
}
}
</style>

<script>
import DisappearingContent from "$lib/components/DisappearingContent.svelte";
import contentBackgroundMobile from '$lib/images/bg-community-home-mobile-swoop.svg';
import contentBackgroundDesktop from '$lib/images/bg-community-home-desktop-swoop.svg';
</script>

<section class="community">
<div class="content-background">

<img class="mobile" src="{contentBackgroundMobile}">
<img class="desktop" src="{contentBackgroundDesktop}">
</div>

<DisappearingContent>
<div class="content">
<div class="text">
Expand Down

0 comments on commit 58e090d

Please sign in to comment.