-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(directory): Add front page categories (#4560)
feat: Add front page categories if enabled show 'suggested' search categories on frontpage
- Loading branch information
1 parent
7264d23
commit 0c483ef
Showing
17 changed files
with
315 additions
and
83 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
<template> | ||
<div | ||
class="card text-center img-thumbnail" | ||
style="width: 10rem; height: 10rem; min-width: 10rem" | ||
> | ||
<div class="p-2"> | ||
<img | ||
:src="imageSrc" | ||
class="card-img-top" | ||
alt="altText" | ||
style="width: 5rem; height: 5rem" | ||
/> | ||
</div> | ||
|
||
<div class="card-body" style="padding: 5px 5px"> | ||
<router-link v-if="to" :to="to" class="stretched-link" | ||
><h6 class="card-title">{{ label }}</h6></router-link | ||
> | ||
<h6 class="card-title" v-else>{{ label }}</h6> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { RouteLocationRaw } from "vue-router"; | ||
defineProps<{ | ||
imageSrc: string; | ||
altText: string; | ||
label: string; | ||
to?: RouteLocationRaw; | ||
}>(); | ||
</script> | ||
|
||
<style scoped> | ||
.card { | ||
border-radius: 1rem; | ||
border: #003675 2px solid; | ||
transition: 0.3s; | ||
box-shadow: 0px 2px 0px #003675; | ||
} | ||
.card:hover { | ||
background-color: #f8f9fa; | ||
cursor: pointer; | ||
box-shadow: 0px 4px 0px #003675; | ||
transform: scale(1.1); | ||
} | ||
.card-title { | ||
color: #003675; | ||
} | ||
</style> |
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
Oops, something went wrong.