فرصتهای شغلی
پیشنمایش تمامصفحههیرو با عکسهای تیم، مزایا با آیکون، موقعیتهای باز با فیلترِ تیم (تب) و ردیفِ کلیکپذیر با تیم و محل و نوعِ همکاری، حالتِ خالی و ارسالِ رزومهٔ آزاد.
۱. نصب کامپوننتها
این بلاک از ۸ آیتم دیگ استفاده میکند: badgebuttoncontrol-sizeempty-stateiconspersianrevealtoggle-group
npx digdesign@latest add https://docs.digdesign.ir/r/badge.json https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/empty-state.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/reveal.json https://docs.digdesign.ir/r/toggle-group.jsonpnpm dlx digdesign@latest add https://docs.digdesign.ir/r/badge.json https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/empty-state.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/reveal.json https://docs.digdesign.ir/r/toggle-group.jsonyarn dlx digdesign@latest add https://docs.digdesign.ir/r/badge.json https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/empty-state.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/reveal.json https://docs.digdesign.ir/r/toggle-group.jsonbunx --bun digdesign@latest add https://docs.digdesign.ir/r/badge.json https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/empty-state.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/reveal.json https://docs.digdesign.ir/r/toggle-group.jsonnpx digdesign@latest add badge button control-size empty-state persian reveal toggle-group --framework vuepnpm dlx digdesign@latest add badge button control-size empty-state persian reveal toggle-group --framework vueyarn dlx digdesign@latest add badge button control-size empty-state persian reveal toggle-group --framework vuebunx --bun digdesign@latest add badge button control-size empty-state persian reveal toggle-group --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 badge button control-size empty-state icons persian reveal toggle-group --framework angularpnpm dlx digdesign@latest add badge button control-size empty-state icons persian reveal toggle-group --framework angularyarn dlx digdesign@latest add badge button control-size empty-state icons persian reveal toggle-group --framework angularbunx --bun digdesign@latest add badge button control-size empty-state icons persian reveal toggle-group --framework angularnpx digdesign@latest add badge button control-size empty-state persian toggle-group --framework androidpnpm dlx digdesign@latest add badge button control-size empty-state persian toggle-group --framework androidyarn dlx digdesign@latest add badge button control-size empty-state persian toggle-group --framework androidbunx --bun digdesign@latest add badge button control-size empty-state persian toggle-group --framework android۲. کد صفحه
کد را در صفحهٔ پروژهتان بگذارید (React: app/<route>/page.tsx) و متنها، داده و هندلرها را با محصول خودتان عوض کنید. با سوییچر فریمورک کدِ همین صفحه در فریمورک دیگر را ببینید.
"use client"
import * as React from "react"
import { ChevronLeftIcon, ClockIcon, GlobeIcon, HeartIcon, SparklesIcon, UsersIcon, WalletIcon } from "@/components/icons"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { ControlSizeProvider } from "@/components/ui/control-size"
import { EmptyState, EmptyStateDescription, EmptyStateTitle } from "@/components/ui/empty-state"
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"
import { Reveal } from "@/components/ui/reveal"
import { toFaDigits } from "@/lib/persian"
import { stockImages } from "@/lib/stock-images"
const JOBS = [
{ title: "توسعهدهندهٔ ارشدِ فرانتاند", team: "فنی", place: "تهران · هیبرید", type: "تماموقت" },
{ title: "توسعهدهندهٔ بکاند (Go)", team: "فنی", place: "دورکاری", type: "تماموقت" },
{ title: "طراحِ محصول", team: "محصول", place: "تهران", type: "تماموقت" },
{ title: "مدیرِ محصول", team: "محصول", place: "تهران · هیبرید", type: "تماموقت" },
{ title: "کارشناسِ فروشِ سازمانی", team: "فروش", place: "تهران", type: "تماموقت" },
{ title: "کارشناسِ پشتیبانی", team: "فروش", place: "دورکاری", type: "پارهوقت" },
]
const PERKS = [
{ icon: <WalletIcon />, title: "حقوقِ رقابتی", text: "بازبینی دوبار در سال و پاداشِ عملکرد" },
{ icon: <GlobeIcon />, title: "دورکاری و هیبرید", text: "هر جا بهتر کار میکنی" },
{ icon: <HeartIcon />, title: "بیمهٔ تکمیلی", text: "برای خودت و خانواده" },
{ icon: <SparklesIcon />, title: "بودجهٔ یادگیری", text: "دوره، کتاب و کنفرانس" },
]
/**
* فرصتهای شغلی: هیرو با عکسِ تیم، مزایا با آیکون، فهرستِ موقعیتها با فیلترِ تیم
* (تب) و ردیفِ کلیکپذیرِ هر موقعیت، و حالتِ «موقعیتِ مناسب نیست؟».
*/
export default function CareersBlock() {
const [team, setTeam] = React.useState("همه")
const visible = JOBS.filter((job) => team === "همه" || job.team === team)
return (
<ControlSizeProvider size="xl" asChild>
<main className="flex flex-col">
<section className="mx-auto flex w-full max-w-6xl flex-col items-center gap-10 px-4 py-16 text-center sm:px-6 lg:py-24">
<div className="flex max-w-2xl flex-col items-center gap-4">
<Badge variant="soft">فرصتهای شغلی</Badge>
<h1 className="text-4xl leading-snug font-black sm:text-5xl sm:leading-snug">بیا با هم چیزی بسازیم که آدمها هر روز استفاده کنند</h1>
<p className="text-lg leading-8 text-muted-foreground">تیمی کوچک با اثرِ بزرگ؛ {toFaDigits(JOBS.length)} موقعیتِ باز داریم.</p>
</div>
<div className="grid w-full grid-cols-3 gap-3">
{[stockImages.personWoman1, stockImages.studioSunlit, stockImages.personMan1].map((image, index) => (
// eslint-disable-next-line @next/next/no-img-element -- عکس از کتابخانهٔ تصویرِ دیگ
<img key={image.src} src={image.src} alt="" className={`w-full rounded-xl object-cover ${index === 1 ? "aspect-[4/3]" : "mt-8 aspect-[4/5]"}`} />
))}
</div>
</section>
<section aria-labelledby="careers-perks" className="bg-subtle py-20">
<div className="mx-auto flex w-full max-w-6xl flex-col gap-10 px-4 sm:px-6">
<h2 id="careers-perks" className="text-3xl font-black">
چرا اینجا؟
</h2>
<ul className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
{PERKS.map((perk, index) => (
<Reveal asChild key={perk.title} delay={index * 100}>
<li className="flex flex-col gap-3 rounded-xl border border-border bg-card p-6">
<span aria-hidden className="flex size-11 items-center justify-center rounded-xl bg-[color-mix(in_oklab,var(--brand-secondary)_12%,var(--card))] text-brand-secondary [&>svg]:size-5">
{perk.icon}
</span>
<span className="font-bold">{perk.title}</span>
<span className="text-sm text-muted-foreground">{perk.text}</span>
</li>
</Reveal>
))}
</ul>
</div>
</section>
<section aria-labelledby="careers-jobs" className="mx-auto flex w-full max-w-4xl flex-col gap-8 px-4 py-24 sm:px-6">
<div className="flex flex-wrap items-end justify-between gap-4">
<div className="flex flex-col gap-2">
<h2 id="careers-jobs" className="text-3xl font-black">
موقعیتهای باز
</h2>
<p className="text-muted-foreground">رزومه را مستقیم برای همان موقعیت بفرست.</p>
</div>
<ControlSizeProvider size="lg" mobileSize="default" asChild>
<ToggleGroup type="single" variant="segmented" value={team} onValueChange={(value) => value && setTeam(value as string)} aria-label="تیم">
{["همه", "فنی", "محصول", "فروش"].map((item) => (
<ToggleGroupItem key={item} value={item}>
{item}
</ToggleGroupItem>
))}
</ToggleGroup>
</ControlSizeProvider>
</div>
{visible.length === 0 ? (
<EmptyState variant="bordered">
<EmptyStateTitle>فعلاً موقعیتی در این تیم نیست</EmptyStateTitle>
<EmptyStateDescription>رزومهات را بفرست؛ موقعیت که باز شد خبرت میکنیم.</EmptyStateDescription>
</EmptyState>
) : (
<ul className="flex flex-col divide-y divide-border border-y border-border">
{visible.map((job) => (
<li key={job.title} className="group relative flex flex-wrap items-center gap-4 py-6">
<div className="flex min-w-0 flex-1 flex-col gap-2">
<a href="#" className="text-lg font-bold outline-none after:absolute after:inset-0 group-hover:text-brand-secondary focus-visible:after:ring-[3px] focus-visible:after:ring-ring/50">
{job.title}
</a>
<span className="flex flex-wrap items-center gap-4 text-sm text-muted-foreground">
<span className="flex items-center gap-1.5">
<UsersIcon aria-hidden className="size-4" />
{job.team}
</span>
<span className="flex items-center gap-1.5">
<GlobeIcon aria-hidden className="size-4" />
{job.place}
</span>
<span className="flex items-center gap-1.5">
<ClockIcon aria-hidden className="size-4" />
{job.type}
</span>
</span>
</div>
<span aria-hidden className="flex size-10 items-center justify-center rounded-full border border-border transition-colors group-hover:border-foreground group-hover:bg-foreground group-hover:text-background [&>svg]:size-4">
<ChevronLeftIcon />
</span>
</li>
))}
</ul>
)}
<div className="flex flex-col items-start gap-4 rounded-xl bg-muted p-6 sm:flex-row sm:items-center sm:justify-between">
<div className="flex flex-col gap-1">
<span className="font-bold">موقعیتِ مناسبت را پیدا نکردی؟</span>
<span className="text-sm text-muted-foreground">رزومهات را بفرست؛ همیشه دنبالِ آدمهای خوبیم.</span>
</div>
<Button variant="outline" className="bg-background">
ارسالِ رزومه
</Button>
</div>
</section>
</main>
</ControlSizeProvider>
)
}
<script setup lang="ts">
import { computed, ref } from "vue"
import Badge from "@/components/ui/Badge.vue"
import Button from "@/components/ui/Button.vue"
import ControlSize from "@/components/ui/ControlSize.vue"
import EmptyState from "@/components/ui/EmptyState.vue"
import EmptyStateDescription from "@/components/ui/EmptyStateDescription.vue"
import EmptyStateTitle from "@/components/ui/EmptyStateTitle.vue"
import Reveal from "@/components/ui/Reveal.vue"
import ToggleGroup from "@/components/ui/ToggleGroup.vue"
import ToggleGroupItem from "@/components/ui/ToggleGroupItem.vue"
import { DigIcon, type DigIconName } from "@/lib/icons"
import { toFaDigits } from "@/lib/persian"
// stock-images:begin
/** تصویرهای کتابخانهٔ دیگ (همان آدرسهای `stockImages` نسخهٔ React). */
const stockImages: Record<string, { src: string; alt: string }> = {
personWoman1: { src: "https://docs.digdesign.ir/images/person-woman-1.webp", alt: "پرترهٔ زنی با روسری" },
studioSunlit: { src: "https://docs.digdesign.ir/images/studio-sunlit.webp", alt: "استودیوی آفتابگیر با میزِ چوبی و چهارپایه" },
personMan1: { src: "https://docs.digdesign.ir/images/person-man-1.webp", alt: "پرترهٔ مردی با لبخند" },
}
// stock-images:end
const JOBS = [
{ title: "توسعهدهندهٔ ارشدِ فرانتاند", team: "فنی", place: "تهران · هیبرید", type: "تماموقت" },
{ title: "توسعهدهندهٔ بکاند (Go)", team: "فنی", place: "دورکاری", type: "تماموقت" },
{ title: "طراحِ محصول", team: "محصول", place: "تهران", type: "تماموقت" },
{ title: "مدیرِ محصول", team: "محصول", place: "تهران · هیبرید", type: "تماموقت" },
{ title: "کارشناسِ فروشِ سازمانی", team: "فروش", place: "تهران", type: "تماموقت" },
{ title: "کارشناسِ پشتیبانی", team: "فروش", place: "دورکاری", type: "پارهوقت" },
]
const PERKS: { icon: DigIconName; title: string; text: string }[] = [
{ icon: "wallet", title: "حقوقِ رقابتی", text: "بازبینی دوبار در سال و پاداشِ عملکرد" },
{ icon: "globe", title: "دورکاری و هیبرید", text: "هر جا بهتر کار میکنی" },
{ icon: "heart", title: "بیمهٔ تکمیلی", text: "برای خودت و خانواده" },
{ icon: "sparkles", title: "بودجهٔ یادگیری", text: "دوره، کتاب و کنفرانس" },
]
const TEAMS = ["همه", "فنی", "محصول", "فروش"]
const HERO_IMAGES = [stockImages.personWoman1, stockImages.studioSunlit, stockImages.personMan1]
/**
* فرصتهای شغلی: هیرو با عکسِ تیم، مزایا با آیکون، فهرستِ موقعیتها با فیلترِ تیم
* (تب) و ردیفِ کلیکپذیرِ هر موقعیت، و حالتِ «موقعیتِ مناسب نیست؟». همان صفحهٔ `careers` نسخهٔ React.
*/
const team = ref("همه")
const visible = computed(() => JOBS.filter((job) => team.value === "همه" || job.team === team.value))
function onTeamChange(value: string | string[] | undefined) {
if (value) team.value = value as string
}
</script>
<template>
<ControlSize size="xl" as-child>
<main class="flex flex-col">
<section class="mx-auto flex w-full max-w-6xl flex-col items-center gap-10 px-4 py-16 text-center sm:px-6 lg:py-24">
<div class="flex max-w-2xl flex-col items-center gap-4">
<Badge variant="soft">فرصتهای شغلی</Badge>
<h1 class="text-4xl leading-snug font-black sm:text-5xl sm:leading-snug">بیا با هم چیزی بسازیم که آدمها هر روز استفاده کنند</h1>
<p class="text-lg leading-8 text-muted-foreground">تیمی کوچک با اثرِ بزرگ؛ {{ toFaDigits(JOBS.length) }} موقعیتِ باز داریم.</p>
</div>
<div class="grid w-full grid-cols-3 gap-3">
<img
v-for="(image, index) in HERO_IMAGES"
:key="image.src"
:src="image.src"
alt=""
:class="`w-full rounded-xl object-cover ${index === 1 ? 'aspect-[4/3]' : 'mt-8 aspect-[4/5]'}`"
/>
</div>
</section>
<section aria-labelledby="careers-perks" class="bg-subtle py-20">
<div class="mx-auto flex w-full max-w-6xl flex-col gap-10 px-4 sm:px-6">
<h2 id="careers-perks" class="text-3xl font-black">چرا اینجا؟</h2>
<ul class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
<Reveal v-for="(perk, index) in PERKS" :key="perk.title" as-child :delay="index * 100">
<li class="flex flex-col gap-3 rounded-xl border border-border bg-card p-6">
<span aria-hidden="true" class="flex size-11 items-center justify-center rounded-xl bg-[color-mix(in_oklab,var(--brand-secondary)_12%,var(--card))] text-brand-secondary [&>svg]:size-5">
<DigIcon :name="perk.icon" />
</span>
<span class="font-bold">{{ perk.title }}</span>
<span class="text-sm text-muted-foreground">{{ perk.text }}</span>
</li>
</Reveal>
</ul>
</div>
</section>
<section aria-labelledby="careers-jobs" class="mx-auto flex w-full max-w-4xl flex-col gap-8 px-4 py-24 sm:px-6">
<div class="flex flex-wrap items-end justify-between gap-4">
<div class="flex flex-col gap-2">
<h2 id="careers-jobs" class="text-3xl font-black">موقعیتهای باز</h2>
<p class="text-muted-foreground">رزومه را مستقیم برای همان موقعیت بفرست.</p>
</div>
<ControlSize size="lg" mobile-size="default" as-child>
<ToggleGroup type="single" variant="segmented" :value="team" aria-label="تیم" @update:value="onTeamChange">
<ToggleGroupItem v-for="item in TEAMS" :key="item" :value="item">{{ item }}</ToggleGroupItem>
</ToggleGroup>
</ControlSize>
</div>
<EmptyState v-if="visible.length === 0" variant="bordered">
<EmptyStateTitle>فعلاً موقعیتی در این تیم نیست</EmptyStateTitle>
<EmptyStateDescription>رزومهات را بفرست؛ موقعیت که باز شد خبرت میکنیم.</EmptyStateDescription>
</EmptyState>
<ul v-else class="flex flex-col divide-y divide-border border-y border-border">
<li v-for="job in visible" :key="job.title" class="group relative flex flex-wrap items-center gap-4 py-6">
<div class="flex min-w-0 flex-1 flex-col gap-2">
<a href="#" class="text-lg font-bold outline-none after:absolute after:inset-0 group-hover:text-brand-secondary focus-visible:after:ring-[3px] focus-visible:after:ring-ring/50">{{ job.title }}</a>
<span class="flex flex-wrap items-center gap-4 text-sm text-muted-foreground">
<span class="flex items-center gap-1.5">
<DigIcon name="users" aria-hidden="true" class="size-4" />
{{ job.team }}
</span>
<span class="flex items-center gap-1.5">
<DigIcon name="globe" aria-hidden="true" class="size-4" />
{{ job.place }}
</span>
<span class="flex items-center gap-1.5">
<DigIcon name="clock" aria-hidden="true" class="size-4" />
{{ job.type }}
</span>
</span>
</div>
<span aria-hidden="true" class="flex size-10 items-center justify-center rounded-full border border-border transition-colors group-hover:border-foreground group-hover:bg-foreground group-hover:text-background [&>svg]:size-4">
<DigIcon name="chevron-left" />
</span>
</li>
</ul>
<div class="flex flex-col items-start gap-4 rounded-xl bg-muted p-6 sm:flex-row sm:items-center sm:justify-between">
<div class="flex flex-col gap-1">
<span class="font-bold">موقعیتِ مناسبت را پیدا نکردی؟</span>
<span class="text-sm text-muted-foreground">رزومهات را بفرست؛ همیشه دنبالِ آدمهای خوبیم.</span>
</div>
<Button variant="outline" class="bg-background">ارسالِ رزومه</Button>
</div>
</section>
</main>
</ControlSize>
</template>
کدِ این بلاک هنوز برای Svelte نوشته نشده است.
این موارد هنوز برای Svelte آماده نیستند: badgecontrol-sizeempty-statepersianrevealtoggle-groupآیکون chevron-leftآیکون clockآیکون globeآیکون heartآیکون sparklesآیکون usersآیکون wallet
کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="svelte" ایجنت آن را با کامپوننتهای Svelte میسازد.
import {
ChangeDetectionStrategy,
Component,
computed,
signal,
} from "@angular/core"
import { DigBadge } from "@/components/ui/badge"
import { DigButton } from "@/components/ui/button"
import { DigControlSize } from "@/components/ui/control-size"
import {
DigEmptyState,
DigEmptyStateDescription,
DigEmptyStateTitle,
} from "@/components/ui/empty-state"
import { DigIcon, type DigIconName } from "@/lib/icons"
import { DigReveal } from "@/components/ui/reveal"
import {
DigToggleGroup,
DigToggleGroupItem,
} from "@/components/ui/toggle-group"
import { toFaDigits } from "@/lib/persian"
// stock-images:begin
const stockImages: Record<string, { src: string; alt: string }> = {
personWoman1: {
src: "https://docs.digdesign.ir/images/person-woman-1.webp",
alt: "پرترهٔ زنی با روسری",
},
studioSunlit: {
src: "https://docs.digdesign.ir/images/studio-sunlit.webp",
alt: "استودیوی آفتابگیر با میزِ چوبی و چهارپایه",
},
personMan1: {
src: "https://docs.digdesign.ir/images/person-man-1.webp",
alt: "پرترهٔ مردی با لبخند",
},
}
// stock-images:end
const JOBS = [
{
title: "توسعهدهندهٔ ارشدِ فرانتاند",
team: "فنی",
place: "تهران · هیبرید",
type: "تماموقت",
},
{
title: "توسعهدهندهٔ بکاند (Go)",
team: "فنی",
place: "دورکاری",
type: "تماموقت",
},
{ title: "طراحِ محصول", team: "محصول", place: "تهران", type: "تماموقت" },
{
title: "مدیرِ محصول",
team: "محصول",
place: "تهران · هیبرید",
type: "تماموقت",
},
{
title: "کارشناسِ فروشِ سازمانی",
team: "فروش",
place: "تهران",
type: "تماموقت",
},
{
title: "کارشناسِ پشتیبانی",
team: "فروش",
place: "دورکاری",
type: "پارهوقت",
},
]
const PERKS: { icon: DigIconName; title: string; text: string }[] = [
{
icon: "wallet",
title: "حقوقِ رقابتی",
text: "بازبینی دوبار در سال و پاداشِ عملکرد",
},
{ icon: "globe", title: "دورکاری و هیبرید", text: "هر جا بهتر کار میکنی" },
{ icon: "heart", title: "بیمهٔ تکمیلی", text: "برای خودت و خانواده" },
{ icon: "sparkles", title: "بودجهٔ یادگیری", text: "دوره، کتاب و کنفرانس" },
]
const TEAMS = ["همه", "فنی", "محصول", "فروش"]
const HERO_IMAGES = [
stockImages.personWoman1,
stockImages.studioSunlit,
stockImages.personMan1,
]
@Component({
selector: "dig-block-careers",
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
DigBadge,
DigButton,
DigControlSize,
DigEmptyState,
DigEmptyStateDescription,
DigEmptyStateTitle,
DigIcon,
DigReveal,
DigToggleGroup,
DigToggleGroupItem,
],
template: `
<main digControlSize="xl" class="flex flex-col">
<section
class="mx-auto flex w-full max-w-6xl flex-col items-center gap-10 px-4 py-16 text-center sm:px-6 lg:py-24"
>
<div class="flex max-w-2xl flex-col items-center gap-4">
<span digBadge variant="soft">فرصتهای شغلی</span>
<h1
class="text-4xl leading-snug font-black sm:text-5xl sm:leading-snug"
>
بیا با هم چیزی بسازیم که آدمها هر روز استفاده کنند
</h1>
<p class="text-lg leading-8 text-muted-foreground">
تیمی کوچک با اثرِ بزرگ؛ {{ toFaDigits(JOBS.length) }} موقعیتِ باز
داریم.
</p>
</div>
<div class="grid w-full grid-cols-3 gap-3">
@for (image of HERO_IMAGES; track image.src; let index = $index) {
<img
[src]="image.src"
alt=""
[class]="
'w-full rounded-xl object-cover ' +
(index === 1 ? 'aspect-[4/3]' : 'mt-8 aspect-[4/5]')
"
/>
}
</div>
</section>
<section aria-labelledby="careers-perks" class="bg-subtle py-20">
<div class="mx-auto flex w-full max-w-6xl flex-col gap-10 px-4 sm:px-6">
<h2 id="careers-perks" class="text-3xl font-black">چرا اینجا؟</h2>
<ul class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
@for (perk of PERKS; track perk.title; let index = $index) {
<li
[delay]="index * 100"
digReveal
class="flex flex-col gap-3 rounded-xl border border-border bg-card p-6"
>
<span
aria-hidden="true"
class="flex size-11 items-center justify-center rounded-xl bg-[color-mix(in_oklab,var(--brand-secondary)_12%,var(--card))] text-brand-secondary [&>svg]:size-5"
>
<svg [digIcon]="perk.icon"></svg>
</span>
<span class="font-bold">{{ perk.title }}</span>
<span class="text-sm text-muted-foreground">{{
perk.text
}}</span>
</li>
}
</ul>
</div>
</section>
<section
aria-labelledby="careers-jobs"
class="mx-auto flex w-full max-w-4xl flex-col gap-8 px-4 py-24 sm:px-6"
>
<div class="flex flex-wrap items-end justify-between gap-4">
<div class="flex flex-col gap-2">
<h2 id="careers-jobs" class="text-3xl font-black">
موقعیتهای باز
</h2>
<p class="text-muted-foreground">
رزومه را مستقیم برای همان موقعیت بفرست.
</p>
</div>
<div
digToggleGroup
mobileSize="default"
digControlSize="lg"
type="single"
variant="segmented"
[value]="team()"
aria-label="تیم"
(valueChange)="onTeamChange($event)"
>
@for (item of TEAMS; track item) {
<button digToggleGroupItem [value]="item">{{ item }}</button>
}
</div>
</div>
@if (visible().length === 0) {
<div digEmptyState variant="bordered">
<h3 digEmptyStateTitle>فعلاً موقعیتی در این تیم نیست</h3>
<p digEmptyStateDescription>
رزومهات را بفرست؛ موقعیت که باز شد خبرت میکنیم.
</p>
</div>
} @else {
<ul
class="flex flex-col divide-y divide-border border-y border-border"
>
@for (job of visible(); track job.title) {
<li class="group relative flex flex-wrap items-center gap-4 py-6">
<div class="flex min-w-0 flex-1 flex-col gap-2">
<a
href="#"
class="text-lg font-bold outline-none after:absolute after:inset-0 group-hover:text-brand-secondary focus-visible:after:ring-[3px] focus-visible:after:ring-ring/50"
>{{ job.title }}</a
>
<span
class="flex flex-wrap items-center gap-4 text-sm text-muted-foreground"
>
<span class="flex items-center gap-1.5">
<svg
digIcon="users"
aria-hidden="true"
class="size-4"
></svg>
{{ job.team }}
</span>
<span class="flex items-center gap-1.5">
<svg
digIcon="globe"
aria-hidden="true"
class="size-4"
></svg>
{{ job.place }}
</span>
<span class="flex items-center gap-1.5">
<svg
digIcon="clock"
aria-hidden="true"
class="size-4"
></svg>
{{ job.type }}
</span>
</span>
</div>
<span
aria-hidden="true"
class="flex size-10 items-center justify-center rounded-full border border-border transition-colors group-hover:border-foreground group-hover:bg-foreground group-hover:text-background [&>svg]:size-4"
>
<svg digIcon="chevron-left"></svg>
</span>
</li>
}
</ul>
}
<div
class="flex flex-col items-start gap-4 rounded-xl bg-muted p-6 sm:flex-row sm:items-center sm:justify-between"
>
<div class="flex flex-col gap-1">
<span class="font-bold">موقعیتِ مناسبت را پیدا نکردی؟</span>
<span class="text-sm text-muted-foreground"
>رزومهات را بفرست؛ همیشه دنبالِ آدمهای خوبیم.</span
>
</div>
<button
digButton
type="button"
variant="outline"
class="bg-background"
>
ارسالِ رزومه
</button>
</div>
</section>
</main>
`,
})
export class CareersBlock {
readonly JOBS = JOBS
readonly PERKS = PERKS
readonly TEAMS = TEAMS
readonly HERO_IMAGES = HERO_IMAGES
readonly toFaDigits = toFaDigits
readonly team = signal("همه")
readonly visible = computed(() =>
JOBS.filter((job) => this.team() === "همه" || job.team === this.team())
)
onTeamChange(value: string | string[] | undefined) {
if (typeof value === "string" && TEAMS.includes(value)) this.team.set(value)
}
}
کدِ این بلاک هنوز برای Android نوشته نشده است.
این موارد هنوز برای Android آماده نیستند: reveal
کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="android" ایجنت آن را با کامپوننتهای Android میسازد.