Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ezralazuardy committed Dec 3, 2024
1 parent b325ab3 commit 7054c75
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 47 deletions.
Binary file added app/apple-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 app/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 45 additions & 44 deletions app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,53 @@ import { GoogleAnalytics } from "@next/third-parties/google";
import "./globals.css";

export const metadata = {
metadataBase: new URL("https://yuniusmujianto.com"),
title: "Yunius Mujianto",
description: "The Luxurious Sense of Belonging.",
generator: "Next.js",
applicationName: "Yunius Mujianto",
referrer: "origin-when-cross-origin",
creator: "Lazuardy",
publisher: "Lazuardy",
manifest: "https://yuniusmujianto.com/manifest.json",
category:
"kebaya, bridal, fashion, designer, modern, shirt, wedding, model, outfit",
keywords: [
"kebaya",
"bridal",
"fashion",
"designer",
"modern",
"shirt",
"wedding",
"model",
"outfit",
],
authors: [{ name: "Yunius Mujianto", url: "https://yuniusmujianto.com" }],
formatDetection: {
email: false,
address: false,
telephone: false,
},
alternates: {
canonical: "/",
},
robots: {
index: true,
follow: true,
},
icons: {
shortcut: "/favicon.ico",
icon: "/apple-touch-icon.png",
apple: [
{ url: "/favicon-96x96.png", sizes: "96x96", type: "image/png" },
{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" },
],
other: {
rel: "apple-touch-icon-precomposed",
url: "/apple-touch-icon.png",
},
},
};

export const viewport = {
Expand All @@ -18,51 +63,7 @@ export default function RootLayout({ children }) {
return (
<html lang="en">
<Head>
{/* Basic Meta */}
<title>{metadata.title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={metadata.description} />
<meta name="robots" content="index, follow" />
<link
rel="icon"
type="image/png"
href="/favicon-96x96.png"
sizes="96x96"
/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<meta name="apple-mobile-web-app-title" content="Yunius" />
<link rel="manifest" href="/site.webmanifest" />

{/* Open Graph Meta */}
<meta property="og:title" content={metadata.title} />
<meta property="og:description" content={metadata.description} />
<meta
property="og:image"
content={`${process.env.NEXT_PUBLIC_APP_URL}/opengraph-image.png`}
/>
<meta property="og:image:alt" content={metadata.description} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.NEXT_PUBLIC_APP_URL} />

{/* Twitter Card Meta */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={metadata.title} />
<meta name="twitter:description" content={metadata.description} />
<meta
name="twitter:image"
content={`${process.env.NEXT_PUBLIC_APP_URL}/opengraph-image.png`}
/>
<meta name="twitter:image:alt" content={metadata.description} />
<meta name="twitter:creator" content="@yuniusmujianto" />

{/* Theme Color */}
<meta name="theme-color" content="#040404" />
</Head>
<body className={`${Inter.className} antialiased w-full max-w-screen`}>
<SmoothScrolling>{children}</SmoothScrolling>
Expand Down
25 changes: 25 additions & 0 deletions app/manifest.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
export default function manifest() {
return {
name: "Yunius Mujianto",
short_name: "Yunius",
description: "The Luxurious Sense of Belonging.",
start_url: "/",
display: "standalone",
background_color: "#040404",
theme_color: "#040404",
icons: [
{
src: "/web-app-manifest-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable",
},
{
src: "/web-app-manifest-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
};
}
8 changes: 5 additions & 3 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "Yunius Mujianto",
"short_name": "Yunius",
"description": "The Luxurious Sense of Belonging",
"start_url": "/",
"display": "standalone",
"background_color": "#040404",
"theme_color": "#040404",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
Expand All @@ -15,7 +20,4 @@
"purpose": "maskable"
}
],
"theme_color": "#040404",
"background_color": "#040404",
"display": "standalone"
}

0 comments on commit 7054c75

Please sign in to comment.