feat: update default column informations
BIN
apps/desktop2/public/antenas.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
apps/desktop2/public/antenas@2x.png
Normal file
|
After Width: | Height: | Size: 245 KiB |
BIN
apps/desktop2/public/foryou.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
apps/desktop2/public/foryou@2x.png
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
apps/desktop2/public/global.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
apps/desktop2/public/global@2x.png
Normal file
|
After Width: | Height: | Size: 220 KiB |
BIN
apps/desktop2/public/group.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
apps/desktop2/public/group@2x.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
apps/desktop2/public/trending.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
apps/desktop2/public/trending@2x.png
Normal file
|
After Width: | Height: | Size: 211 KiB |
BIN
apps/desktop2/public/waifu.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
apps/desktop2/public/waifu@2x.png
Normal file
|
After Width: | Height: | Size: 257 KiB |
@@ -1,6 +1,6 @@
|
||||
import { Col } from "@/components/col";
|
||||
import { Toolbar } from "@/components/toolbar";
|
||||
import { LoaderIcon } from "@lume/icons";
|
||||
import { LoaderIcon, PlusIcon } from "@lume/icons";
|
||||
import { EventColumns, LumeColumn } from "@lume/types";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { UnlistenFn } from "@tauri-apps/api/event";
|
||||
@@ -13,9 +13,8 @@ export const Route = createFileRoute("/$account/home")({
|
||||
pendingComponent: Pending,
|
||||
});
|
||||
|
||||
const COLS: LumeColumn[] = [
|
||||
const DEFAULT_COLUMNS: LumeColumn[] = [
|
||||
{ id: 1, name: "Newsfeed", content: "/newsfeed" },
|
||||
{ id: 9999, name: "Lume Store", content: "/store/official" },
|
||||
];
|
||||
|
||||
function Screen() {
|
||||
@@ -23,7 +22,7 @@ function Screen() {
|
||||
const vlistRef = useRef<VListHandle>(null);
|
||||
const unlisten = useRef<UnlistenFn>(null);
|
||||
|
||||
const [columns, setColumns] = useState(COLS);
|
||||
const [columns, setColumns] = useState(DEFAULT_COLUMNS);
|
||||
const [selectedIndex, setSelectedIndex] = useState(-1);
|
||||
const [isScroll, setIsScroll] = useState(false);
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "For you",
|
||||
content: "/foryou",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/foryou.png",
|
||||
coverRetina: "/foryou@2x.png",
|
||||
author: "Lume",
|
||||
description: "Keep up to date with content based on your interests.",
|
||||
},
|
||||
@@ -20,7 +21,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "Group Feeds",
|
||||
content: "/group",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/group.png",
|
||||
coverRetina: "/group@2x.png",
|
||||
author: "Lume",
|
||||
description: "Collective of people you're interested in.",
|
||||
},
|
||||
@@ -29,7 +31,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "Antenas",
|
||||
content: "/antenas",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/antenas.png",
|
||||
coverRetina: "/antenas@2x.png",
|
||||
author: "Lume",
|
||||
description: "Keep track to specific content.",
|
||||
},
|
||||
@@ -38,7 +41,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "Trending",
|
||||
content: "/trending",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/trending.png",
|
||||
coverRetina: "/trending@2x.png",
|
||||
author: "Lume",
|
||||
description: "What is trending on Nostr?.",
|
||||
},
|
||||
@@ -47,7 +51,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "Global",
|
||||
content: "/global",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/global.png",
|
||||
coverRetina: "/global@2x.png",
|
||||
author: "Lume",
|
||||
description: "All events from connected relays.",
|
||||
},
|
||||
@@ -56,7 +61,8 @@ export const Route = createFileRoute("/store/official")({
|
||||
name: "Waifu",
|
||||
content: "/waifu",
|
||||
logo: "",
|
||||
cover: "",
|
||||
cover: "/waifu.png",
|
||||
coverRetina: "/waifu@2x.png",
|
||||
author: "Lume",
|
||||
description: "Show a random waifu image to boost your morale.",
|
||||
},
|
||||
@@ -80,11 +86,21 @@ function Screen() {
|
||||
key={column.id}
|
||||
className="relative h-[200px] w-full overflow-hidden rounded-xl bg-gradient-to-tr from-orange-100 to-blue-200 px-3 pt-3"
|
||||
>
|
||||
<div className="absolute bottom-0 left-0 h-16 w-full bg-black/40 px-3 backdrop-blur-xl">
|
||||
{column.cover ? (
|
||||
<img
|
||||
src={column.cover}
|
||||
srcSet={column.coverRetina}
|
||||
alt={column.name}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
className="absolute left-0 top-0 z-10 h-full w-full object-cover"
|
||||
/>
|
||||
) : null}
|
||||
<div className="absolute bottom-0 left-0 z-20 h-16 w-full bg-black/40 px-3 backdrop-blur-xl">
|
||||
<div className="flex h-full items-center justify-between">
|
||||
<div>
|
||||
<h1 className="font-semibold text-white">{column.name}</h1>
|
||||
<p className="max-w-[18rem] truncate text-sm text-white/80">
|
||||
<p className="max-w-[24rem] truncate text-sm text-white/80">
|
||||
{column.description}
|
||||
</p>
|
||||
</div>
|
||||
|
||||