Compare commits

...

5 commits
v2.2.0 ... main

Author SHA1 Message Date
MAZE
aa2b47ace4 chore(release): 2.4.0 2025-11-25 20:09:52 +03:30
MAZE
3a96d38a77 feat: add audio session type 2025-11-25 19:45:54 +03:30
MAZE
7e8f23f5fa chore(release): 2.3.0 2025-11-25 00:27:03 +03:30
MAZE
d0160763ee feat: turn links into buttons 2025-11-25 00:26:47 +03:30
MAZE
b921629ee3 chore: change silence 2025-11-25 00:17:52 +03:30
7 changed files with 63 additions and 31 deletions

View file

@ -2,6 +2,25 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [2.4.0](https://github.com/remvze/moodist/compare/v2.3.0...v2.4.0) (2025-11-25)
### ✨ Features
* add audio session type ([3a96d38](https://github.com/remvze/moodist/commit/3a96d38a774c7675811d5a3ea323a49d9d129bbc))
## [2.3.0](https://github.com/remvze/moodist/compare/v2.2.0...v2.3.0) (2025-11-24)
### 🚚 Chores
* change silence ([b921629](https://github.com/remvze/moodist/commit/b921629ee33c4a18a86258ba204921f732f404ff))
### ✨ Features
* turn links into buttons ([d016076](https://github.com/remvze/moodist/commit/d0160763eeb66ba47dd06098b1f2a84e234fca36))
## [2.2.0](https://github.com/remvze/moodist/compare/v2.1.0...v2.2.0) (2025-11-24)

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "moodist",
"version": "2.2.0",
"version": "2.4.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "moodist",
"version": "2.2.0",
"version": "2.4.0",
"dependencies": {
"@astrojs/react": "3.6.0",
"@floating-ui/react": "0.26.0",

View file

@ -1,7 +1,7 @@
{
"name": "moodist",
"type": "module",
"version": "2.2.0",
"version": "2.4.0",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

Binary file not shown.

View file

@ -18,10 +18,6 @@
align-items: center;
justify-content: center;
& a {
color: inherit;
text-decoration: none;
& .icon {
display: flex;
align-items: center;
@ -29,6 +25,8 @@
width: 48px;
height: 48px;
font-size: var(--font-md);
color: var(--color-foreground);
cursor: pointer;
background: linear-gradient(
var(--color-neutral-50),
var(--color-neutral-100)
@ -46,5 +44,4 @@
}
}
}
}
}

View file

@ -7,6 +7,11 @@ import { Tooltip } from '@/components/tooltip';
export default function CategoryIcons() {
const categories = useMemo(() => sounds.categories, []);
const goto = (id: string) => {
const category = document.getElementById(`category-${id}`);
category?.scrollIntoView();
};
return (
<Container>
<div className={styles.wrapper}>
@ -15,11 +20,18 @@ export default function CategoryIcons() {
<Tooltip.Provider delayDuration={0}>
{categories.map(category => {
return (
<a href={`#category-${category.id}`} key={category.id}>
<Tooltip content={category.title} placement="bottom">
<div className={styles.icon}>{category.icon}</div>
<Tooltip
content={category.title}
key={category.id}
placement="bottom"
>
<button
className={styles.icon}
onClick={() => goto(category.id)}
>
{category.icon}
</button>
</Tooltip>
</a>
);
})}
</Tooltip.Provider>

View file

@ -47,6 +47,10 @@ export function useSound(
preload: options.preload ?? false,
src: src,
});
if (window.navigator.audioSession) {
window.navigator.audioSession.type = 'playback';
}
}
return sound;