Skip to content

Commit

Permalink
Make pwa app
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsingh-007 committed Nov 9, 2024
1 parent d195b80 commit 555f6c5
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/cards_192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/cards_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
24 changes: 24 additions & 0 deletions public/manifest.webmanifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"short_name": "Cards",
"name": "Cards",
"description": "Track credit card payments",
"icons": [
{
"src": "/cards_192.png",
"type": "image/png",
"sizes": "192x192",
"purpose": "any maskable"
},
{
"src": "/cards_512.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any maskable"
}
],
"start_url": "/",
"background_color": "#FFFFFF",
"display": "standalone",
"scope": "/",
"orientation": "portrait"
}
11 changes: 9 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@ const poppins = Poppins({
export const metadata: Metadata = {
title: 'Cards',
description: 'Track credit card payments',
applicationName: 'Cards',
manifest: '/manifest.webmanifest.json',
robots: {
index: false,
follow: false,
},
icons: {
icon: '/favicon.ico',
apple: '/favicon.ico',
icon: '/cards_192.png',
apple: '/apple-touch-icon.png',
},
openGraph: {
type: 'website',
locale: 'en',
title: 'Cards',
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/common/card-name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface Props {
const CardName = ({ cardBrandId, cardName, className }: Props) => (
<div className={clsx('flex items-center gap-2', className)}>
<Avatar className="h-5 w-5">
<AvatarImage src={`/brands/${cardBrandId}.png`} />
<AvatarImage src={`/brands/${cardBrandId}.png`} className="bg-white" />
</Avatar>
<span className="accent">{cardName}</span>
</div>
Expand Down

0 comments on commit 555f6c5

Please sign in to comment.