File tree Expand file tree Collapse file tree 16 files changed +37
-34
lines changed Expand file tree Collapse file tree 16 files changed +37
-34
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ This is an non-exhaustive list of available and incoming patterns.
13
13
14
14
### Navigation
15
15
16
- - [ Breadcrumbs] ( https://uxpatterns.dev/en/docs /navigation/breadcrumb )
16
+ - [ Breadcrumbs] ( https://uxpatterns.dev/en/patterns /navigation/breadcrumb )
17
17
- Navigation Menu (coming soon)
18
18
- Pagination (coming soon)
19
19
20
20
### Input & Forms
21
21
22
- - [ Button] ( https://uxpatterns.dev/en/docs /forms/button )
22
+ - [ Button] ( https://uxpatterns.dev/en/patterns /forms/button )
23
23
- Checkbox (coming soon)
24
24
- Code Confirmation (coming soon)
25
25
- Color Picker (coming soon)
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ export const SubscribeForm = () => {
61
61
} ;
62
62
63
63
return (
64
- < div className = "flex flex-col mt-10 items-center justify-center py-10 px-4 text-center border border-neutral-400 dark:border-neutral-600 rounded-xl" >
65
- < h2 className = "text-2xl font-bold mb-5 text-foreground" >
64
+ < section className = "flex flex-col mt-10 items-center justify-center py-10 px-4 text-center border border-neutral-400 dark:border-neutral-600 rounded-xl" aria-labelledby = "subscribe-title ">
65
+ < h2 id = "subscribe-title" className = "text-2xl font-bold mb-5 text-foreground" >
66
66
Get notified when new patterns are added!
67
67
</ h2 >
68
68
< form onSubmit = { handleSubmit } className = "space-y-4" >
@@ -112,6 +112,6 @@ export const SubscribeForm = () => {
112
112
) }
113
113
</ div >
114
114
</ form >
115
- </ div >
115
+ </ section >
116
116
) ;
117
117
}
Original file line number Diff line number Diff line change 1
1
import { PROJECT_URL } from '@/app/_constants/project'
2
+ import { LinkCustom } from './link-custom'
2
3
import { Button } from './ui/button'
3
4
4
- export function SuggestPattern ( ) {
5
+ export const SuggestPattern = ( ) => {
5
6
return (
6
- < div className = "flex flex-col mt-10 items-center justify-center py-10 px-4 text-center border border-neutral-400 dark:border-neutral-600 rounded-xl" >
7
- < h2 className = "text-2xl font-bold mb-5 text-foreground" > Got a pattern request?</ h2 >
7
+ < section className = "flex flex-col mt-10 items-center justify-center py-10 px-4 text-center border border-neutral-400 dark:border-neutral-600 rounded-xl" aria-labelledby = "suggest-pattern-title ">
8
+ < h2 id = "suggest-pattern-title" className = "text-2xl font-bold mb-5 text-foreground" > Got a pattern request?</ h2 >
8
9
< p className = "text-lg text-muted-foreground mb-6" >
9
10
Let us know, and we'll add it!
10
11
</ p >
@@ -13,15 +14,13 @@ export function SuggestPattern() {
13
14
className = "font-medium"
14
15
asChild
15
16
>
16
- < a
17
+ < LinkCustom
17
18
href = { `${ PROJECT_URL } /discussions/new?category=suggestions` }
18
- target = "_blank"
19
- rel = "noopener noreferrer"
20
19
className = "plausible-event-name=Suggest+Pattern"
21
20
>
22
21
Send Suggestion
23
- </ a >
22
+ </ LinkCustom >
24
23
</ Button >
25
- </ div >
24
+ </ section >
26
25
)
27
26
}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ export const FOOTER_MENU_LINKS = (lang: string) => [
4
4
label : 'Home'
5
5
} ,
6
6
{
7
- path : '/docs ' ,
8
- label : 'Documentation '
7
+ path : '/patterns ' ,
8
+ label : 'Patterns '
9
9
} ,
10
10
{
11
11
path : '/blog' ,
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ export const formPatterns = [
29
29
{
30
30
title : 'Autocomplete' ,
31
31
description : 'Suggest options as users type' ,
32
- href : '/docs /forms/autocomplete' ,
32
+ href : '/patterns /forms/autocomplete' ,
33
33
icon : Search
34
34
} ,
35
35
{
36
36
title : 'Button' ,
37
37
description : 'Trigger actions and submit forms' ,
38
- href : '/docs /forms/button' ,
38
+ href : '/patterns /forms/button' ,
39
39
icon : MousePointerClick
40
40
} ,
41
41
{
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export const navigationPatterns = [
4
4
{
5
5
title : 'Breadcrumb' ,
6
6
description : 'Help users understand their current location' ,
7
- href : '/docs /navigation/breadcrumb' ,
7
+ href : '/patterns /navigation/breadcrumb' ,
8
8
icon : Navigation2 ,
9
9
} ,
10
10
{
Original file line number Diff line number Diff line change 1
1
export const ROUTES = {
2
2
home : '/' ,
3
- docs : '/docs ' ,
3
+ patterns : '/patterns ' ,
4
4
email : '/api/email' ,
5
5
} as const ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
47
47
routes . push ( {
48
48
url : `${ BASE_URL } /${ locale } ${ page ? `/${ page } ` : '' } ` ,
49
49
lastModified : new Date ( ) ,
50
- changeFrequency : page . includes ( 'docs ' ) ?
50
+ changeFrequency : page . includes ( 'patterns ' ) ?
51
51
"weekly" :
52
52
"monthly" ,
53
53
priority : getPriority ( page ) ,
@@ -68,7 +68,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
68
68
69
69
function getPriority ( path : string ) : number {
70
70
if ( ! path ) return 1 ; // Homepage
71
- if ( path === 'docs /getting-started' ) return 0.9 ;
72
- if ( path . startsWith ( 'docs /' ) ) return 0.8 ;
71
+ if ( path === 'patterns /getting-started' ) return 0.9 ;
72
+ if ( path . startsWith ( 'patterns /' ) ) return 0.8 ;
73
73
return 0.5 ; // Other pages
74
74
}
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ export default {
6
6
typesetting : 'article'
7
7
}
8
8
} ,
9
- docs : {
9
+ patterns : {
10
10
type : 'page' ,
11
- title : 'Documentation '
11
+ title : 'Patterns '
12
12
} ,
13
13
blog : {
14
14
type : 'page' ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments