feat(widgets): pricing/FAQ/stats + forum topic list and bbs sidebars
Add zibll produck widgets (pricing plans, FAQ, stats), forum topic lists, register bbs_* sidebar zones, and wire plate/topic/home/compose templates to render those widget areas.
This commit is contained in:
@@ -530,3 +530,210 @@
|
||||
color: var(--color-primary, #3b82f6);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
||||
/* ---- Pricing plans ---- */
|
||||
.aksrt-pricing { margin-bottom: 16px; }
|
||||
.aksrt-pricing__cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.aksrt-pricing__card {
|
||||
position: relative;
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
border-radius: 14px;
|
||||
padding: 22px 18px 18px;
|
||||
background: var(--surface-1, #fff);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
}
|
||||
.aksrt-pricing__card.is-featured {
|
||||
box-shadow: 0 10px 28px rgba(0,0,0,.08);
|
||||
border-color: transparent;
|
||||
border-top: 3px solid var(--plan-accent, #3b82f6);
|
||||
}
|
||||
.aksrt-pricing__card.accent-pink { --plan-accent: #ec4899; }
|
||||
.aksrt-pricing__card.accent-purple { --plan-accent: #a855f7; }
|
||||
.aksrt-pricing__card.accent-blue { --plan-accent: #3b82f6; }
|
||||
.aksrt-pricing__card.accent-green { --plan-accent: #22c55e; }
|
||||
.aksrt-pricing__card.accent-yellow { --plan-accent: #eab308; }
|
||||
.aksrt-pricing__card.accent-cyan { --plan-accent: #06b6d4; }
|
||||
.aksrt-pricing__badge {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
font-size: 11px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--plan-accent, #3b82f6);
|
||||
color: #fff;
|
||||
}
|
||||
.aksrt-pricing__name { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
|
||||
.aksrt-pricing__desc { font-size: 13px; color: var(--muted-2-color, #888); margin: 0 0 12px; }
|
||||
.aksrt-pricing__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
|
||||
.aksrt-pricing__main { font-size: 32px; font-weight: 800; color: var(--plan-accent, #3b82f6); line-height: 1; }
|
||||
.aksrt-pricing__mark { font-size: .55em; margin-right: 2px; }
|
||||
.aksrt-pricing__original { font-size: 13px; color: #999; text-decoration: line-through; }
|
||||
.aksrt-pricing__features { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
|
||||
.aksrt-pricing__features li { display: flex; gap: 8px; font-size: 13px; padding: 5px 0; }
|
||||
.aksrt-pricing__features i { color: var(--plan-accent, #3b82f6); margin-top: 2px; }
|
||||
.aksrt-pricing__btn {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
background: var(--plan-accent, #3b82f6);
|
||||
color: #fff !important;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
.aksrt-pricing__trust {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px 22px;
|
||||
margin-top: 18px;
|
||||
justify-content: center;
|
||||
}
|
||||
.aksrt-pricing__trust-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
|
||||
.aksrt-pricing__trust-item i { color: var(--color-primary, #3b82f6); margin-top: 2px; }
|
||||
.aksrt-pricing__trust-item strong { display: block; }
|
||||
.aksrt-pricing__trust-item span { color: var(--muted-2-color, #888); font-size: 12px; }
|
||||
|
||||
/* ---- FAQ ---- */
|
||||
.aksrt-faq { margin-bottom: 16px; }
|
||||
.aksrt-faq__search { display: flex; gap: 8px; margin-bottom: 14px; }
|
||||
.aksrt-faq__search-input {
|
||||
flex: 1;
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.aksrt-faq__search-btn {
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
padding: 8px 14px;
|
||||
background: var(--color-primary, #3b82f6);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.aksrt-faq__item {
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
border-radius: 10px;
|
||||
padding: 0;
|
||||
margin-bottom: 10px;
|
||||
background: var(--surface-1, #fff);
|
||||
}
|
||||
.aksrt-faq__q {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
}
|
||||
.aksrt-faq__q::-webkit-details-marker { display: none; }
|
||||
.aksrt-faq__num {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
background: var(--surface-2, #f3f4f6);
|
||||
color: var(--color-primary, #3b82f6);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.aksrt-faq__a {
|
||||
padding: 0 14px 14px 52px;
|
||||
font-size: 13px;
|
||||
color: var(--muted-2-color, #666);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.aksrt-faq__aside { display: grid; gap: 12px; margin-top: 14px; }
|
||||
.aksrt-faq__doc, .aksrt-faq__help {
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
padding: 14px;
|
||||
background: var(--surface-2, #f8fafc);
|
||||
}
|
||||
.aksrt-faq__help-btn {
|
||||
display: inline-block;
|
||||
margin-top: 8px;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background: var(--color-primary, #3b82f6);
|
||||
color: #fff !important;
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ---- Stats ---- */
|
||||
.aksrt-stats { margin-bottom: 16px; }
|
||||
.aksrt-stats__intro { margin-bottom: 14px; }
|
||||
.aksrt-stats__intro-title { font-size: 22px; margin: 0 0 6px; }
|
||||
.aksrt-stats__intro-sub { color: var(--muted-2-color, #888); margin: 0; font-size: 13px; }
|
||||
.aksrt-stats__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--aksrt-stats-pc, 4), minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
@media (max-width: 767.98px) {
|
||||
.aksrt-stats__grid {
|
||||
grid-template-columns: repeat(var(--aksrt-stats-m, 2), minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.aksrt-stats__item {
|
||||
border-radius: 12px;
|
||||
padding: 16px 14px;
|
||||
background: var(--surface-1, #fff);
|
||||
border: 1px solid var(--color-line, #e5e7eb);
|
||||
text-align: center;
|
||||
}
|
||||
.aksrt-stats__item.color-pink { --stat-c: #ec4899; }
|
||||
.aksrt-stats__item.color-purple { --stat-c: #a855f7; }
|
||||
.aksrt-stats__item.color-orange { --stat-c: #f97316; }
|
||||
.aksrt-stats__item.color-blue { --stat-c: #3b82f6; }
|
||||
.aksrt-stats__item.color-green { --stat-c: #22c55e; }
|
||||
.aksrt-stats__icon { font-size: 20px; color: var(--stat-c, #3b82f6); margin-bottom: 8px; }
|
||||
.aksrt-stats__value { font-size: 28px; font-weight: 800; color: var(--stat-c, #3b82f6); line-height: 1.1; }
|
||||
.aksrt-stats__prefix, .aksrt-stats__unit { font-size: .55em; font-weight: 600; }
|
||||
.aksrt-stats__label { margin-top: 6px; font-size: 12px; color: var(--muted-2-color, #888); }
|
||||
|
||||
/* ---- Forum topic lists ---- */
|
||||
.aksrt-ftopic-list { list-style: none; margin: 0; padding: 0; }
|
||||
.aksrt-ftopic-list__item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed var(--color-line, #e5e7eb);
|
||||
}
|
||||
.aksrt-ftopic-list__item:last-child { border-bottom: 0; }
|
||||
.aksrt-ftopic-list__link {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.aksrt-ftopic-list__views {
|
||||
flex-shrink: 0;
|
||||
font-size: 11px;
|
||||
color: var(--muted-2-color, #999);
|
||||
}
|
||||
.aksrt-ftopic-list.is-detail .aksrt-ftopic-list__item { flex-direction: column; gap: 4px; }
|
||||
.aksrt-ftopic-list__meta {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
font-size: 11px;
|
||||
color: var(--muted-2-color, #999);
|
||||
}
|
||||
|
||||
/* Forum widget sidebar shell */
|
||||
.aksrt-forum-widget-zone { margin-top: 12px; }
|
||||
.aksrt-forum-widget-zone .zib-widget { margin-bottom: 14px; }
|
||||
|
||||
Reference in New Issue
Block a user