-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/whatsapp and readjust structure folder (#11)
* refactor: remove unused components * refactor: remove favicon ico useless * refactor: change go public robot txt false setting * refactor: update favicon ico * feat: default seo configuration * feat: whatsapp chat at footer
- Loading branch information
Showing
31 changed files
with
165 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { DefaultSeoProps } from "next-seo"; | ||
|
||
const config: DefaultSeoProps = { | ||
description: 'Software Developer and Frontend Enthusiast that deliver user-centric interfaces for web and mobile applications that exceed client expectations', | ||
defaultTitle: 'Roby Setiawan (Software Developer and Frontend Enthusiast)', | ||
canonical: 'https://robysetiawan.vercel.app', | ||
additionalLinkTags: [ | ||
{ | ||
rel: 'icon', | ||
href: 'https://robysetiawan.vercel.app/favicon.ico' | ||
} | ||
], | ||
openGraph: { | ||
type: 'website', | ||
locale: 'en_US', | ||
url: 'https://robysetiawan.vercel.app', | ||
title: 'Roby Setiawan (Software Developer and Frontend Enthusiast)', | ||
siteName: 'Roby Setiawan (Software Developer and Frontend Enthusiast)', | ||
description: 'Software Developer and Frontend Enthusiast that deliver user-centric interfaces for web and mobile applications that exceed client expectations', | ||
images: [ | ||
{ | ||
url: 'https://robysetiawan.vercel.app/static/home-image-preview.jpg', | ||
alt: 'Islem Maboud Portfolio', | ||
type: 'image/jpg', | ||
secureUrl: 'https://robysetiawan.vercel.app/static/home-image-preview.jpg' | ||
} | ||
] | ||
} | ||
} | ||
|
||
export default config; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# As soon as you are ready to go public, change the `Disallow: /` to `Allow: /` | ||
User-agent: * | ||
Disallow: / | ||
Allow: / |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,60 +1,82 @@ | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
import { FaRegCopyright } from 'react-icons/fa6'; | ||
import { FaRegCopyright, FaWhatsapp } from 'react-icons/fa6'; | ||
|
||
export default function FooterSection() { | ||
const handleClick = async () => { | ||
// Check if WhatApp installed, if yes open whatsapp else open whatsapp web | ||
const teks = | ||
'&text=Halo+Roby%2C%0ASaya+ingin+diskusi+untuk+tahu+lebih+lanjut+tentang+tentang+anda&type=phone_number&app_absent=0'; | ||
if (navigator.userAgent.includes('WhatsApp')) { | ||
// WhatsApp is installed | ||
window.open(`whatsapp://send?phone=6281273067776${teks}`); | ||
} else { | ||
// WhatsApp is not installed, open WhatsApp Web | ||
window.open(`https://web.whatsapp.com/send?phone=6281273067776${teks}`, '_blank'); | ||
} | ||
}; | ||
|
||
return ( | ||
<footer className="border-color flex w-full flex-col items-center justify-between border-t py-10 text-sm sm:flex-row dark:text-gray-100"> | ||
<div className="mb-6 flex gap-3 sm:mb-0"> | ||
<Link | ||
href="/" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/me | ||
</Link> | ||
<Link | ||
href="/about" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/about | ||
</Link> | ||
<Link | ||
href="/projects" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/projects | ||
</Link> | ||
<Link | ||
href="/stories" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/stories | ||
</Link> | ||
<Link | ||
href="/blog" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/blog | ||
</Link> | ||
<Link | ||
href="/uses" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/uses | ||
</Link> | ||
</div> | ||
<div className="flex items-center space-x-1"> | ||
<FaRegCopyright /> | ||
<span className="text-gray-600 dark:text-gray-300"> | ||
{new Date().getFullYear()} by Roby Setiawan | ||
</span> | ||
<> | ||
<div | ||
className="fixed bottom-10 right-4 w-min cursor-pointer | ||
rounded-full bg-green-600 p-2 md:right-8" | ||
onClick={handleClick} | ||
> | ||
<FaWhatsapp color="white" className="h-7 w-7 md:h-10 md:w-10" /> | ||
</div> | ||
</footer> | ||
<footer className="border-color flex w-full flex-col items-center justify-between border-t py-10 text-sm sm:flex-row dark:text-gray-100"> | ||
<div className="mb-6 flex gap-3 sm:mb-0"> | ||
<Link | ||
href="/" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/me | ||
</Link> | ||
<Link | ||
href="/about" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/about | ||
</Link> | ||
<Link | ||
href="/projects" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/projects | ||
</Link> | ||
<Link | ||
href="/stories" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/stories | ||
</Link> | ||
<Link | ||
href="/blog" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/blog | ||
</Link> | ||
<Link | ||
href="/uses" | ||
className="no-underline underline-offset-2 transition-colors hover:text-gray-800 hover:underline dark:hover:text-gray-100" | ||
rel="noopener noreferrer" | ||
> | ||
/uses | ||
</Link> | ||
</div> | ||
<div className="flex items-center space-x-1"> | ||
<FaRegCopyright /> | ||
<span className="text-gray-600 dark:text-gray-300"> | ||
{new Date().getFullYear()} by Roby Setiawan | ||
</span> | ||
</div> | ||
</footer> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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