Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
elad2412 committed Jun 7, 2024
1 parent d537faa commit 7680f29
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 0 deletions.
153 changes: 153 additions & 0 deletions src/routes/integration/article/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<script lang="ts">
import { Main } from '$lib/layouts';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { TITLE_SUFFIX } from '$routes/titles';
import FooterNav from '../../../lib/components/FooterNav.svelte';
import MainFooter from '../../../lib/components/MainFooter.svelte';
const title = 'Integrations' + TITLE_SUFFIX;
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

<svelte:head>
<!-- Titles -->
<title>{title}</title>
<meta property="og:title" content={title} />
<meta name="twitter:title" content={title} />
<!-- Desscription -->
<meta name="description" content={description} />
<meta property="og:description" content={description} />
<meta name="twitter:description" content={description} />
<!-- Image -->
<meta property="og:image" content={ogImage} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:image" content={ogImage} />
<meta name="twitter:card" content="summary_large_image" />
</svelte:head>

<Main>
<header class="web-u-sep-block-end" style="background-color:rgba(23, 23, 26, 1);">
<div class="web-container">
<div class="web-carousel">
<ul class="web-carousel-list">
<li class="web-carousel-item">
<div>
<img src="/images/blog/ai-announcement.png" class="web-u-media-ratio-16-9" alt="cover" width="472">
</div>
</li>
<li class="web-carousel-item is-main">
<div>
<img src="/images/blog/ai-announcement.png" class="web-u-media-ratio-16-9" alt="cover" width="584">
</div>
</li>
<li class="web-carousel-item">
<div>
<img src="/images/blog/ai-announcement.png" class="web-u-media-ratio-16-9" alt="cover" width="472">
</div>
</li>
</ul>
</div>
</div>
</header>
<div class="web-big-padding-section-level-1">
<div class="web-big-padding-section-level-2">
<div class="web-container">

</div>
</div>
</div>

<div class="web-big-padding-section-level-1 u-overflow-hidden">
<div class="web-big-padding-section-level-2 u-position-relative">
<img src="/images/bgs/pre-footer.png" alt="" class="web-pre-footer-bg" style="z-index:-1" />

<div class="u-position-relative">
<section class="web-hero u-flex u-row-gap-16 u-main-center u-cross-center web-u-max-width-580">
<h2 class="web-display u-max-width-500 web-u-text-align-center web-u-color-text-primary">
Become a partner
</h2>
<p class="web-main-body-500">Join our partner program to integrate your solutions with Appwrite’s API, enhancing functionality and expanding your reach.</p>
<a
href="/"
class="web-button is-primary web-u-cross-child-center u-margin-block-start-16"
>
<span class="text">Get Started</span>
</a>
</section>
</div>
</div>
<div class="web-container">
<FooterNav />
<MainFooter />
</div>
</div>
</Main>

<style lang="scss">
@use '$scss/abstract' as *;
.web-carousel {
display:flex; justify-content:center;
@media #{$break1} {}
@media #{$break2open} {
min-block-size: pxToRem(628);
}
}
.web-pre-footer-bg {
position: absolute;
top: clamp(300px, 50vw, 50%);
left: clamp(300px, 50vw, 50%);
transform: translate(-58%, -72%);
width: clamp(1200px, 200vw, 3000px);
height: auto;
max-inline-size: unset;
max-block-size: unset;
}
.l-float-button { display:none; }
/* more tha 9 items */
.l-max-size-list-cards-section {
scroll-snap-align: start;
scroll-margin-top: pxToRem(120);
}
.l-max-size-list-cards {
&:where(:has(>ul>li:nth-child(10))) {
position:relative; max-block-size:pxToRem(460); overflow:hidden;
&::before {
position:absolute; inset:0;
content:""; display:block;
background: linear-gradient(180deg, rgba(25, 25, 28, 0.00) 0%, rgba(25, 25, 28, 0.92) 90%, #19191C 100%);
transition: var(--transition);
}
.l-float-button {
position: absolute; inset-inline:0; inset-block-end:pxToRem(20); margin-inline:auto;
display:flex;
}
}
}
:where(:target, :focus-within) {
.l-max-size-list-cards {
overflow:visible; max-block-size:none;
&::before { opacity:0; pointer-events:none; }
.l-float-button { display:none; }
}
}
.l-grid-1 {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
gap: pxToRem(32);
}
.l-integrations-grid {
@media #{$break1} {}
@media #{$break2open} {
display: grid;
gap: pxToRem(68);
grid-template-columns: pxToRem(240) 1fr;
min-block-size: pxToRem(628);
padding-block-start: pxToRem(60);
}
}
</style>
29 changes: 29 additions & 0 deletions src/scss/7-components/_carousel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@use '../abstract' as *;

.#{$p}-carousel {
position: relative;
&::before {
content:""; display:block;
position:absolute; z-index:1; inset:0; inset-inline:pxToRem(-200);
background: linear-gradient(90deg, rgba(23, 23, 26, 1) 0%, rgba(23, 23, 26, 0.88) 9.65%, rgba(23, 23, 26, 0) 25%, rgba(23, 23, 26, 0) 50%, rgba(23, 23, 26, 0) 75%, rgba(23, 23, 26, 0.88) 89.28%, rgba(23, 23, 26, 1) 100%);
}
&-list {
position:relative;
display: flex;
align-items: center;
gap: pxToRem(32);
}
&-item {
img { border-radius:var(--border-radius-medium); transition:var(--transition); }
}

@media #{$break1} {}
@media #{$break2open} {
&-item {
img { min-inline-size:pxToRem(472); }
&.is-main {
img { min-inline-size:pxToRem(584); }
}
}
}
}
1 change: 1 addition & 0 deletions src/scss/7-components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@forward "timeline-content";
@forward "investor-cards";
@forward "chat";
@forward "carousel";

/*article content */
@forward "article";
Expand Down

0 comments on commit 7680f29

Please sign in to comment.