کتابخانه کد
کارتهای آمار داشبورد
کارتهای عددی برای داشبورد با برچسب تغییر. عددها فقط با رنگ معنی نمیشوند و متن هم دارند.
رایگان
/*
MIT License
Copyright (c) 2026 TEAM 1111
Permission is hereby granted, free of charge, to any person obtaining a copy of this software to deal in the software without restriction, including the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies, subject to including this notice in all copies or substantial portions.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
*/
<dl class="tiles">
<div>
<dt>فروش این ماه</dt>
<dd>۱۲٫۴ میلیون</dd>
<span class="up">۸٪ بیشتر از ماه قبل</span>
</div>
<div>
<dt>کاربر فعال</dt>
<dd>۱٬۲۴۰</dd>
<span class="up">۳٪ بیشتر از ماه قبل</span>
</div>
<div>
<dt>تیکت باز</dt>
<dd>۷</dd>
<span class="down">۲ مورد کمتر از دیروز</span>
</div>
</dl>
<style>
.tiles {
display: grid;
gap: 0.75rem;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
inline-size: min(100% - 2rem, 40rem);
margin: 0;
}
.tiles div {
padding: 1rem 1.125rem;
border: 1px solid #2c2620;
border-radius: 0.875rem;
background: #13100d;
}
.tiles dt {
color: #a39a8e;
font-size: 0.75rem;
}
.tiles dd {
margin: 0.25rem 0;
font-size: 1.5rem;
font-weight: 800;
}
.tiles span {
font-size: 0.6875rem;
}
.up {
color: #7fd6a0;
}
.down {
color: #e2ad62;
}
</style>