Skip to content

Commit

Permalink
Merge pull request #418 from appwrite/fix-docs-hero
Browse files Browse the repository at this point in the history
Fix docs hero
  • Loading branch information
eldadfux authored Dec 17, 2023
2 parents 805884f + 59ba488 commit 50c2dfb
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,6 @@
<enhanced:img src="./blur-1.png" alt="" />
</div>

<div
class="u-position-absolute aw-is-not-mobile u-only-light"
style:inline-size="768px"
style:block-size="768px"
style:inset-block-start="26rem"
style:left="calc(50% - 384px + 600px)"
>
<img
src="/images/animations/tech-light.png"
width="768"
height="768"
alt=""
style="position: absolute; display: block;"
/>
</div>

<main class="aw-main-section u-position-relative">
<div class="u-position-absolute aw-u-opacity-40-mobile bg-blur">
<img src="/images/bgs/docs-blur-1.svg" alt="" />
Expand Down Expand Up @@ -121,18 +105,27 @@
<span class="aw-sub-body-500">Explore all technologies</span>
</a>

<div class="u-position-absolute aw-is-not-mobile u-only-dark spline-wrapper">
<div class="u-position-absolute aw-is-not-mobile spline-wrapper">
<Spline url="/images/animations/dark-scene.splinecode" width={660} height={660}>
<img
class="u-only-dark"
src="/images/animations/tech-dark.png"
width="660"
height="660"
alt=""
style="position: absolute;"
/>
<img
class="u-only-light"
src="/images/animations/tech-light.png"
width="660"
height="660"
alt=""
style="position: absolute;"
/>
</Spline>
</div>
<div class="bg-boi" />
<div class="bg-overlay" />
</section>
<section>
<h2 class="aw-title aw-u-color-text-primary u-max-width-600">Show me some code</h2>
Expand Down Expand Up @@ -429,11 +422,6 @@
.tech-hero {
@include border-block-gradient;
background: linear-gradient(to right, #19191c80, #19191c00);
// background-color: #19191c80;
backdrop-filter: blur(1rem);
-webkit-backdrop-filter: blur(1rem);
--m-border-size: 1px;
--m-border-gradient-before: linear-gradient(
to right,
Expand All @@ -460,9 +448,10 @@
left: calc(50% - 384px + 600px);
}
.bg-boi {
.bg-overlay {
position: absolute;
background: linear-gradient(to right, #19191c00 0%, #19191c00 10%, #19191c);
background: linear-gradient(to right, #ffffff00 0%, #ffffff00 10%, #ffffff);
top: 0;
right: 10rem;
Expand All @@ -473,4 +462,14 @@
z-index: 9999;
}
}
:global(.theme-dark) .tech-hero {
background: linear-gradient(to right, #19191c80, #19191c00);
backdrop-filter: blur(1rem);
-webkit-backdrop-filter: blur(1rem);
}
:global(.theme-dark) .bg-overlay {
background: linear-gradient(to right, #19191c00 0%, #19191c00 10%, #19191c);
}
</style>

0 comments on commit 50c2dfb

Please sign in to comment.