Compare commits

..

No commits in common. "main" and "v2.2.0" have entirely different histories.
main ... v2.2.0

7 changed files with 31 additions and 63 deletions

View file

@ -2,25 +2,6 @@
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. 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) ## [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", "name": "moodist",
"version": "2.4.0", "version": "2.2.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "moodist", "name": "moodist",
"version": "2.4.0", "version": "2.2.0",
"dependencies": { "dependencies": {
"@astrojs/react": "3.6.0", "@astrojs/react": "3.6.0",
"@floating-ui/react": "0.26.0", "@floating-ui/react": "0.26.0",

View file

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

Binary file not shown.

View file

@ -18,29 +18,32 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
& .icon { & a {
display: flex; color: inherit;
align-items: center; text-decoration: none;
justify-content: center;
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)
);
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
transition: 0.2s;
&:hover { & .icon {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
font-size: var(--font-md);
background: linear-gradient( background: linear-gradient(
var(--color-neutral-100), var(--color-neutral-50),
var(--color-neutral-200) var(--color-neutral-100)
); );
transform: scale(1.15); border: 1px solid var(--color-neutral-300);
border-radius: 50%;
transition: 0.2s;
&:hover {
background: linear-gradient(
var(--color-neutral-100),
var(--color-neutral-200)
);
transform: scale(1.15);
}
} }
} }
} }

View file

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

View file

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