Skip to content

Commit d3956fe

Browse files
committed
docs
1 parent ef98407 commit d3956fe

File tree

5 files changed

+298
-767
lines changed

5 files changed

+298
-767
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,38 @@ body:
66
attributes:
77
value: |
88
9-
Thank you for submitting a bug report 💚
9+
Thank you for submitting a bug report 💚
1010
If you need help about your project and it's **NOT** a daisyUI bug, please [ask your question in discussion forum](https://github.com/saadeghi/daisyui/discussions/new?category=q-a).
1111
1212
👉 Before you submit a new bug, please do the following steps:
1313
14-
1. Update your diasyUI (and other dependencies) to the latest version (`npm i -D daisyui@latest`)
15-
2. Read [FAQ](https://github.com/saadeghi/daisyui/discussions/1949). You may find a solution there
16-
3. Search [existing issues](https://github.com/saadeghi/daisyui/issues?q=is%3Aissue) and [discussion forum](https://github.com/saadeghi/daisyui/discussions?discussions_q=). You may find a solution there
17-
4. Make sure this bug is **NOT** specific to a JS framework or a build tool. If the issue doesn't happen on [Tailwind Play](https://daisyui.com/tailwindplay/) it means it's not an issue from daisyUI.
18-
It can be a config problem in your project ([ask here](https://github.com/saadeghi/daisyui/discussions?discussions_q=)) or it can be an issue from your framework or CSS build tools.
14+
1. Update your diasyUI (and other dependencies) to the latest version (`npm i -D daisyui@latest`)
15+
2. Read [FAQ](https://github.com/saadeghi/daisyui/discussions/1949). You may find a solution there
16+
3. Search [existing issues](https://github.com/saadeghi/daisyui/issues?q=is%3Aissue) and [discussion forum](https://github.com/saadeghi/daisyui/discussions?discussions_q=). You may find a solution there
17+
4. Make sure this bug is **NOT** specific to a JS framework or a build tool. If the issue doesn't happen on [Tailwind Play](https://daisyui.com/tailwindplay/) it means it's not an issue from daisyUI.
18+
It can be a config problem in your project ([ask here](https://github.com/saadeghi/daisyui/discussions?discussions_q=)) or it can be an issue from your framework or CSS build tools.
1919
5. Open one issue per problem. Don't list multiple issues in the same page because that would be hard to track.
2020
21+
- type: input
22+
id: reproduction
23+
attributes:
24+
label: Reproduction URL (Required)
25+
description: |
26+
27+
ℹ️ Please provide a link to a small, minimal example source code where issue can be reproduced. Without a link it will be hard to guess what is the cause of the problem and it will take more time to fix.
28+
29+
ℹ️ You can use a [Tailwind Play](https://daisyui.com/tailwindplay/) page or a [Stackblitz page](https://stackblitz.com/@saadeghi/collections/daisyui) or a public GitHub repo.
30+
31+
placeholder: "https://"
32+
validations:
33+
required: true
34+
2135
- type: input
2236
id: version
2337
attributes:
2438
label: What version of daisyUI are you using?
2539
description: You can see the daisyUI version number on your `package.json` file.
26-
placeholder: "example: v4.0.3"
40+
placeholder: "example: v5.0.0"
2741
validations:
2842
required: false
2943

@@ -42,20 +56,6 @@ body:
4256
- Edge
4357
- Other
4458

45-
- type: input
46-
id: reproduction
47-
attributes:
48-
label: Reproduction URL
49-
description: |
50-
51-
ℹ️ Please provide a link to a small, minimal example source code where issue can be reproduced. Without a link it will be hard to guess what is the cause of the problem and it will take more time to fix.
52-
53-
ℹ️ You can use a [Tailwind Play](https://daisyui.com/tailwindplay/) page or a [Stackblitz page](https://stackblitz.com/@saadeghi/collections/daisyui) or a public GitHub repo.
54-
55-
placeholder: "https://"
56-
validations:
57-
required: true
58-
5959
- type: textarea
6060
id: description
6161
attributes:

packages/docs/src/components/homepage/Opensource.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
</a>
5353
</p>
5454
<div class="flex w-full justify-center">
55-
<div class="flex w-full max-w-7xl flex-wrap justify-center p-10">
55+
<div
56+
class="flex w-full max-w-7xl flex-wrap justify-center p-10 max-sm:[&>*:nth-child(n+50)]:hidden"
57+
>
5658
{#each contributors as contributor, index}
5759
<div class="avatar tooltip p-2" data-tip={contributor}>
5860
<div
@@ -78,7 +80,9 @@
7880
</a>
7981
</p>
8082
<div class="flex w-full justify-center">
81-
<div class="flex w-full max-w-7xl flex-wrap justify-center p-10">
83+
<div
84+
class="flex w-full max-w-7xl flex-wrap justify-center p-10 max-sm:[&>*:nth-child(n+50)]:hidden"
85+
>
8286
{#each sponsors as sponsor, index}
8387
<div class="tooltip" data-tip={sponsor.name}>
8488
{#if sponsor.image}

packages/docs/src/routes/(routes)/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { stats } from "$lib/data/stats.js"
22

33
export async function load({ params }) {
4-
const response = await fetch("https://img.daisyui.com/data/testimonials.json")
4+
const response = await fetch("https://img.daisyui.com/generated/testimonials.json")
55
const testimonials = await response.json()
66
return {
77
testimonials,

packages/docs/src/routes/(routes)/+page.svelte

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@
134134
// count(data)
135135
// daisyui5progress = ((trueCount / totalCount) * 100).toFixed(0)
136136
// })
137+
138+
function highlight(node) {
139+
const content = node.textContent
140+
node.innerHTML = content.replace(
141+
/\*(.*?)\*/g,
142+
"<mark class='-rotate-1 mx-1 scale-105 inline-block bg-[oklch(91.86%_0.2209_102.42)]/35 rounded-[1px] outline-2 outline-[oklch(91.86%_0.2209_102.42)]/35'>$1</mark>",
143+
)
144+
145+
return {
146+
destroy() {
147+
node.innerHTML = content
148+
},
149+
}
150+
}
137151
</script>
138152

139153
<svelte:window bind:scrollY bind:innerHeight />
@@ -1613,7 +1627,7 @@
16131627
>
16141628
<div></div>
16151629

1616-
{#each ["vue", "react", "svelte", "qwik", "laravel", "nextjs", "solidjs", "preact", "phoenix", "nuxtjs", "astro", "angular", "vite", "laravel"] as logo, index}
1630+
{#each ["vue", "react", "svelte", "qwik", "laravel", "nextjs", "solidjs", "preact", "phoenix", "nuxtjs", "astro", "angular", "vite", "rails"] as logo, index}
16171631
<img
16181632
loading="lazy"
16191633
width="96"
@@ -2025,12 +2039,18 @@
20252039
<div>
20262040
<div class="h-32"></div>
20272041
<div
2028-
class="mx-auto grid max-w-5xl grid-cols-1 gap-6 px-10 md:grid-cols-2 lg:grid-cols-3 lg:[&>*:nth-child(3n-1)]:translate-y-16"
2042+
class="mx-auto max-w-7xl gap-8 px-10 md:columns-2 lg:columns-3 xl:columns-3 max-sm:[&>*:nth-child(n+9)]:hidden"
20292043
>
2030-
{#each data.testimonials as testimonial, index}
2031-
<div class="card border-base-content/5 card-sm border text-start">
2032-
<div class="card-body">
2033-
<div class="flex items-center gap-2">
2044+
{#each data.testimonials.testimonials as testimonial, index}
2045+
<div class="card card-sm bg-base-200 mb-8 break-inside-avoid rounded-ee-[2.5rem] text-start">
2046+
<div class="card-body gap-5">
2047+
<p
2048+
class="text-base-content/70 px-1 text-[0.75rem] leading-[1.75] [text-wrap:balance]"
2049+
use:highlight
2050+
>
2051+
{testimonial.content}
2052+
</p>
2053+
<div class="flex flex-row-reverse items-center gap-3">
20342054
<div class="avatar">
20352055
<a
20362056
href={`https://twitter.com/${testimonial.username}/status/${testimonial.id}`}
@@ -2040,17 +2060,17 @@
20402060
>
20412061
<div
20422062
class="size-12 rounded-full"
2043-
style="background-image: url('https://img.daisyui.com/generated/x.webp'); background-size:auto 48px;background-position: -{index *
2044-
48}px 0px;"
2063+
style={`background-image: url('https://img.daisyui.com/generated/x.webp?${data.testimonials.generated_at}'); background-size:auto 48px;background-position: -${
2064+
index * 48
2065+
}px 0px;`}
20452066
></div>
20462067
</a>
20472068
</div>
2048-
<div class="flex flex-col items-start text-xs">
2069+
<div class="flex flex-col items-end text-xs">
20492070
<div class="text-base-content font-bold">{testimonial.name}</div>
20502071
<div class="text-base-content/70">{testimonial.bio}</div>
20512072
</div>
20522073
</div>
2053-
<p class="text-base-content/70">{testimonial.content}</p>
20542074
</div>
20552075
</div>
20562076
{/each}

0 commit comments

Comments
 (0)