# Pull Request Template ## Description This PR includes the following updates: 1. Updated the design system color tokens by introducing new tokens for surfaces, overlays, buttons, labels, and cards, along with refinements to existing shades. 2. Refreshed both light and dark themes with adjusted background, border, and solid colors. 3. Replaced static Inter font files with the Inter variable font (including italic), supporting weights from 100–900. 4. Added custom font weights (420, 440, 460, 520) along with custom typography classes to enable more fine-grained and consistent typography control. ## Type of change - [x] New feature (non-breaking change which adds functionality) ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Pranav <pranav@chatwoot.com>
57 lines
1.1 KiB
Vue
57 lines
1.1 KiB
Vue
<script setup>
|
|
defineProps({
|
|
imageSrc: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
imageAlt: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
description: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
to: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
linkText: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="h-full w-full bg-n-surface-2 border border-n-weak rounded-lg p-4 flex flex-col"
|
|
>
|
|
<div class="flex-1 flex items-center justify-center">
|
|
<img :src="imageSrc" :alt="imageAlt" class="h-36 w-auto mx-auto" />
|
|
</div>
|
|
<div class="mt-auto">
|
|
<p
|
|
class="text-base text-n-slate-12 font-interDisplay font-semibold tracking-[0.3px]"
|
|
>
|
|
{{ title }}
|
|
</p>
|
|
<p class="text-n-slate-11 text-sm">
|
|
{{ description }}
|
|
</p>
|
|
<router-link
|
|
v-if="to"
|
|
:to="{ name: to }"
|
|
class="no-underline text-n-brand text-sm font-medium"
|
|
>
|
|
<span>{{ linkText }}</span>
|
|
<span class="ml-2">{{ `→` }}</span>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
</template>
|