-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from howznguyen/develop
Develop
- Loading branch information
Showing
43 changed files
with
947 additions
and
1,440 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** @type {import('next-sitemap').IConfig} */ | ||
module.exports = { | ||
siteUrl: 'https://howz.dev', | ||
generateRobotsTxt: true, | ||
changefreq: 'daily', | ||
priority: 0.7, | ||
sitemapSize: 5000, | ||
exclude: ['/sitemap-howz.xml'], | ||
robotsTxtOptions: { | ||
policies : [ | ||
{ | ||
userAgent: '*', | ||
allow: '/', | ||
disallow: [ | ||
'/post/[slug]', | ||
'/post/', | ||
'/tag/[tag]' | ||
] | ||
} | ||
|
||
], | ||
additionalSitemaps: [ | ||
'https://howz.dev/sitemap-howz.xml', | ||
], | ||
}, | ||
} |
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
Binary file not shown.
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.
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
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 |
---|---|---|
@@ -1,38 +1,21 @@ | ||
import { Route } from "@/lib"; | ||
import React from "react"; | ||
import { Route } from '@/lib'; | ||
import Link from 'next/link' | ||
import React from 'react' | ||
|
||
interface TagProps { | ||
name: string; | ||
color?: string; | ||
name: string; | ||
} | ||
|
||
const Tag = ({ name, color }: TagProps) => { | ||
let colors = { | ||
"light-gray": "bg-gray-700 dark:bg-gray-700", | ||
gray: "bg-gray-500 dark:bg-gray-200", | ||
brown: "bg-brown-500 dark:bg-brown-200", | ||
orange: "bg-orange-500 dark:bg-orange-200", | ||
yellow: "bg-yellow-500 dark:bg-yellow-200", | ||
green: "bg-green-500 dark:bg-green-200", | ||
blue: "bg-blue-500 dark:bg-blue-200", | ||
purple: "bg-purple-500 dark:bg-purple-200", | ||
pink: "bg-pink-500 dark:bg-pink-200", | ||
red: "bg-red-500 dark:bg-red-200", | ||
default: "bg-gray-700 dark:bg-gray-200", | ||
}; | ||
|
||
let index = color ?? ""; | ||
|
||
let _color = colors[index] ?? colors["default"]; | ||
|
||
const Tag = ({name} : TagProps) => { | ||
return ( | ||
<a | ||
className={`inline-block px-2 py-1 mr-2 text-base font-semibold rounded-full text-white dark:text-black ${_color}`} | ||
href={Route.tag(name)} | ||
<Link | ||
href={Route.tag.get(name)} | ||
className="bg-opacity-80 dark:!bg-opacity-60 inline-block rounded-md px-1.5 py-0.5 font-medium transition-colors bg-gray-100 text-gray-700 hover:text-black disabled:text-gray-300 dark:bg-gray-700 dark:text-gray-200 dark:hover:text-white dark:disabled:bg-gray-600 focus:outline-none mr-2" | ||
tabIndex={-1} | ||
> | ||
{name} | ||
</a> | ||
); | ||
}; | ||
{name} | ||
</Link> | ||
) | ||
} | ||
|
||
export default Tag; | ||
export default Tag |
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 |
---|---|---|
@@ -1,54 +1,80 @@ | ||
import React from 'react' | ||
import { Link } from '../atoms'; | ||
import { HiOutlineNewspaper } from 'react-icons/hi'; | ||
import { FaFacebook, FaGithub} from 'react-icons/fa'; | ||
import { AiOutlineArrowDown } from 'react-icons/ai'; | ||
import Image from 'next/image'; | ||
import React from "react"; | ||
import { Link } from "../atoms"; | ||
import { HiOutlineNewspaper } from "react-icons/hi"; | ||
import { FaFacebook, FaGithub } from "react-icons/fa"; | ||
import { AiOutlineArrowDown } from "react-icons/ai"; | ||
import Image from "next/image"; | ||
|
||
interface IntroCard { | ||
className?: string; | ||
className?: string; | ||
} | ||
|
||
const IntroCard = () => { | ||
return ( | ||
<div data-fade="0" className="relative min-h-screen md:py-24 text-center lg:text-left text-black dark:text-white"> | ||
<div className="grid lg:grid-cols-2 pt-10 flex items-center"> | ||
<div className="block lg:hidden flex justify-center"> | ||
<Image src="/assets/images/orion-nebula.jpg" width={500} height={500} className="introduce-img md:w-[500px] shadow-lg fancy-border-radius rotate-lg-6" alt="" /> | ||
</div> | ||
<div className="mb-0"> | ||
<div className="relative block rounded-lg shadow-lg px-6 py-12 -mt-20 md:px-12 lg:-mr-14 bg-transparen" style={{backdropFilter: 'blur(30px)', zIndex: 1}}> | ||
<h2 className="text-xl md:text-3xl font-bold mb-4 display-5"> | ||
{"Hi there, I'm Howz Nguyen"} | ||
</h2> | ||
<p className="mb-5"> | ||
{"I'm a Fullstack Developer from Vietnamese. This website is developed for the purpose of sharing my personal knowledge. Hope everyone enjoys it."} | ||
</p> | ||
<div className="mt-4 flex flex-wrap gap-4 gap-y-2 md:mt-8"> | ||
<Link href="https://github.com/howznguyen/my-resume/blob/main/pdf/cv_en_vi_howznguyen.pdf" target="_blank" className="flex items-center"> | ||
<HiOutlineNewspaper className="mr-1" /> | ||
Resume | ||
</Link> | ||
<Link href="https://facebook.com/howznguyen/" target="_blank" className="flex items-center"> | ||
<FaFacebook className="mr-1" /> | ||
howznguyen | ||
</Link> | ||
<Link href="https://github.com/howznguyen/" target="_blank" className="flex items-center"> | ||
<FaGithub className="mr-1" /> | ||
howznguyen | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="hidden lg:block"> | ||
<Image src="/assets/images/orion-nebula.jpg" width={500} height={500} className="w-full shadow-lg fancy-border-radius rotate-lg-6" alt="" /> | ||
<div | ||
data-fade="0" | ||
className="relative min-h-screen md:py-24 text-center lg:text-left text-black dark:text-white" | ||
> | ||
<div className="grid lg:grid-cols-2 pt-10 flex items-center"> | ||
<div className="mb-0"> | ||
<div | ||
className="relative block rounded-lg shadow-lg px-6 py-12 md:px-12 lg:-mr-14 bg-transparent" | ||
style={{ backdropFilter: "blur(30px)", zIndex: 1 }} | ||
> | ||
<h2 className="text-xl md:text-3xl font-bold mb-4 display-5"> | ||
{"Xin chào, Mình là Howz Nguyễn"} | ||
</h2> | ||
<p className="mb-5"> | ||
{ | ||
"Mình hiện tại đang là một Lập Trình Viên Fullstack. Đây là một website mình tạo ra với mong muốn được chia sẻ kiến thức của mình đến với mọi người. Cảm ơn mọi người đã ghé qua. ❤️" | ||
} | ||
</p> | ||
<div className="mt-4 flex flex-wrap gap-4 gap-y-2 md:mt-8"> | ||
<Link | ||
href="https://github.com/howznguyen/my-resume/blob/main/pdf/cv_en_vi_howznguyen.pdf" | ||
target="_blank" | ||
className="flex items-center" | ||
> | ||
<HiOutlineNewspaper className="mr-1" /> | ||
Resume | ||
</Link> | ||
<Link | ||
href="https://facebook.com/howznguyen/" | ||
target="_blank" | ||
className="flex items-center" | ||
> | ||
<FaFacebook className="mr-1" /> | ||
howznguyen | ||
</Link> | ||
<Link | ||
href="https://github.com/howznguyen/" | ||
target="_blank" | ||
className="flex items-center" | ||
> | ||
<FaGithub className="mr-1" /> | ||
howznguyen | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
<a href="#featured-post" className="absolute bottom-20 left-1/2 -translate-x-1/2 cursor-pointer rounded-md transition-colors hover:text-primary-300 focus-visible:text-primary-300"> | ||
<AiOutlineArrowDown className="h-8 w-8 animate-bounce md:h-10 md:w-10" /> | ||
</a> | ||
<div className="hidden lg:block"> | ||
<Image | ||
src="/assets/images/orion-nebula.jpg" | ||
width={500} | ||
height={500} | ||
className="w-full shadow-lg fancy-border-radius rotate-lg-6" | ||
alt="" | ||
/> | ||
</div> | ||
</div> | ||
<a | ||
href="#featured-post" | ||
className="absolute bottom-20 left-1/2 -translate-x-1/2 cursor-pointer rounded-md transition-colors hover:text-primary-300 focus-visible:text-primary-300" | ||
> | ||
<AiOutlineArrowDown className="h-8 w-8 animate-bounce md:h-10 md:w-10" /> | ||
</a> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default IntroCard | ||
export default IntroCard; |
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
Oops, something went wrong.