-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Block -> Steps, Services, Testimonials, Projects & Estimate card
- Loading branch information
Showing
25 changed files
with
571 additions
and
134 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts"> | ||
import { theme } from '$lib/stores/theme'; | ||
import { getImageAttributes } from '$lib/utils/cms'; | ||
import type { ClientStoryblok } from '$types/bloks'; | ||
export let block: ClientStoryblok; | ||
</script> | ||
|
||
<section class=" container mx-auto px-container pb-16 pt-20 lg:py-20"> | ||
<h3 class="text-center text-2xl text-foreground-secondary">{block.clients_title}</h3> | ||
{#if block.clients} | ||
<div class="flex flex-wrap justify-center gap-12 p-6"> | ||
{#each block.clients as client} | ||
{#if client.light_mode?.filename && $theme === 'light'} | ||
{@const { src, alt, width, height } = getImageAttributes(client.light_mode)} | ||
<img {src} {alt} {width} {height} class="h-auto max-h-9 w-auto object-contain" /> | ||
{/if} | ||
|
||
{#if client.dark_mode?.filename && $theme === 'dark'} | ||
{@const { src, alt, width, height } = getImageAttributes(client.dark_mode)} | ||
<img {src} {alt} {width} {height} class="h-auto max-h-9 w-auto object-contain" /> | ||
{/if} | ||
{/each} | ||
</div> | ||
{/if} | ||
</section> |
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,31 @@ | ||
<script lang="ts"> | ||
import type { CtaCardStoryblok } from '$types/bloks'; | ||
import { Button } from '@significa/svelte-ui'; | ||
import CtaLight from '$components/illustrations/assets/cta-card-light.webp'; | ||
import CtaDark from '$components/illustrations/assets/cta-card-dark.webp'; | ||
import { theme } from '$lib/stores/theme'; | ||
export let block: CtaCardStoryblok; | ||
$: src = $theme === 'dark' ? CtaLight : CtaDark; | ||
</script> | ||
|
||
<section class="container mx-auto px-container @container mt-8 md:mt-10 lg:mt-12"> | ||
<div class="flex overflow-hidden rounded-lg border bg-background-offset/80"> | ||
<div class="flex flex-col p-8"> | ||
<p class="text-2xl font-semibold">{block.title}</p> | ||
<p class="text-2xl font-semibold text-foreground-secondary max-w-md"> | ||
{block.description} | ||
</p> | ||
{#if block.link_text} | ||
<Button as="a" href="#estimation" size="md" class="w-fit mt-8 scroll-b" | ||
>{block.link_text}</Button | ||
> | ||
{/if} | ||
</div> | ||
<div | ||
class="hidden flex-1 flex-col justify-end ml-16 bg-no-repeat bg-cover bg-center lg:flex" | ||
style="background-image: url({src});" | ||
/> | ||
</div> | ||
</section> |
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
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,17 @@ | ||
<script lang="ts"> | ||
import ProjectEntry from '$components/project-entry.svelte'; | ||
import type { ProjectsStoryblok } from '$types/bloks'; | ||
export let block: ProjectsStoryblok; | ||
</script> | ||
|
||
<section class="mt-10 md:mt-14 lg:mt-20"> | ||
<div class="container mx-auto px-container"> | ||
<h2 class="text-5xl">{block.work_title}</h2> | ||
</div> | ||
<div class="mt-4 md:mt-6 lg:mt-8"> | ||
{#each block.projects || [] as project} | ||
<ProjectEntry {project} /> | ||
{/each} | ||
</div> | ||
</section> |
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,57 @@ | ||
<script lang="ts"> | ||
import Duck from '$components/pages/services/illustrations/duck.svelte'; | ||
import Hand from '$components/pages/services/illustrations/hand.svelte'; | ||
import Square from '$components/pages/services/illustrations/square.svelte'; | ||
import type { ServiceStoryblok } from '$types/bloks'; | ||
export let block: ServiceStoryblok; | ||
</script> | ||
|
||
<section class="mt-14 md:mt-24 lg:mb-12"> | ||
<div class="container mx-auto flex px-container"> | ||
<div class="xl:max-w-3xl"> | ||
<h3 class="text-5xl text-foreground-secondary">{block.services_title}</h3> | ||
<h3 class="mb-2 text-5xl">{block.services_subtitle}</h3> | ||
<p class="text-2xl text-foreground-secondary">{block.services_description}</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<div class="flex mt-11 md:mt-0"> | ||
{#if block.services} | ||
<div class="w-full justify-between lg:border-b lg:border-t"> | ||
<div class="container relative mx-auto grid grid-cols-1 px-container md:grid-cols-3"> | ||
<Square class="absolute -bottom-10 left-[20%] hidden drop-shadow-md lg:block" /> | ||
<Hand | ||
class="absolute -top-[76px] left-[54%] hidden drop-shadow-md md:-top-[60px] lg:block" | ||
/> | ||
<Duck | ||
class="absolute -bottom-14 right-[20%] hidden drop-shadow-md md:right-[7%] lg:block" | ||
/> | ||
{#each block.services as service} | ||
<div | ||
class="flex flex-col border-t mt-11 md:mt-0 last:border-b last:pb-11 pb-0 md:border-t-0 md:last:border-b-0 lg:border-r lg:p-8 lg:last:border-r-0 lg:first-of-type:pl-0" | ||
> | ||
<p class="mb-2 mt-11 text-3xl font-semibold lg:mt-0">{service.title}</p> | ||
{#if service.entry} | ||
{#each service.entry as entry} | ||
<div class="flex flex-col"> | ||
<p class="mt-8 text-xl font-semibold">{entry.title}</p> | ||
{#if entry.list} | ||
{#each entry.list as item} | ||
<div class="flex flex-col"> | ||
<p class="mt-3 text-xl text-foreground-secondary">{item.label}</p> | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> | ||
{/each} | ||
</div> | ||
</div> | ||
{/if} | ||
</div> | ||
</section> |
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
Oops, something went wrong.