James Fenn
c9bdce3f43
implement article-nav icon padding
2023-07-15 15:02:19 -04:00
James Fenn
491942bf0a
import navigation-path-script on blog-post page
2023-07-15 14:20:31 -04:00
James Fenn
d410d6cede
Revert "move navigation-path-script import to page layout"
...
This reverts commit 344904e171 .
2023-07-15 14:19:40 -04:00
James Fenn
344904e171
move navigation-path-script import to page layout
2023-07-14 21:31:21 -04:00
James Fenn
4d7c0fe584
implement article-nav component styling/tokens
2023-07-14 21:30:37 -04:00
James Fenn
0fcbd433a2
[UwU] Improve page locales behavior ( #607 )
...
- Consolidates translated pages using a `[...locale]` parameter
* this allows both the `/index` and `/[locale]/index` routes to be
implemented by the same file
- Adds support for localized collection pages & posts
* Adds `locale` and `locales` attributes to `CollectionInfo`
* Populates additional collection frontmatter in
`rehype-unicorn-populate-post` (the same as posts)
- Fixes a small bug in `translate()` where it wouldn't replace `%s`
substitutions in a fallback string
2023-07-13 17:01:42 -04:00
James Fenn
444cba7884
fix tsc issues
2023-07-12 12:23:16 -04:00
James Fenn
e194446cff
fix a bug in translations not inserting %s substitutions in fallback strings
2023-07-12 12:21:17 -04:00
James Fenn
98ff84df57
add localization support for collections and collection posts
2023-07-12 12:20:34 -04:00
James Fenn
8f133d816a
consolidate translated page files into [...locale] path
2023-07-12 10:50:56 -04:00
James Fenn
2b167f388d
[UwU] fix button icon scaling issues ( #606 )
...
Fixes incorrectly scaled icons causing misalignment in #605 due to the
container padding
2023-07-12 09:41:53 -04:00
James Fenn
ea2ef14de6
fix #605 - button icon centering/scaling issues in iframe component
2023-07-11 18:18:08 -04:00
James Fenn
74fbbef696
[UwU] Pagination logic fixes & unit tests ( #603 )
...
- Fixes pagination component creating extra buttons when there are fewer
pages than `PAGE_BUTTON_COUNT`
- Fixes the pagination popup navigating to `/NaN` when its input is
empty
- Fixes missing disabled styling on the pagination popup +/- buttons
- Adds unit tests for pagination logic
2023-07-11 15:07:20 -04:00
James Fenn
b0e1e0bd85
fix CSS precedence overriding button disabled state
2023-07-11 15:02:02 -04:00
James Fenn
ca02541542
fix popover pagination component navigating to /NaN with empty input
2023-07-11 14:49:35 -04:00
James Fenn
b138ca8119
implement tests for pagination and pagination-popover
2023-07-11 14:37:43 -04:00
James Fenn
5d7dcd2a51
implement tests on usePagination
2023-07-11 12:50:19 -04:00
James Fenn
7e6eacd4c6
create initial usePagination test
2023-07-11 12:23:21 -04:00
James Fenn
d7b8a550b0
fix svg and scss module mocks, get tests working with react/preact imports
2023-07-11 12:23:21 -04:00
James Fenn
6b9df317a1
merge with softNavigate pagination changes from #601
2023-07-11 12:23:20 -04:00
James Fenn
0f99740cba
move pagination logic into useMemo
2023-07-11 12:23:13 -04:00
James Fenn
f91795907b
fix pagination creating unnecessary extra buttons
2023-07-11 12:19:01 -04:00
James Fenn
22747e9854
[UwU] Mobile stickers banner breakpoint ( #602 )
...
Implements the stickers banner on mobile
2023-07-10 23:07:10 -04:00
James Fenn
69b7f1f4da
add props typing, set alt and aria-hidden on banner images
2023-07-10 22:39:42 -04:00
James Fenn
0089d6f6ba
adjust sticker positions and add banner text-shadow to prevent contrast issues
2023-07-10 21:18:28 -04:00
James Fenn
31e87c5adf
initial implementation of mobile sticker banner
2023-07-10 20:48:14 -04:00
Corbin Crutchley
5cc7a83387
[UwU] Post card ctrl click ( #598 )
...
Fixes #573
2023-07-10 08:49:41 -07:00
James Fenn
a4465cf4e1
clarify comments on auxclick
2023-07-10 11:44:05 -04:00
James Fenn
96c15a4348
fix to apply navigation-path-script to the collections page
2023-07-10 11:29:07 -04:00
James Fenn
2b2da4b84b
use onclick instead of mouseup, ignore click events during text selection
2023-07-10 11:27:39 -04:00
Corbin Crutchley
b96b0e7c96
feat: add middle click, docs, refactor
2023-07-09 20:38:30 -07:00
Corbin Crutchley
bb0cbe4805
chore: add edgecases for nested handlers and explicitly don't bind
2023-07-09 20:15:13 -07:00
Corbin Crutchley
cc3aacbc94
chore: don't trigger click listener on a tags or buttons
2023-07-09 20:13:17 -07:00
James Fenn
21a40e0f78
fix navigation-path-script selector
2023-07-09 20:04:03 -07:00
Corbin Crutchley
ce682b2747
fix: apply ctrl+click and such to post cards
...
Fixes #573
# Conflicts:
# src/pages/search.astro
2023-07-09 20:04:03 -07:00
Corbin Crutchley
b53099b2c2
[UwU] File list style ( #597 )
...
This PR implements the file list styling to match the specs
<img width="692" alt="image"
src="https://github.com/unicorn-utterances/unicorn-utterances/assets/9100169/3ee365db-c16e-42c9-901d-1ac620eab7b5 ">
> Preview:
https://unicorn-utterances-git-uwu-file-list-style-oceanbit.vercel.app/posts/setup-a-react-native-monorepo
2023-07-09 17:45:01 -07:00
Corbin Crutchley
906d44b1c9
[UwU] fix collections small screen ( #599 )
...
Fixes #594
2023-07-09 17:43:02 -07:00
Corbin Crutchley
33c236d387
Revert "chore!: add temp file for testing states"
...
This reverts commit 7f74d47cf5 .
2023-07-09 17:23:04 -07:00
Corbin Crutchley
bffb42843d
Merge branch 'uwu-file-list-style' of https://github.com/unicorn-utterances/unicorn-utterances into uwu-file-list-style
2023-07-09 17:22:07 -07:00
Corbin Crutchley
1799b9a161
fix: color of annotation is now correct
2023-07-09 17:21:13 -07:00
Corbin Crutchley
ce8d4a399f
fix: collection card image and buttons don't cause overflow or shrink
...
Fixes #594
2023-07-09 17:17:44 -07:00
James Fenn
7c708189d9
hover transitions wheee
2023-07-09 20:13:53 -04:00
Corbin Crutchley
3a4beb06a7
chore: fix font sizing and min-height size
2023-07-09 16:57:33 -07:00
Corbin Crutchley
7f74d47cf5
chore!: add temp file for testing states
2023-07-09 16:53:26 -07:00
Corbin Crutchley
7cf5aa7983
chore: add focus state
2023-07-09 16:53:26 -07:00
Corbin Crutchley
da5d7a4694
chore: fix font size
2023-07-09 16:53:26 -07:00
Corbin Crutchley
5cbdb39b11
chore: attempt to fix icons
2023-07-09 16:53:26 -07:00
Corbin Crutchley
a94baac750
chore: apply custom folder icon
2023-07-09 16:53:26 -07:00
Corbin Crutchley
a590035b1e
chore: implement highlighted
2023-07-09 16:53:26 -07:00
Corbin Crutchley
06b210e474
chore: add lines and such to lists
2023-07-09 16:53:26 -07:00