فوترِ اپ و تماس
پیشنمایش تمامصفحهبخشِ فوتر با دانلود از کافهبازار و مایکت، تلفن و ایمیلِ مستقیم، دو ستونِ لینک و نمادِ اعتماد.
۱. نصب کامپوننتها
این بلاک از ۶ آیتم دیگ استفاده میکند: buttoncontrol-sizefootericonspersianstore-logos
npx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/footer.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/store-logos.jsonpnpm dlx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/footer.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/store-logos.jsonyarn dlx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/footer.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/store-logos.jsonbunx --bun digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/footer.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/store-logos.jsonnpx digdesign@latest add button control-size footer persian store-logos --framework vuepnpm dlx digdesign@latest add button control-size footer persian store-logos --framework vueyarn dlx digdesign@latest add button control-size footer persian store-logos --framework vuebunx --bun digdesign@latest add button control-size footer persian store-logos --framework vuenpx digdesign@latest add button --framework sveltepnpm dlx digdesign@latest add button --framework svelteyarn dlx digdesign@latest add button --framework sveltebunx --bun digdesign@latest add button --framework sveltenpx digdesign@latest add button control-size footer icons persian store-logos --framework angularpnpm dlx digdesign@latest add button control-size footer icons persian store-logos --framework angularyarn dlx digdesign@latest add button control-size footer icons persian store-logos --framework angularbunx --bun digdesign@latest add button control-size footer icons persian store-logos --framework angularnpx digdesign@latest add button control-size persian --framework androidpnpm dlx digdesign@latest add button control-size persian --framework androidyarn dlx digdesign@latest add button control-size persian --framework androidbunx --bun digdesign@latest add button control-size persian --framework android۲. کد صفحه
کد را در صفحهٔ پروژهتان بگذارید (React: app/<route>/page.tsx) و متنها، داده و هندلرها را با محصول خودتان عوض کنید. با سوییچر فریمورک کدِ همین صفحه در فریمورک دیگر را ببینید.
"use client"
import { DownloadIcon, EnvelopeIcon, PhoneIcon } from "@/components/icons"
import { Button } from "@/components/ui/button"
import { ControlSizeProvider } from "@/components/ui/control-size"
import { Footer, FooterBottom, FooterBottomLinks, FooterColumn, FooterColumnTitle, FooterLink, FooterLinkList } from "@/components/ui/footer"
import { CafeBazaarLogo, MyketLogo } from "@/components/ui/store-logos"
import { toFaDigits } from "@/lib/persian"
const DOWNLOADS = [
{ label: "کافهبازار", icon: <CafeBazaarLogo /> },
{ label: "مایکت", icon: <MyketLogo /> },
{ label: "دانلودِ مستقیم", icon: <DownloadIcon /> },
]
/**
* فوترِ اپ و خدمات: برند با دکمههای دانلود از فروشگاههای ایرانی، راههای تماسِ مستقیم
* (تلفن و ایمیل با جهتِ چپبهراست)، دو ستونِ لینک و نمادِ اعتماد در ردیفِ پایین.
*/
export default function FooterAppBlock() {
return (
<ControlSizeProvider size="xl" asChild>
<Footer>
<div className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-12 px-4 py-14 sm:px-6 md:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)_minmax(0,1fr)]">
<div className="flex flex-col gap-5">
<span className="flex items-center gap-2 text-lg font-black">
<span aria-hidden className="size-3 rounded-sm bg-[var(--dig-violet-500)]" />
آوند
</span>
<p className="max-w-sm text-sm leading-7 text-muted-foreground">حسابوکتابِ کسبوکار، روی وب و موبایل.</p>
<div className="flex flex-wrap gap-2">
{DOWNLOADS.map((download) => (
<Button key={download.label} variant="outline">
{download.icon}
{download.label}
</Button>
))}
</div>
</div>
<FooterColumn>
<FooterColumnTitle>تماس</FooterColumnTitle>
<ul className="flex flex-col gap-3 text-sm">
<li>
<a href="tel:02191001234" className="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<PhoneIcon aria-hidden className="size-4" />
<bdi dir="ltr">{toFaDigits("021-91001234")}</bdi>
</a>
</li>
<li>
<a href="mailto:hello@avand.example" className="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<EnvelopeIcon aria-hidden className="size-4" />
<bdi dir="ltr">hello@avand.example</bdi>
</a>
</li>
<li className="text-muted-foreground">شنبه تا چهارشنبه، ۹ تا ۱۸</li>
</ul>
</FooterColumn>
<FooterColumn>
<FooterColumnTitle>آوند</FooterColumnTitle>
<FooterLinkList>
<FooterLink href="#">امکانات</FooterLink>
<FooterLink href="#">قیمتها</FooterLink>
<FooterLink href="#">راهنما</FooterLink>
<FooterLink href="#">درباره ما</FooterLink>
</FooterLinkList>
</FooterColumn>
</div>
<FooterBottom>
<span>© {toFaDigits(1405)} آوند · دارای نمادِ اعتمادِ الکترونیکی</span>
<FooterBottomLinks>
<a href="#" className="hover:text-foreground">
حریمِ خصوصی
</a>
<a href="#" className="hover:text-foreground">
شرایطِ استفاده
</a>
</FooterBottomLinks>
</FooterBottom>
</Footer>
</ControlSizeProvider>
)
}
<script setup lang="ts">
import Button from "@/components/ui/Button.vue"
import CafeBazaarLogo from "@/components/ui/CafeBazaarLogo.vue"
import ControlSize from "@/components/ui/ControlSize.vue"
import Footer from "@/components/ui/Footer.vue"
import FooterBottom from "@/components/ui/FooterBottom.vue"
import FooterBottomLinks from "@/components/ui/FooterBottomLinks.vue"
import FooterColumn from "@/components/ui/FooterColumn.vue"
import FooterColumnTitle from "@/components/ui/FooterColumnTitle.vue"
import FooterLink from "@/components/ui/FooterLink.vue"
import FooterLinkList from "@/components/ui/FooterLinkList.vue"
import MyketLogo from "@/components/ui/MyketLogo.vue"
import { DigIcon } from "@/lib/icons"
import { toFaDigits } from "@/lib/persian"
/**
* فوترِ اپ و خدمات: برند با دکمههای دانلود از فروشگاههای ایرانی، راههای تماسِ مستقیم
* (تلفن و ایمیل با جهتِ چپبهراست)، دو ستونِ لینک و نمادِ اعتماد در ردیفِ پایین.
* همان صفحهٔ `footer-app` نسخهٔ React.
*/
</script>
<template>
<ControlSize size="xl" as-child>
<Footer>
<div class="mx-auto grid w-full max-w-6xl grid-cols-1 gap-12 px-4 py-14 sm:px-6 md:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)_minmax(0,1fr)]">
<div class="flex flex-col gap-5">
<span class="flex items-center gap-2 text-lg font-black">
<span aria-hidden="true" class="size-3 rounded-sm bg-[var(--dig-violet-500)]" />
آوند
</span>
<p class="max-w-sm text-sm leading-7 text-muted-foreground">حسابوکتابِ کسبوکار، روی وب و موبایل.</p>
<div class="flex flex-wrap gap-2">
<Button variant="outline">
<CafeBazaarLogo />
کافهبازار
</Button>
<Button variant="outline">
<MyketLogo />
مایکت
</Button>
<Button variant="outline">
<DigIcon name="download" />
دانلودِ مستقیم
</Button>
</div>
</div>
<FooterColumn>
<FooterColumnTitle>تماس</FooterColumnTitle>
<ul class="flex flex-col gap-3 text-sm">
<li>
<a href="tel:02191001234" class="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<DigIcon name="phone" class="size-4" />
<bdi dir="ltr">{{ toFaDigits("021-91001234") }}</bdi>
</a>
</li>
<li>
<a href="mailto:hello@avand.example" class="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<DigIcon name="envelope" class="size-4" />
<bdi dir="ltr">hello@avand.example</bdi>
</a>
</li>
<li class="text-muted-foreground">شنبه تا چهارشنبه، ۹ تا ۱۸</li>
</ul>
</FooterColumn>
<FooterColumn>
<FooterColumnTitle>آوند</FooterColumnTitle>
<FooterLinkList>
<FooterLink href="#">امکانات</FooterLink>
<FooterLink href="#">قیمتها</FooterLink>
<FooterLink href="#">راهنما</FooterLink>
<FooterLink href="#">درباره ما</FooterLink>
</FooterLinkList>
</FooterColumn>
</div>
<FooterBottom>
<span>© {{ toFaDigits(1405) }} آوند · دارای نمادِ اعتمادِ الکترونیکی</span>
<FooterBottomLinks>
<a href="#" class="hover:text-foreground">حریمِ خصوصی</a>
<a href="#" class="hover:text-foreground">شرایطِ استفاده</a>
</FooterBottomLinks>
</FooterBottom>
</Footer>
</ControlSize>
</template>
کدِ این بلاک هنوز برای Svelte نوشته نشده است.
این موارد هنوز برای Svelte آماده نیستند: control-sizefooterpersianstore-logosآیکون downloadآیکون envelopeآیکون phone
کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="svelte" ایجنت آن را با کامپوننتهای Svelte میسازد.
import { ChangeDetectionStrategy, Component } from "@angular/core"
import { DigButton } from "@/components/ui/button"
import { DigCafeBazaarLogo, DigMyketLogo } from "@/components/ui/store-logos"
import { DigControlSize } from "@/components/ui/control-size"
import {
DigFooter,
DigFooterBottom,
DigFooterBottomLinks,
DigFooterColumn,
DigFooterColumnTitle,
DigFooterLink,
DigFooterLinkList,
} from "@/components/ui/footer"
import { DigIcon } from "@/lib/icons"
import { toFaDigits } from "@/lib/persian"
@Component({
selector: "dig-block-footer-app",
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
DigButton,
DigCafeBazaarLogo,
DigControlSize,
DigFooter,
DigFooterBottom,
DigFooterBottomLinks,
DigFooterColumn,
DigFooterColumnTitle,
DigFooterLink,
DigFooterLinkList,
DigIcon,
DigMyketLogo,
],
template: `
<footer digFooter digControlSize="xl">
<div class="mx-auto grid w-full max-w-6xl grid-cols-1 gap-12 px-4 py-14 sm:px-6 md:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)_minmax(0,1fr)]">
<div class="flex flex-col gap-5">
<span class="flex items-center gap-2 text-lg font-black">
<span aria-hidden="true" class="size-3 rounded-sm bg-[var(--dig-violet-500)]"></span>
آوند
</span>
<p class="max-w-sm text-sm leading-7 text-muted-foreground">حسابوکتابِ کسبوکار، روی وب و موبایل.</p>
<div class="flex flex-wrap gap-2">
<button digButton type="button" variant="outline">
<svg digCafeBazaarLogo></svg>
کافهبازار
</button>
<button digButton type="button" variant="outline">
<svg digMyketLogo></svg>
مایکت
</button>
<button digButton type="button" variant="outline">
<svg digIcon="download"></svg>
دانلودِ مستقیم
</button>
</div>
</div>
<div digFooterColumn>
<h3 digFooterColumnTitle>تماس</h3>
<ul class="flex flex-col gap-3 text-sm">
<li>
<a href="tel:02191001234" class="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<svg digIcon="phone" class="size-4"></svg>
<bdi dir="ltr">{{ toFaDigits("021-91001234") }}</bdi>
</a>
</li>
<li>
<a href="mailto:hello@avand.example" class="flex items-center gap-2 text-muted-foreground hover:text-foreground">
<svg digIcon="envelope" class="size-4"></svg>
<bdi dir="ltr">hello@avand.example</bdi>
</a>
</li>
<li class="text-muted-foreground">شنبه تا چهارشنبه، ۹ تا ۱۸</li>
</ul>
</div>
<div digFooterColumn>
<h3 digFooterColumnTitle>آوند</h3>
<ul digFooterLinkList>
<li digFooterLink href="#">امکانات</li>
<li digFooterLink href="#">قیمتها</li>
<li digFooterLink href="#">راهنما</li>
<li digFooterLink href="#">درباره ما</li>
</ul>
</div>
</div>
<div digFooterBottom>
<span>© {{ toFaDigits(1405) }} آوند · دارای نمادِ اعتمادِ الکترونیکی</span>
<div digFooterBottomLinks>
<a href="#" class="hover:text-foreground">حریمِ خصوصی</a>
<a href="#" class="hover:text-foreground">شرایطِ استفاده</a>
</div>
</div>
</footer>
`,
})
export class FooterAppBlock {
readonly toFaDigits = toFaDigits
}
کدِ این بلاک هنوز برای Android نوشته نشده است.
این موارد هنوز برای Android آماده نیستند: footerstore-logos
کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="android" ایجنت آن را با کامپوننتهای Android میسازد.