-
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.
Merge pull request #174 from albugowy15/preview-dev
Preview dev
- Loading branch information
Showing
14 changed files
with
662 additions
and
374 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | ||
<url><loc>https://www.bughowi.com</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/about</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/build-react-form-with-react-hook-form-and-yup</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/create-blog-with-mdx-contentlayer</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/nextjs-key-features</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/simple-toc-in-mdx</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/typescript-fundamentals</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/usecontext-and-redux</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/bughowi-com</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/jamjiwa</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/jelata</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/netflix-clone</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/nextjs-blog</loc><lastmod>2023-01-19T18:02:39.511Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/about</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/build-react-form-with-react-hook-form-and-yup</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/create-blog-with-mdx-contentlayer</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/nextjs-key-features</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/simple-toc-in-mdx</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/typescript-fundamentals</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/blog/usecontext-and-redux</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/bughowi-com</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/jamjiwa</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/jelata</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/netflix-clone</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://www.bughowi.com/projects/nextjs-blog</loc><lastmod>2023-01-21T13:02:41.508Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
</urlset> |
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 |
---|---|---|
|
@@ -3,47 +3,65 @@ import { useSubscribeToNewsletter } from "@utils/form"; | |
import SocialMedia from "./SocialMedia"; | ||
|
||
const Subscribe = () => { | ||
const { form, subscribe, inputEl } = useSubscribeToNewsletter(); | ||
const { form, subscribe, inputEl } = useSubscribeToNewsletter(); | ||
|
||
return ( | ||
<footer className='mx-auto p-5 w-full'> | ||
<div className='bg-darkSecondary w-full max-w-xl rounded border border-gray-700 p-5 mx-auto'> | ||
<p className='font-bold text-lg'>Subscribe to the newsletter</p> | ||
return ( | ||
<footer className="mx-auto p-5 w-full"> | ||
<div className="bg-darkSecondary w-full max-w-xl rounded border border-gray-700 p-5 mx-auto"> | ||
<p className="font-bold text-lg">Subscribe to the newsletter</p> | ||
|
||
<p className='py-1'>Get emails from me about web development, android, tech, and early access to new articles.</p> | ||
<form onSubmit={subscribe} className='w-full mx-auto mt-1' method='post' target='_blank'> | ||
<div className='flex flex-wrap w-full items-center justify-center gap-2'> | ||
<input | ||
type='email' | ||
ref={inputEl} | ||
id='email' | ||
className='flex-auto bg-darkPrimary border border-darkSecondary text-slate-400 text-sm rounded focus:ring-blue-500 focus:border-blue-500 block p-2' | ||
placeholder='[email protected]' | ||
required | ||
/> | ||
<button type='submit' className='flex-1 w-28 p-1.5 text-center text-slate-200 bg-blueAccent rounded font-bold hover:bg-blue-500 transition-colors'> | ||
{form.state === Form.Loading ? <span>Loading...</span> : "Subscribe"} | ||
</button> | ||
</div> | ||
<p className="py-1"> | ||
Get emails from me about web development, programming, tech, and early | ||
access to new articles. | ||
</p> | ||
<form | ||
onSubmit={subscribe} | ||
className="w-full mx-auto mt-1" | ||
method="post" | ||
target="_blank" | ||
> | ||
<div className="flex flex-wrap w-full items-center justify-center gap-2"> | ||
<input | ||
type="email" | ||
ref={inputEl} | ||
id="email" | ||
className="flex-auto bg-darkPrimary border border-darkSecondary text-slate-400 text-sm rounded focus:ring-blue-500 focus:border-blue-500 block p-2" | ||
placeholder="[email protected]" | ||
required | ||
/> | ||
<button | ||
type="submit" | ||
className="flex-1 w-28 p-1.5 text-center text-slate-200 bg-blueAccent rounded font-bold hover:bg-blue-500 transition-colors" | ||
> | ||
{form.state === Form.Loading ? ( | ||
<span>Loading...</span> | ||
) : ( | ||
"Subscribe" | ||
)} | ||
</button> | ||
</div> | ||
|
||
{form.state === Form.Success ? ( | ||
<div className='mt-4'> | ||
<span className='font-bold text-green-600'> | ||
<span>😊</span> Thank you for subscribing my newsletters | ||
</span> | ||
</div> | ||
) : ( | ||
<span></span> | ||
)} | ||
</form> | ||
</div> | ||
<p className='text-center mt-8'>Find Me!</p> | ||
<SocialMedia /> | ||
<div> | ||
<p className='text-center text-xs mt-8 opacity-60'>© 2022 bughowi.com - Built with Next.js, Tailwind, Contentlayer, Vercel</p> | ||
</div> | ||
</footer> | ||
); | ||
{form.state === Form.Success ? ( | ||
<div className="mt-4"> | ||
<span className="font-bold text-green-600"> | ||
<span>😊</span> Thank you for subscribing my newsletters | ||
</span> | ||
</div> | ||
) : ( | ||
<span></span> | ||
)} | ||
</form> | ||
</div> | ||
<p className="text-center mt-8">Find Me!</p> | ||
<SocialMedia /> | ||
<div> | ||
<p className="text-center text-xs mt-8 opacity-60"> | ||
© 2022 bughowi.com - Built with Next.js, Tailwind, Contentlayer, | ||
Vercel | ||
</p> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Subscribe; |
Oops, something went wrong.
8981120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bughowi-com – ./
www.bughowi.com
bughowi-com-albugowy15.vercel.app
bughowi-com-git-main-albugowy15.vercel.app
bughowi.com