Skip to content

Commit 736559e

Browse files
committed
store
1 parent b206aea commit 736559e

5 files changed

Lines changed: 220 additions & 8 deletions

File tree

packages/docs/src/components/StoreProduct.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<img
1616
style={`background-image: url('${media.sm}')`}
1717
src={media.lg}
18-
alt={product.attributes.name}
18+
alt={product.title}
1919
loading="lazy"
2020
class="bg-base-300 h-full w-full bg-cover bg-center object-cover"
2121
/>
@@ -54,7 +54,7 @@
5454
<div class="flex justify-between gap-4 pt-6">
5555
<div class="flex flex-col gap-1">
5656
<h2 class="font-title text-lg">
57-
{product.attributes.name}
57+
{product.title}
5858
</h2>
5959
<div>
6060
{#if product.badge}

packages/docs/src/lib/data/store.yaml

Lines changed: 201 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
productCustomAttributes:
22
- id: 479479
3+
title: Blink template
4+
desc: >-
5+
Blink is a template for agencies, companies, startups, or small businesses
6+
<br/>Available for React and Svelte
7+
8+
9+
Features:
10+
- Made with Tailwind CSS and daisyUI
11+
- Compatible with all daisyUI themes
12+
- Clean, responsive, easy to customize
13+
- Dark and light theme switch button
14+
15+
Including:
16+
- Landing page
17+
- Pricing page and pricing table
18+
- Projects (portfolio) page
19+
- About page
20+
- Contact form
321
media:
422
- type: image
523
sm: https://img.daisyui.com/images/store/small/blink/blink-08.webp
@@ -32,6 +50,21 @@ productCustomAttributes:
3250
icon: check
3351
text: Updated to daisyUI 5.0
3452
- id: 426780
53+
title: Online Store template
54+
desc: >-
55+
**Fully functional LemonSqueezy store template made with daisyUI**
56+
57+
58+
Made with daisyUI and Next.js 15
59+
60+
61+
Add your **LemonSqueezy API key** to the env file, add custom data for your products and your online store will be ready in **less than 5 minutes**!
62+
63+
64+
This template receives your simple list of products coming from the LemonSqueezy API, adds your custom data and attributes to the products and generates a functional online store with all the standard online store capabilities you need.
65+
66+
67+
Including Homepage, collections page with filter and sort, product page with image gallery, zoom, custom attributes, variant links, related product suggestions and more.
3568
faq:
3669
- Q: Can I use this template without Lemon Squeezy?
3770
A: If the Lemon Squeezy API key is not provided, the data will come from the local JSON file. So you can use the template without Lemon Squeezy, using a static JSON file, and for checkout and payment you can use your own solution.
@@ -61,6 +94,40 @@ productCustomAttributes:
6194
icon: wait
6295
text: daisyUI 5.0 update coming soon
6396
- id: 244268
97+
title: Nexus Dashboard
98+
desc: >-
99+
The ultimate dashboard template
100+
101+
102+
Made with Tailwind CSS 4.0 and daisyUI 5.0
103+
104+
105+
Including:
106+
- All pages
107+
- CRM and e-commerce dashboard layouts
108+
- Landing page
109+
- 10 e-commerce pages with tables, forms, cards, etc
110+
- File manager app layout
111+
- Chat app layout
112+
- 4 pages for the gen-AI app (home, images, content creator, library) 🆕
113+
- 4 auth pages including login, register, password reset
114+
- Profile settings page and support/FAQ page
115+
- 21 component page examples with all variants
116+
- 12 form component examples with all variants
117+
- Apex charts
118+
- 5 customizable themes including Light, Dark, Dim, Contrast, Material
119+
- Compatible with all daisyUI themes
120+
121+
122+
Solo license:
123+
- Includes HTML version
124+
- For one developer, one project
125+
126+
127+
Team and Enterprise license:
128+
- includes HTML, React, Next.js and SvelteKit versions
129+
- For unlimited developers
130+
- For unlimited projects (Enterprise only)
64131
media:
65132
- type: video
66133
url: https://www.youtube.com/embed/3CX5wfvOfpw?mute=0&autoplay=0&controls=0&rel=0&modestbranding=1&loop=1&playlist=3CX5wfvOfpw
@@ -112,6 +179,27 @@ productCustomAttributes:
112179
preview: https://nexus.daisyui.com/
113180
ref: Db6q2
114181
- id: 351127
182+
title: Official daisyUI Figma Library
183+
desc: >-
184+
**Available in 3 plans**, Including:
185+
- Documentation and step by step tutorial for everything
186+
- All components (56+)
187+
- All variants (2472+)
188+
- All properties
189+
- daisyUI themes
190+
- Variables for everything (colors, border-radius, typography, spacing, etc)
191+
- Variable modes (Quickly switch between daisyUI themes)
192+
- Examples for Dashboard and forms
193+
- Access to Discord channel for priority support
194+
195+
After purchase you will receive:
196+
1. Instant access to the downloadable Figma file (.fig file)
197+
- This is useful for Figma paid subscribers
198+
- Allows you to customize the library and share it to your team
199+
2. An invitation to the Official Figma file
200+
- For Starter and Standard plans
201+
- This is useful for free Figma users who can't share a library file
202+
- Invitation will be sent to your purchase email within 48 hours
115203
media:
116204
- type: video
117205
url: https://www.youtube.com/embed/ebWEkM4AvjU?mute=1&autoplay=1&controls=0&rel=0&modestbranding=1&loop=1&playlist=ebWEkM4AvjU
@@ -148,6 +236,8 @@ productCustomAttributes:
148236
preview: https://www.figma.com/community/file/1417577350704829934
149237
packages:
150238
- [null, Starter package, Standard package, Pro package]
239+
- [Invitation to read-only shared file (for free Figma users), true, true, Not needed]
240+
- [Customizable .fig file (for paid Figma subscribers), true, true, true]
151241
- [All components (56), true, true, true]
152242
- [All variants (2472+), true, true, true]
153243
- ["All properties (booleans, nested instances, etc)", true, true, true]
@@ -180,6 +270,24 @@ productCustomAttributes:
180270
icon: wait
181271
text: daisyUI 5.0 update in development
182272
- id: 284327
273+
title: Documentation template
274+
desc: >-
275+
Create a modern and clean document site for your open source projects
276+
277+
278+
Features:
279+
- Available for Astro and Next.js
280+
- Made with Markdown, Tailwind CSS and daisyUI
281+
- Search functionality
282+
- SEO friendly, Lightweight and fast
283+
- Dark mode and Light mode
284+
285+
286+
Including:
287+
- Homepage with features sections, code demo, contributors images, testimonials and installation guide
288+
- Document pages made from Markdown files with Sidebar, page content links, sponsors section
289+
- Search bar using Algolia DocSearch
290+
- Theme switch button with dark theme and light theme (compatible with all daisyUI themes)
183291
media:
184292
- type: image
185293
sm: https://img.daisyui.com/images/store/small/documentation/documentation-1.webp
@@ -199,15 +307,33 @@ productCustomAttributes:
199307
links:
200308
license: https://api.daisyui.com/license/documentation@1.txt
201309
screenshot: https://img.daisyui.com/images/store/screenshots/documentation-template.webp
202-
originalprice: 4900
203-
displayprice: 2900
310+
# originalprice: 4900
311+
# displayprice: 2900
204312
tech: [astro, react, nextjs, mdx]
205313
tags: [content, app]
206314
badge:
207315
class: badge-success
208316
icon: check
209317
text: Updated to daisyUI 5.0
210318
- id: 142623
319+
title: SaaS landing page
320+
desc: >-
321+
Production-ready landing page for software products.
322+
323+
324+
Features:
325+
- SaaS landing page layout made with daisyUI 5
326+
- Available for HTML, React, Svelte, Vue
327+
328+
329+
Including:
330+
- 2 exclusive daisyUI themes (dark/light)
331+
- Compatible with all daisyUI themes (32 themes)
332+
- Responsive layout
333+
- Hero section, Partner logos, Features section, Integrations cards, Pricing tables, FAQ accordion section, Footer with links and contact form
334+
- Pricing table with dynamic price toggle
335+
- Theme changer menu
336+
- 3D card effect
211337
media:
212338
- type: image
213339
sm: https://img.daisyui.com/images/store/small/saas-landing/saas-landing-10.webp
@@ -251,6 +377,25 @@ productCustomAttributes:
251377
icon: check
252378
text: Updated to daisyUI 5.0
253379
- id: 208203
380+
title: Blog template
381+
desc: >-
382+
Fully working multi page blog template made with daisyUI
383+
384+
385+
Available for Astro and Next.js
386+
387+
388+
Features:
389+
- Made with Markdown, Tailwind CSS and daisyUI
390+
- SEO friendly, Lightweight and fast
391+
- Dark mode and Light mode
392+
393+
394+
Including:
395+
- Homepage
396+
- About page
397+
- Article page
398+
- Articles archive with pagination
254399
media:
255400
- type: image
256401
sm: https://img.daisyui.com/images/store/small/personal-blog/personal-blog-1.webp
@@ -271,6 +416,22 @@ productCustomAttributes:
271416
icon: check
272417
text: Updated to daisyUI 5.0
273418
- id: 185227
419+
title: Mobile app landing page
420+
desc: >-
421+
Landing page for mobile app introduction.
422+
423+
424+
Features:
425+
- A landing page layout made with daisyUI 5
426+
- Available for HTML, React, Svelte, Vue
427+
428+
429+
Including:
430+
- 2 exclusive daisyUI themes (dark/light)
431+
- Compatible with all daisyUI themes (32 themes)
432+
- Responsive layout
433+
- Navbar, Hero section with gradient background, mobile mockups, stats, features section, testimonial slider, FAQ, footer with email form and social media icons
434+
- Theme changer menu
274435
media:
275436
- type: image
276437
sm: https://img.daisyui.com/images/store/small/mobile-app-landing/mobile-app-landing-7.webp
@@ -305,6 +466,24 @@ productCustomAttributes:
305466
icon: check
306467
text: Updated to daisyUI 5.0
307468
- id: 130237
469+
title: Auth template
470+
desc: >-
471+
Professionally designed auth pages to use in your project right away.
472+
473+
474+
Features:
475+
- 3 HTML pages made with daisyUI 5
476+
- Framework agnostic. Can be used everywhere
477+
- Compatible with all 32 daisyUI themes
478+
479+
480+
Including:
481+
- Login page
482+
- Signup page
483+
- Password recovery page
484+
- Form inputs with HTML validation and validation styles
485+
- Login with Google button
486+
- Toggle and Alert examples
308487
media:
309488
- type: image
310489
sm: https://img.daisyui.com/images/store/small/auth/auth-2.webp
@@ -334,6 +513,26 @@ productCustomAttributes:
334513
icon: check
335514
text: Updated to daisyUI 5.0
336515
- id: 120591
516+
title: HTML Dashboard template
517+
desc: >-
518+
Production-ready admin dashboard template to use in your project right now.
519+
520+
521+
Features:
522+
- HTML admin dashboard layout made with daisyUI 5
523+
- Web component charts
524+
- Framework agnostic. Can be used everywhere
525+
- No dependencies
526+
527+
528+
Including:
529+
- 2 exclusive daisyUI themes (dark/light) + Compatible with all 32 daisyUI themes
530+
- Responsive grid layout
531+
- 14 blocks of useful sections for dashboard
532+
- Sidebar with collapsible submenus
533+
- Tables and Item lists
534+
- Dropdown menus
535+
- Charts and forms
337536
media:
338537
- type: image
339538
sm: https://img.daisyui.com/images/store/small/html-dashboard/html-dashboard-1.webp

packages/docs/src/routes/(routes)/store/[productId]/+page.server.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { compile } from "mdsvex"
12
import yaml from "js-yaml"
23
import { readFileSync } from "fs"
34

@@ -14,10 +15,14 @@ export async function load({ params, parent }) {
1415
if (!product) {
1516
throw error(404, "Product not found")
1617
}
18+
const mdDesc = await compile(product.desc, {
19+
smartypants: false,
20+
})
21+
const compiledDesc = mdDesc.code
1722

1823
return {
1924
products,
20-
product,
25+
product: { ...product, desc: compiledDesc },
2126
tech: products.tech,
2227
faq: yamlData.faq,
2328
}

packages/docs/src/routes/(routes)/store/[productId]/+page.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
</span>
353353
{/if}
354354

355-
<h1 class="text-4xl font-bold">{data.product.attributes.name}</h1>
355+
<h1 class="text-4xl font-bold">{data.product.title}</h1>
356356
</div>
357357
<div class="flex items-start justify-between">
358358
<div class="flex gap-2">
@@ -423,11 +423,16 @@
423423
</div>
424424
</div>
425425

426-
{#if data.product.attributes.description}
426+
{#if data.product.desc}
427427
<div class="prose prose-sm max-w-none ps-0! [&_ul>li>p]:my-0">
428-
{@html data.product.attributes.description}
428+
{@html data.product.desc}
429429
</div>
430430
{/if}
431+
<!-- {#if data.product.attributes.description}
432+
<div class="prose prose-sm max-w-none ps-0! [&_ul>li>p]:my-0">
433+
{@html data.product.attributes.description}
434+
</div>
435+
{/if} -->
431436

432437
{#if data.product.tech}
433438
<div class="mt-4 flex items-center gap-4 lg:gap-8">

packages/docs/src/routes/(routes)/store/checkout/+page@.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<meta name="robots" content="noindex" />
44
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon" />
55
<script>
6+
console.log(
7+
"If this page is not loading, please disable ad blockers or software that blocks scripts. We do not track your IP address or personal information. This script is required to assigne affiliate ID required for the purchase.",
8+
)
69
const urlParams = new URLSearchParams(window.location.search)
710
const productId = urlParams.get("product")
811
const desc = urlParams.get("desc") === "0" ? "&desc=0" : ""

0 commit comments

Comments
 (0)