الأساس + Core + الكتالوج
موقع كامل مع الكتالوج
ورقة أنماط لكل قطعة من موقع كامل: اربط ما تستخدمه فقط، ولا يُحمَّل سكربتها إلا حين تكون القطعة في الصفحة.
- 44 قطعة، لكلٍّ منها ورقة أنماط
- 8 سكربتات، تُحمَّل عند الحاجة فقط
- 59.7 ك.ب مضغوطًا بـ gzip، الحزم الثلاث
- 0 اعتماديات
جرّبه: اختر نوع الموقع
أوراق الأنماط التي يربطها هذا الموقع
<link rel="stylesheet" href="…/components/navbar.min.css"> <link rel="stylesheet" href="…/components/sidebar.min.css"> <link rel="stylesheet" href="…/components/timeline.min.css"> <link rel="stylesheet" href="…/components/site-header.min.css"> <link rel="stylesheet" href="…/components/hero.min.css"> <link rel="stylesheet" href="…/components/main.min.css"> <link rel="stylesheet" href="…/components/section.min.css"> <link rel="stylesheet" href="…/components/stat.min.css"> <link rel="stylesheet" href="…/components/site-footer.min.css"> <link rel="stylesheet" href="…/components/glow.min.css"> <link rel="stylesheet" href="…/components/social.min.css"> <link rel="stylesheet" href="…/components/tool.min.css"> <link rel="stylesheet" href="…/components/pager.min.css"> <link rel="stylesheet" href="…/components/page-transition.min.css"> <script type="module" src="…/catalog.min.js"></script><link rel="stylesheet" href="…/components/navbar.min.css"> <link rel="stylesheet" href="…/components/sidebar.min.css"> <link rel="stylesheet" href="…/components/timeline.min.css"> <link rel="stylesheet" href="…/components/site-header.min.css"> <link rel="stylesheet" href="…/components/masthead.min.css"> <link rel="stylesheet" href="…/components/site-footer.min.css"> <link rel="stylesheet" href="…/components/social.min.css"> <link rel="stylesheet" href="…/components/page-header.min.css"> <link rel="stylesheet" href="…/components/article-header.min.css"> <link rel="stylesheet" href="…/components/article.min.css"> <link rel="stylesheet" href="…/components/post-list.min.css"> <link rel="stylesheet" href="…/components/pager.min.css"> <link rel="stylesheet" href="…/components/page-transition.min.css"> <script type="module" src="…/catalog.min.js"></script><link rel="stylesheet" href="…/components/navbar.min.css"> <link rel="stylesheet" href="…/components/sidebar.min.css"> <link rel="stylesheet" href="…/components/social.min.css"> <link rel="stylesheet" href="…/components/app-bar.min.css"> <link rel="stylesheet" href="…/components/dashboard.min.css"> <link rel="stylesheet" href="…/components/bar-list.min.css"> <link rel="stylesheet" href="…/components/column-chart.min.css"> <link rel="stylesheet" href="…/components/stacked-bar.min.css"> <link rel="stylesheet" href="…/components/heat-map.min.css"> <link rel="stylesheet" href="…/components/ring.min.css"> <link rel="stylesheet" href="…/components/tool.min.css"> <link rel="stylesheet" href="…/components/pager.min.css"> <link rel="stylesheet" href="…/components/page-transition.min.css"> <script type="module" src="…/catalog.min.js"></script><link rel="stylesheet" href="…/components/navbar.min.css"> <link rel="stylesheet" href="…/components/sidebar.min.css"> <link rel="stylesheet" href="…/components/terminal.min.css"> <link rel="stylesheet" href="…/components/social.min.css"> <link rel="stylesheet" href="…/components/docs-layout.min.css"> <link rel="stylesheet" href="…/components/doc-header.min.css"> <link rel="stylesheet" href="…/components/page-rail.min.css"> <link rel="stylesheet" href="…/components/example.min.css"> <link rel="stylesheet" href="…/components/do-dont.min.css"> <link rel="stylesheet" href="…/components/pager.min.css"> <link rel="stylesheet" href="…/components/page-footer.min.css"> <link rel="stylesheet" href="…/components/page-transition.min.css"> <script type="module" src="…/catalog.min.js"></script>
استخدمه في ثلاث خطوات
-
1. ثبّت
الرموز وcore والكتالوج: يحتاج الكتالوج إلى الاثنين الآخرين قبله.
npm install @luz-ds/tokens @luz-ds/core @luz-ds/catalog<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/tokens@0.5.1/dist/luz-tokens.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/core@0.5.1/dist/luz.min.css"> <script type="module" src="https://cdn.jsdelivr.net/npm/@luz-ds/core@0.5.1/dist/luz.min.js"></script> -
2. اربط القطع التي تستخدمها
رابط واحد لكل قطعة، بعد core. وما لا تربطه لا وزن له في صفحتك.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/catalog@0.5.1/dist/components/search.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/catalog@0.5.1/dist/components/lang-switch.min.css"> -
3. أضف السكربت مرة واحدة
ينظر في الصفحة ويحمّل سكربت كل عنصر يجده، وعندها فقط.
<script type="module" src="https://cdn.jsdelivr.net/npm/@luz-ds/catalog@0.5.1/dist/catalog.min.js"></script> <luz-search>…</luz-search> -
ما تحصل عليه
- تدفع مقابل ما تستخدمه: صفحة تحتاج البحث تربط البحث لا الرسوم البيانية.
- يعمل بلا JavaScript: البحث رابط إلى الفهرس وتبديل اللغة قائمة روابط.
- لا يُحمَّل ما لا تستخدمه الصفحة: كل سكربت ينتظر حتى يظهر عنصره.
التنقل والبنية
هيكل الصفحة: شريط التنقل والشريط الجانبي ترويسة الموقع والتذييل، مركّبة من عناصر core وبمظهرها الخاص فقط.
<link rel="stylesheet" href="…/components/site-header.min.css">
<link rel="stylesheet" href="…/components/navbar.min.css">
site-header navbar submenu lang-switch hero section site-footer
معرض الربيع للكتاب · 12 مايو
كتب للأمسيات الطويلة
عناوين جديدة كل أسبوع، يختارها من يقرؤونها.
جديد الرفوف
اعرض كل الكتب الجديدة<nav class="luz-navbar">…<luz-submenu>…</luz-submenu></nav>
<section class="luz-hero">…</section>masthead page-header article-header
مراجعات
ما قرأه باعة الكتب لدينا هذا الشهر، ولماذا.
ستة شعراء كتبوا على شاطئ البحر
من الميناء إلى المنارة: كتب نعود إليها دائمًا.
<header class="luz-masthead">…</header>
<header class="luz-article-header">…</header>sidebar app-bar tool
الطلبات
<nav class="luz-sidebar">…</nav>
<header class="luz-app-bar">…</header>
<div class="luz-tool">…</div>faq
استئجار دراجة
الحجز والاستلام
ماذا عليّ أن أحضر؟
بطاقة هوية بصورة وبطاقة للتأمين، ونعيده إليك عند إرجاع الدراجة.
هل يمكنني إلغاء الحجز؟
نعم، مجانًا حتى قبل الاستلام بيوم.
هل يمكنني الخروج من المدينة؟
نعم، ما دمت تعيد الدراجة إلى المتجر.
<link rel="stylesheet" href="…/components/faq.min.css">toc
<link rel="stylesheet" href="…/components/article.min.css">timeline
النسخة التجريبية الأولى
بضعة فرق تجرّب التطبيق.
الإطلاق العام
التسجيل مفتوح للجميع.
العمل دون اتصال
تتزامن الملاحظات عند عودة الاتصال.
<link rel="stylesheet" href="…/components/timeline.min.css">post-list
<link rel="stylesheet" href="…/components/post-list.min.css">stat
4,000+
فريق على المنصة
99.95%
مدة التشغيل في العام الماضي
12
دقيقة للإعداد في المتوسط
<link rel="stylesheet" href="…/components/stat.min.css">terminal
npm install @luz-ds/catalog<link rel="stylesheet" href="…/components/terminal.min.css">marquee
- بلا تبعيات
- HTML الأصلي أولاً
- متاح للجميع منذ الصفحة الأولى
<link rel="stylesheet" href="…/components/marquee.min.css">الرسوم البيانية
بيانات مرسومة فوق قائمة أو جدول أو مقياس أصلي يبقى في الصفحة: ورقة أنماط لكلٍّ منها، بلا مكتبة رسوم.
<link rel="stylesheet" href="…/components/dashboard.min.css">
<link rel="stylesheet" href="…/components/chart.min.css">
<link rel="stylesheet" href="…/components/column-chart.min.css">
<link rel="stylesheet" href="…/components/bar-list.min.css">
<link rel="stylesheet" href="…/components/ring.min.css">
<link rel="stylesheet" href="…/components/stacked-bar.min.css">
<link rel="stylesheet" href="…/components/heat-map.min.css">
dashboardنظرة عامة
chart · sparkالزوار يوميًا58
chart- الحاسوب
- الهاتف
ringهدف هذا الشهر
هدف هذا الشهر 1,260من 2000 طلب
column-chartالطلبات يوميًا
الطلبات يوميًا الإثنين الثلاثاء الأربعاء الخميس الجمعة 120 96 134 150 172 heat-mapالزيارات حسب وقت اليومكلما اشتد اللون زادت الزيارات. الإثنين الثلاثاء الأربعاء الخميس الجمعة الصباح 120 240 360 480 600 بعد الظهر 0 60 300 180 540 المساء 30 90 150 270 420 bar-listالزيارات حسب الصفحة
stacked-barالزيارات حسب المصدر
الزيارات حسب المصدر
للموقع كله وللتوثيق
ما يعمل للموقع كله: البحث وسؤال ملفات تعريف الارتباط وتبديل اللغة، وتخطيط موقع التوثيق.
<body class="o-shell luz-docs-layout">
<nav class="luz-sidebar luz-docs-nav">
<aside class="luz-page-rail">
<main class="o-main luz-docs-main">
<header class="luz-doc-header">
<figure class="luz-example">
<div class="luz-do-dont">
<ul class="luz-pager">
<p class="luz-page-footer">
announcement
يوم مفتوح. زوروا المعصرة يوم السبت، من 11:00 إلى 18:00. احجز زيارة
صيانة مقررة. يُغلق المتجر يوم الاثنين من 07:00 إلى 09:00. اعرف ما يبقى متاحًا
<link rel="stylesheet" href="…/components/announcement.min.css">search
مع جافاسكربت
دون جافاسكربت
<link rel="stylesheet" href="…/components/search.min.css">page-transition
بلا صنف: اربط الملف فتتلاشى كل صفحة في التالية. ومع تقليل الحركة لا يتحرك شيء.
<link rel="stylesheet" href="…/components/page-transition.min.css">theme-time
<link rel="stylesheet" href="…/components/theme-time.min.css">توثيق Acme
أدلة · الإعداد
ثبّت أداة سطر الأوامر
أضف الأداة إلى مشروع وتحقق من أنها تعمل، في نحو دقيقتين.
<button class="luz-btn">…</button>التالي: اختر نوع الموقع الذي تبنيه
في التوثيق لكلٍّ منها مقتطع بالروابط الصحيحة، ومهارة luz تبدؤه معك: صفحة هبوط أو مدونة أو تطبيق ويب أو موقع توثيق.