Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banner component #97

Open
lisagjh opened this issue Nov 11, 2024 · 0 comments
Open

Banner component #97

lisagjh opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
SPR16 Sprint 16: don't repeat yourself SPR17

Comments

@lisagjh
Copy link

lisagjh commented Nov 11, 2024

Ik ben begonnen met de banner met de member logo's te maken.

Idee

Ik wil zorgen dat er twee rows zijn, die standaard roteren in anderen richtingen. Als je scrollt, scrollt ie sneller mee. Als je terug scrollt, misschien de andere kant op?

Ontwerp

Image

Progress

Veel van de logo's in de database zijn PNGs, wit zonder achtegrond. Dit maakt het ontwerpen iets moeilijker, want het ziet er gewoon minder uit. Ik kan moeilijk doen en alle logo's in directus vervangen. Of zo laten, en kijken of ik nog iets kan maken van het design.

Image

Code

{#each data as item}
      {#if item.logo}
        <picture>
          <source
            srcset="https://fdnd-agency.directus.app/assets/{item.logo}format=avif"
            type="image/avif"
          />
          <source
            srcset="https://fdnd-agency.directus.app/assets/{item.logo}?format=webp"
            type="image/webp"
          />
          <img
            src="https://fdnd-agency.directus.app/assets/{item.logo}"
            alt=""
            height="150"
          />
        </picture>
      {/if}
    {/each}

+page.svelte - data meegeven aan de component

<Banner data={data.agencies} />
@lisagjh lisagjh self-assigned this Nov 11, 2024
@lisagjh lisagjh converted this from a draft issue Nov 11, 2024
@lisagjh lisagjh added the SPR16 Sprint 16: don't repeat yourself label Nov 11, 2024
@lisagjh lisagjh added the SPR17 label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SPR16 Sprint 16: don't repeat yourself SPR17
Projects
Status: In Progress
Development

No branches or pull requests

1 participant