Responsive profile/testimonial section for Nuxt. Displays rounded image, name header, optional quote, and two paragraphs. Uses Nuxt Image, Tailwind, and design tokens.
Prop | Type | Default / Req. | Description |
---|---|---|---|
title | String | — | Main heading displayed in the right-hand text column. |
name | String | — | Person or entity name shown under the avatar. |
description | String | — | Primary descriptive paragraph. |
description2 | String | — | Secondary descriptive paragraph. |
quote | String | — | Optional quote displayed under the name. |
image | Object | — | Avatar image object with `src` and `alt` fields. |
NuxtImg
You may use these UI components in your own personal or commercial projects. You may not resell, redistribute, sublicense, or package them as standalone assets or template/library packs.
Full terms: End-User License Agreement
Below you can expand the main implementation file and any supporting components. Use the “Copy” button to grab a snippet straight to your clipboard.
These are the raw components that are required to run this example. Copy-paste them into your project. Most likely you will not change anything in these files, but you can if you want to. These are the components that are used in the main implementation file.
<script setup>
const props = defineProps({
title: String,
name: String,
description: String,
description2: String,
quote: String,
image:{
type: Object,
validate: (value) => {
return value && typeof value === 'object' && 'src' in value && 'alt' in value;
}
}
});
</script>
<template>
<section class="flex flex-col font-iq-paragraph leading-iq-paragraph tracking-iq-paragraph text-iq-paragraph-color">
<div class="flex flex-col sm:flex-row mt-10">
<div class="sm:w-1/3 text-center sm:pr-8 sm:py-8">
<NuxtImg
v-if="image"
:src="image.src"
:alt="image.alt"
class="rounded-full object-cover w-20 h-20 inline-block mx-auto "
/>
<div class="flex flex-col items-center text-center justify-center">
<h2 class=" mt-4 text-lg text-iq-header-color tracking-iq-header leading-iq-header font-iq-header ">
{{ name }}
</h2>
<div class="w-12 h-1 bg-iq-primary rounded mt-2 mb-4"></div>
<blockquote v-if="quote" class=" text-center not-italic">
<p>
<span class="text-gray-400">“</span>
{{ quote }}
<span class="text-gray-400">”</span>
</p>
</blockquote>
</div>
</div>
<div
class="sm:w-2/3 sm:px-8 sm:py-8 sm:border-l border-gray-200 sm:border-t-0 border-t mt-4 pt-4 sm:mt-0 text-center sm:text-left">
<h2
class="uppercase font-black text-4xl md:text-7xl font-iq-header leading-iq-header tracking-iq-header text-iq-header-color mb-2">
{{ title }}
</h2>
<p class="text-justify text-pretty hyphens-auto mb-4 ">
{{ description }}
</p>
<p class="text-justify text-pretty hyphens-auto mb-4 ">
{{ description2 }}
</p>
</div>
</div>
</section>
</template>
This is the main Vue file that uses the component. Copy-paste this into your project. In this code feel free to change anything you like, such as the component name, props, or class. This is the place where you control the main component.
<script setup>
const description =
"Jestem programistką, która uwielbia tworzyć aplikacje webowe. Moje zainteresowania obejmują zarówno frontend, jak i backend, co pozwala mi na pełne zrozumienie procesu tworzenia oprogramowania.";
const description2 =
"W wolnym czasie lubię uczyć się nowych technologii, czytać książki oraz podróżować. Wierzę, że ciągłe doskonalenie swoich umiejętności jest kluczem do sukcesu w branży IT.";
const quote = "Nie ma rzeczy niemożliwych, są tylko trudne do zrealizowania.";
</script>
<template>
<div class="iq-card-glass">
<AboutThin
class="p-4"
name="John Doe"
title="About me"
:description="description"
:description2="description2"
:quote="quote"
:image="{ src: 'https://picsum.photos/200', alt: 'Avatar' }"
/>
</div>
</template>
Decide whether you want a global design-system or a one-off inline snippet.
Complete @theme
block – import once and share across every component.
Copy the code below into main.css
file. It is most likely in assets/css/main.css
directory.
:style
binding – paste straight onto any of ours components.
Copy the code below and paste it into the :style
binding of the component.
I wish I could automate every little thing—but for now you’ll need to handle these final steps by hand. Apologies for the extra work!
iq-card-*
style Now that you’ve picked a card preset, copy its CSS into your @layer components
block in main.css
. This ensures every `iq-card
` wrapper will look just right.
iq-cta
iq-cta is the main call to action button class. It’s used in many places across the components. But for now it is only a single class that you can customize. You can copy the code below and paste it into your @layer components
block in main.css
. In future you will be able to fully customize it from our UI and choose from many presets.
I didn't have time to figure out consistency. Although there are no actions required, be mindful that the forms might not be entirely consistent with the design system. A quick once-over will keep everything looking sharp.