-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change daily stars to daily apps
- Loading branch information
Showing
10 changed files
with
167 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import Image from "next/image" | ||
import Link from "next/link" | ||
|
||
import { getTopApps } from "@/app/api/analystics/topapps/getAppStats" | ||
|
||
import { Button } from "./ui/button" | ||
import { Card, CardContent, CardHeader, CardTitle } from "./ui/card" | ||
|
||
export default async function DailyApps() { | ||
const dailyApps = await (await getTopApps("ALL")).splice(0, 4) | ||
|
||
return ( | ||
<Card> | ||
<CardHeader> | ||
<CardTitle className="flex items-center justify-between gap-2"> | ||
<div>Daily Apps</div> | ||
<Link href="/apps" passHref> | ||
<Button className="font-semibold" variant={"link"}> | ||
VIEW ALL | ||
</Button> | ||
</Link> | ||
</CardTitle> | ||
</CardHeader> | ||
<div className="w-full whitespace-nowrap"> | ||
<CardContent className="grid grid-cols-2 gap-7"> | ||
{dailyApps.map((app) => ( | ||
<Card key={app.name}> | ||
<CardContent className="flex items-center p-4 sm:flex-row"> | ||
<Image | ||
alt="Orb logo" | ||
className="h-15 w-15 aspect-[60/60] rounded-md object-cover" | ||
height="60" | ||
width="60" | ||
src={app.icon || "/images/default-profile.png"} | ||
/> | ||
<div className="ml-4 mr-8 flex flex-grow flex-col sm:gap-0"> | ||
<span className="text-lg font-bold">{app.name}</span> | ||
<span | ||
className="text-sm" | ||
style={{ | ||
whiteSpace: "pre-line", | ||
}} | ||
> | ||
{app.description} | ||
</span> | ||
</div> | ||
<Link | ||
href={app.url || "#"} | ||
passHref | ||
className="flex flex-grow justify-end" | ||
target="_blank" | ||
> | ||
<Button className="hidden md:inline-block">VISIT</Button> | ||
</Link> | ||
</CardContent> | ||
</Card> | ||
))} | ||
</CardContent> | ||
</div> | ||
</Card> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
export const recommendApps = [ | ||
{ | ||
name: "Orb", | ||
description: "Mobile experience with a focus on creators and communities ", | ||
icon: "/apps/orb.png", | ||
url: "https://orb.ac", | ||
}, | ||
{ | ||
name: "Buttrfly", | ||
description: "Web3 Social Explorer", | ||
icon: "/apps/buttrfly.png", | ||
url: "https://buttrfly.app/", | ||
}, | ||
{ | ||
name: "T2", | ||
description: "Where writers find their niche", | ||
icon: "/apps/t2.png", | ||
url: "https://t2.world/", | ||
}, | ||
{ | ||
name: "Hey", | ||
description: "Open source platform for desktop", | ||
icon: "/apps/hey.png", | ||
url: "https://hey.xyz/", | ||
}, | ||
{ | ||
name: "Tape", | ||
description: "Open-source video platform for desktop", | ||
icon: "/apps/tape.png", | ||
url: "https://tape.xyz", | ||
}, | ||
{ | ||
name: "Dumpling", | ||
description: "Streaming and steaming the best content from Lens", | ||
icon: "/apps/dumpling.png", | ||
url: "https://www.dumpling.lol/", | ||
}, | ||
] | ||
|
||
export const apps = [ | ||
...recommendApps, | ||
{ | ||
name: "Phaver", | ||
description: "Social Without Silos", | ||
icon: "/apps/phaver.svg", | ||
url: "https://phaver.com/", | ||
}, | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.