-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new definitions for pagination
- Loading branch information
1 parent
d533952
commit 2fe8508
Showing
5 changed files
with
172 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "ARIA Attributes" | ||
description: "HTML attributes that provide accessibility information to assistive technologies" | ||
--- | ||
|
||
# ARIA Attributes | ||
|
||
ARIA (Accessible Rich Internet Applications) attributes are HTML attributes that provide additional information about web content and UI components to assistive technologies, such as screen readers. They help make web applications more accessible to users with disabilities. | ||
|
||
## Common ARIA Attributes | ||
|
||
- `aria-label`: Provides a text label for elements | ||
- `aria-current`: Indicates the current item in a set | ||
- `aria-expanded`: Shows if an expandable element is open | ||
- `aria-hidden`: Hides elements from assistive technologies | ||
- `aria-live`: Announces dynamic content changes | ||
|
||
## Best Practices | ||
|
||
- Use semantic HTML elements when possible | ||
- Only add ARIA attributes when necessary | ||
- Test with screen readers | ||
- Keep labels clear and concise | ||
|
||
## Implementation Examples | ||
|
||
```html | ||
<!-- Navigation with ARIA --> | ||
<nav aria-label="Pagination"> | ||
<button aria-label="Previous page">Previous</button> | ||
<button aria-current="page">1</button> | ||
<button aria-label="Next page">Next</button> | ||
</nav> | ||
``` | ||
|
||
## Related Patterns | ||
|
||
- [Pagination](/patterns/navigation/pagination) | ||
- [Navigation Patterns](/patterns/navigation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Progressive Loading" | ||
description: "A technique that loads content gradually to improve initial page load times and user experience" | ||
--- | ||
|
||
# Progressive Loading | ||
|
||
Progressive Loading is a performance optimization technique that loads content and resources gradually rather than all at once. This approach improves initial page load times and provides a better user experience, especially for users with slower internet connections. | ||
|
||
## Key Concepts | ||
|
||
- Content is loaded in stages or chunks | ||
- Initial load focuses on essential content | ||
- Additional content loads as needed | ||
- Can be triggered by user actions or automatically | ||
|
||
## Common Applications | ||
|
||
- Image loading (thumbnails before full resolution) | ||
- Paginated content loading | ||
- Infinite scroll implementations | ||
- Large data table loading | ||
|
||
## Benefits | ||
|
||
- Faster initial page loads | ||
- Reduced server load | ||
- Better user experience | ||
- Improved perceived performance | ||
|
||
## Related Patterns | ||
|
||
- [Pagination](/patterns/navigation/pagination) | ||
- [Infinite Scroll](/patterns/navigation/infinite-scroll) | ||
- [Load More](/patterns/navigation/load-more) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: "Semantic HTML" | ||
description: "HTML elements that carry meaning about their content structure and purpose" | ||
--- | ||
|
||
# Semantic HTML | ||
|
||
Semantic HTML refers to using HTML elements that clearly describe their meaning and purpose, rather than just their presentation. This practice improves accessibility, SEO, and code maintainability by providing clear structural information about the content. | ||
|
||
## Key Elements | ||
|
||
- `<nav>`: Navigation sections | ||
- `<main>`: Main content area | ||
- `<article>`: Self-contained content | ||
- `<section>`: Thematic grouping | ||
- `<header>`: Introductory content | ||
- `<footer>`: Concluding content | ||
|
||
## Benefits | ||
|
||
- Improved accessibility | ||
- Better SEO performance | ||
- Clearer code structure | ||
- Enhanced maintainability | ||
- Consistent cross-browser support | ||
|
||
## Example Usage | ||
|
||
```html | ||
<nav aria-label="Main"> | ||
<ul> | ||
<li><a href="/">Home</a></li> | ||
<li><a href="/about">About</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<main> | ||
<article> | ||
<h1>Article Title</h1> | ||
<section> | ||
<h2>Section Heading</h2> | ||
<p>Content goes here...</p> | ||
</section> | ||
</article> | ||
</main> | ||
``` | ||
|
||
## Related Patterns | ||
|
||
- [Pagination](/patterns/navigation/pagination) | ||
- [Navigation Patterns](/patterns/navigation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters