mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 17:04:15 +00:00
Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa2b47ace4 | ||
|
|
3a96d38a77 | ||
|
|
7e8f23f5fa | ||
|
|
d0160763ee | ||
|
|
b921629ee3 |
7 changed files with 63 additions and 31 deletions
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -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.
|
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
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "moodist",
|
"name": "moodist",
|
||||||
"version": "2.2.0",
|
"version": "2.4.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "moodist",
|
"name": "moodist",
|
||||||
"version": "2.2.0",
|
"version": "2.4.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",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "moodist",
|
"name": "moodist",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.2.0",
|
"version": "2.4.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -18,32 +18,29 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
& a {
|
& .icon {
|
||||||
color: inherit;
|
display: flex;
|
||||||
text-decoration: none;
|
align-items: center;
|
||||||
|
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;
|
||||||
|
|
||||||
& .icon {
|
&:hover {
|
||||||
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-50),
|
var(--color-neutral-100),
|
||||||
var(--color-neutral-100)
|
var(--color-neutral-200)
|
||||||
);
|
);
|
||||||
border: 1px solid var(--color-neutral-300);
|
transform: scale(1.15);
|
||||||
border-radius: 50%;
|
|
||||||
transition: 0.2s;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: linear-gradient(
|
|
||||||
var(--color-neutral-100),
|
|
||||||
var(--color-neutral-200)
|
|
||||||
);
|
|
||||||
transform: scale(1.15);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,11 @@ 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}>
|
||||||
|
|
@ -15,11 +20,18 @@ export default function CategoryIcons() {
|
||||||
<Tooltip.Provider delayDuration={0}>
|
<Tooltip.Provider delayDuration={0}>
|
||||||
{categories.map(category => {
|
{categories.map(category => {
|
||||||
return (
|
return (
|
||||||
<a href={`#category-${category.id}`} key={category.id}>
|
<Tooltip
|
||||||
<Tooltip content={category.title} placement="bottom">
|
content={category.title}
|
||||||
<div className={styles.icon}>{category.icon}</div>
|
key={category.id}
|
||||||
</Tooltip>
|
placement="bottom"
|
||||||
</a>
|
>
|
||||||
|
<button
|
||||||
|
className={styles.icon}
|
||||||
|
onClick={() => goto(category.id)}
|
||||||
|
>
|
||||||
|
{category.icon}
|
||||||
|
</button>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Tooltip.Provider>
|
</Tooltip.Provider>
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,10 @@ 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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue