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

Component: VCollectionHeader #2729

Closed
Tracked by #2774
obulat opened this issue Jul 27, 2023 · 0 comments · Fixed by #2734
Closed
Tracked by #2774

Component: VCollectionHeader #2729

obulat opened this issue Jul 27, 2023 · 0 comments · Fixed by #2734
Assignees
Labels
🕹 aspect: interface Concerns end-users' experience with the software 🌟 goal: addition Addition of new feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: frontend Related to the Nuxt frontend

Comments

@obulat
Copy link
Contributor

obulat commented Jul 27, 2023

Description

For the additional search views, we need a new component that will display the view's tag/creator/source and the results count.

API

Props

Name Type Description
collection "tag", "creator", "source" The kind of additional search view
title string The tag, creator name or the source's display name
url string (optional) The link to the creator's page or the source
resultsLabel string The results count string

Code samples

<div class="flex flex-col gap-y-6 lg:gap-y-8">
    <div class="flex flex-col gap-4 lg:flex-row lg:justify-between">
      <div class="flex items-center gap-x-2">
        <VIcon :name="iconName" :size="isDesktop ? 10 : 6" />
        <h1 class="text-3xl font-semibold leading-6 lg:text-6xl lg:leading-10">
          {{ title }}
        </h1>
      </div>
      <VButton
        v-if="url"
        as="VLink"
        variant="filled-dark"
        size="medium"
        class="label-bold"
        has-icon-end
        show-external-icon
        :external-icon-size="6"
        :href="url"
        >{{ $t(`collection.link.${collection}`) }}</VButton
      >
    </div>
    <p class="caption-regular lg:label-regular text-dark-charcoal-70">
      {{ resultsLabel }}
    </p>
  </div>

Dependencies

New svg icons: institution, person and tag.

References

@obulat obulat added 🟨 priority: medium Not blocking but should be addressed soon 🌟 goal: addition Addition of new feature 🕹 aspect: interface Concerns end-users' experience with the software 🧱 stack: frontend Related to the Nuxt frontend labels Jul 27, 2023
@obulat obulat self-assigned this Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕹 aspect: interface Concerns end-users' experience with the software 🌟 goal: addition Addition of new feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant