Skip to content

Commit

Permalink
Merge branch 'main' into docs(license)/Update-License-Agreement-terms
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii-DFINITY authored Oct 25, 2024
2 parents 4e0170e + 95ede8d commit 94529c8
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 44 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/frontend/src/env/dapp-descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,21 @@
"text": "Enjoy a privacy-first way to verify and engage online",
"callToAction": "Interested?"
}
},
{
"id": "icpswap",
"name": "ICPSwap",
"oneLiner": "ICPSwap is an AMM DEX built completely onchain that is the premier hub for full-stack financial and DAO services on ICP.",
"callToAction": "Meet the future",
"website": "https://icpswap.com",
"twitter": "https://x.com/ICPSwap",
"telegram": "https://t.me/ICPSwap_Official",
"github": " https://github.com/ICPSwap-Labs/icpswap-frontend",
"tags": ["DEX"],
"stats": "",
"usesInternetIdentity": true,
"description": "The Hub of Future Decentralized Finance!<br/>Reinventing the Exchange as a Hub, ICPSwap provides full-stack financial, market, and DAO services on the Internet Computer. Based on the underlying technology of DFINITY's Internet Computer, ICPSwap establishes an ecosystem of genuinely decentralized finance by refactoring the way users and developers build projects jointly.",
"logo": "/images/dapps/icp-swap-logo.svg",
"screenshots": ["/images/dapps/icp-swap.webp"]
}
]
7 changes: 5 additions & 2 deletions src/frontend/src/lib/components/carousel/Carousel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let duration = 300;
export let easing = 'ease-out';
export let styleClass: string | undefined = undefined;
export let controlsWidthStyleClass: string | undefined = undefined;
/**
* Carousel container element variables
Expand Down Expand Up @@ -243,14 +244,16 @@
<svelte:window on:resize={onResize} />

<div
class={`${styleClass ?? ''} relative overflow-hidden rounded-3xl bg-white px-3 pb-14 pt-3 shadow`}
class={`${styleClass ?? ''} relative overflow-hidden rounded-3xl bg-white px-3 pb-10 pt-3 shadow`}
>
<div class="w-full overflow-hidden" bind:this={container}>
<div class="flex" bind:this={sliderFrame}>
<slot />
</div>
</div>
<div class="absolute bottom-3 left-0 flex w-full justify-center">
<div
class={`absolute bottom-2 right-0 flex justify-between px-3 ${controlsWidthStyleClass ?? 'w-full'}`}
>
<Indicators {onIndicatorClick} {totalSlides} {currentSlide} />
<Controls {onNext} {onPrevious} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/carousel/Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export let onPrevious: () => void;
</script>

<div class="flex w-[25%] items-center justify-center">
<div class="mr-3 flex items-center">
<ButtonControl ariaLabel={$i18n.carousel.text.prev_slide} styleClass="mr-1" on:click={onPrevious}>
<IconWest />
</ButtonControl>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/carousel/Indicators.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export let onIndicatorClick: (index: number) => void;
</script>

<div class="flex w-[75%] items-center justify-center">
<div class="flex items-center">
{#each { length: totalSlides } as _, index}
<Indicator on:click={() => onIndicatorClick(index)} {index} {currentSlide} {totalSlides} />
{/each}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/dapps/DappModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<span class="text-center text-xl">{name}</span>
</svelte:fragment>

<div class="stretch flex flex-col gap-4 pt-4">
<div class="stretch flex flex-col gap-4">
{#if nonNullish(screenshots) && screenshots.length > 0}
<div class="overflow-hidden rounded-3xl">
<ImgBanner
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/src/lib/components/dapps/DappsCarousel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
</script>

{#if nonNullish(dappsCarouselSlides)}
<Carousel styleClass={`w-full ${styleClass}`}>
<!-- To align controls section with slide text - 100% - logo width (4rem) - margin logo-text (1rem) -->
<Carousel controlsWidthStyleClass="w-[calc(100%-5rem)]" styleClass={`w-full ${styleClass ?? ''}`}>
{#each dappsCarouselSlides as dappsCarouselSlide}
<DappsCarouselSlide {dappsCarouselSlide} />
{/each}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
} = dappsCarouselSlide);
</script>

<div class="flex">
<div class="flex h-full items-center">
<div class="mr-4 shrink-0">
<Img
height="64"
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/src/lib/components/hero/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Alpha from '$lib/components/core/Alpha.svelte';
import Menu from '$lib/components/core/Menu.svelte';
import OisyWalletLogoLink from '$lib/components/core/OisyWalletLogoLink.svelte';
import AboutMenu from '$lib/components/hero/about/AboutMenu.svelte';
import AboutWhyOisy from '$lib/components/hero/about/AboutWhyOisy.svelte';
import AboutWhyOisyModal from '$lib/components/hero/about/AboutWhyOisyModal.svelte';
import { authNotSignedIn, authSignedIn } from '$lib/derived/auth.derived';
import { modalAboutWhyOisy } from '$lib/derived/modal.derived';
Expand Down Expand Up @@ -41,7 +41,9 @@
{#if $authSignedIn}
<Menu />
{:else}
<AboutMenu />
<div class="mr-2 md:mr-0">
<AboutWhyOisy />
</div>
{/if}
</div>
</header>
Expand Down
33 changes: 0 additions & 33 deletions src/frontend/src/lib/components/hero/about/AboutMenu.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/ui/SplitPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="relative mx-auto max-w-screen-2.5xl pt-8 md:flex md:w-full md:flex-row lg:w-auto lg:pt-0"
>
<div
class="invisible absolute -translate-x-full transition-all duration-200 ease-in-out md:visible md:fixed md:inset-y-0 md:my-24 md:block md:min-w-36 md:translate-x-0 md:transition-none lg:min-w-44 xl:min-w-72"
class="invisible absolute -translate-x-full transition-all duration-200 ease-in-out md:visible md:fixed md:inset-y-0 md:my-24 md:block md:min-w-36 md:translate-x-0 md:transition-none lg:min-w-44 xl:w-80 1.5xl:w-[22rem]"
>
<slot name="menu" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<SplitPane>
<NavigationMenu slot="menu">
{#if route === 'tokens'}
<div in:fade class="hidden w-80 xl:block">
<div in:fade class="hidden xl:block">
<DappsCarousel />
</div>
{/if}
Expand Down
Loading

0 comments on commit 94529c8

Please sign in to comment.