mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-18 03:36:35 -07:00
add subtle gradient to home page
This commit is contained in:
parent
08fc9eed86
commit
ad98796099
1 changed files with 7 additions and 7 deletions
|
|
@ -10,19 +10,16 @@ import PeriodSelector from "~/components/PeriodSelector";
|
||||||
import { useAppContext } from "~/providers/AppProvider";
|
import { useAppContext } from "~/providers/AppProvider";
|
||||||
|
|
||||||
export function meta({}: Route.MetaArgs) {
|
export function meta({}: Route.MetaArgs) {
|
||||||
return [
|
return [{ title: "Koito" }, { name: "description", content: "Koito" }];
|
||||||
{ title: "Koito" },
|
|
||||||
{ name: "description", content: "Koito" },
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [period, setPeriod] = useState('week')
|
const [period, setPeriod] = useState("week");
|
||||||
|
|
||||||
const { homeItems } = useAppContext();
|
const { homeItems } = useAppContext();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="flex flex-grow justify-center pb-4">
|
<main className="flex flex-grow justify-center pb-4 w-full bg-linear-to-b to-(--color-bg) from-(--color-bg-secondary) to-60%">
|
||||||
<div className="flex-1 flex flex-col items-center gap-16 min-h-0 mt-20">
|
<div className="flex-1 flex flex-col items-center gap-16 min-h-0 mt-20">
|
||||||
<div className="flex flex-col md:flex-row gap-10 md:gap-20">
|
<div className="flex flex-col md:flex-row gap-10 md:gap-20">
|
||||||
<AllTimeStats />
|
<AllTimeStats />
|
||||||
|
|
@ -33,7 +30,10 @@ export default function Home() {
|
||||||
<TopArtists period={period} limit={homeItems} />
|
<TopArtists period={period} limit={homeItems} />
|
||||||
<TopAlbums period={period} limit={homeItems} />
|
<TopAlbums period={period} limit={homeItems} />
|
||||||
<TopTracks period={period} limit={homeItems} />
|
<TopTracks period={period} limit={homeItems} />
|
||||||
<LastPlays showNowPlaying={true} limit={Math.floor(homeItems * 2.7)} />
|
<LastPlays
|
||||||
|
showNowPlaying={true}
|
||||||
|
limit={Math.floor(homeItems * 2.7)}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue