Skip to content

Commit

Permalink
Bug Fixes - v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantkageri committed Jun 7, 2022
1 parent 1c4dd9d commit 8fe1f99
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jayantkageri",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/jayantkageri/Website",
"license": "AGPL-3.0-or-later",
"author": {
Expand Down
26 changes: 14 additions & 12 deletions pages/404.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,23 @@ export default function Error() {
info.code &&
info.message && (
<>
<body className="antialiased">
<div className="relative flex items-top justify-center min-h-screen bg-gray-900 sm:items-center sm:pt-0">
<div className="max-w-xl mx-auto sm:px-6 lg:px-8">
<div className="flex items-center pt-8 sm:justify-start sm:pt-0">
<div className="px-4 text-xl text-gray-400 border-r border-gray-400 tracking-wider">
{info.code}
</div>

<div className="ml-4 text-xl text-gray-400 uppercase tracking-wider">
{info.message}
<section id={404} className="min-h-screen bg-gray-900">
<body className="antialiased">
<div className="relative flex items-top justify-center sm:items-center sm:pt-0">
<div className="max-w-xl mx-auto sm:px-6 lg:px-8">
<div className="flex items-center pt-8 sm:justify-start sm:pt-0">
<div className="px-4 text-xl text-gray-400 border-r border-gray-400 tracking-wider">
{info.code}
</div>

<div className="ml-4 text-xl text-gray-400 uppercase tracking-wider">
{info.message}
</div>
</div>
</div>
</div>
</div>
</body>
</body>
</section>
</>
)
);
Expand Down
24 changes: 12 additions & 12 deletions pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
// along with Website of jayantkageri. If not, see <https://www.gnu.org/licenses/>.

import React from "react";
import Meta from "../components/Meta";
import Navbar from "../components/Navbar";
import ReactGA from "react-ga";
import { ToastContainer, toast } from "react-toastify";
import Footer from "../components/Footer";
import { useRouter } from "next/router";
import Meta from "../components/Meta";
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import "react-toastify/dist/ReactToastify.css";
import "../styles/globals.css";

Expand Down Expand Up @@ -80,14 +80,14 @@ function App({ Component, pageProps }) {

return (
<>
<section className="bg-gray-900 min-h-screen">
{/* Meta Tags for all the pages */}
<Meta page={info.page} />
{/* Navbar */}
<Navbar />
{/* React Toastify */}
<ToastContainer />

{/* Meta Tags for all the pages */}
<Meta page={info.page} />
{/* Navbar */}
<Navbar />
{/* React Toastify */}
<ToastContainer />

<main className="bg-gray-900 min-h-screen">
{/* Cookies accepting section */}
{!info.cookies && (
<div className="flex justify-center bg-indigo-500">
Expand All @@ -110,7 +110,7 @@ function App({ Component, pageProps }) {

{/* Main content of the page */}
<Component {...pageProps} alert={alert} addEvent={addEvent} />
</section>
</main>
{/* Footer */}
<Footer />
</>
Expand Down
24 changes: 13 additions & 11 deletions pages/_error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,23 @@ export default function Error(props) {
info.code &&
info.message && (
<>
<body className="antialiased">
<div className="relative flex items-top justify-center min-h-screen bg-gray-900 sm:items-center sm:pt-0">
<div className="max-w-xl mx-auto sm:px-6 lg:px-8">
<div className="flex items-center pt-8 sm:justify-start sm:pt-0">
<div className="px-4 text-xl text-gray-400 border-r border-gray-400 tracking-wider">
{info.code}
</div>
<section id={info.code} className="min-h-screen bg-gray-900">
<body className="antialiased">
<div className="relative flex items-top justify-center min-h-screen bg-gray-900 sm:items-center sm:pt-0">
<div className="max-w-xl mx-auto sm:px-6 lg:px-8">
<div className="flex items-center pt-8 sm:justify-start sm:pt-0">
<div className="px-4 text-xl text-gray-400 border-r border-gray-400 tracking-wider">
{info.code}
</div>

<div className="ml-4 text-xl text-gray-400 uppercase tracking-wider">
{info.message}
<div className="ml-4 text-xl text-gray-400 uppercase tracking-wider">
{info.message}
</div>
</div>
</div>
</div>
</div>
</body>
</body>
</section>
</>
)
);
Expand Down
2 changes: 1 addition & 1 deletion pages/api/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ async function contact(req, res) {
}
}

export default contact
export default contact
4 changes: 2 additions & 2 deletions pages/contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function Contact(props) {
}

// Captcha Validation
if (!info.token) {
if (process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY && !info.token) {
// Sending data to Google Analytics.
props.addEvent(
"contact",
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function Contact(props) {

return (
<>
<section className="bg-gray-900 min-h-screen">
<section id="contact" className="bg-gray-900 min-h-screen">
<div className="container px-6 py-10 mx-auto">
<div className="w-full mx-auto flex justify-center">
<div>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import jayantkageri from "../assets/jayantkageri.png";
export default function Home() {
return (
<>
<section className="bg-gray-900">
<section id="home" className="bg-gray-900">
<div className="container px-6 py-10 mx-auto">
<div className="lg:flex lg:items-center mb-6">
<div className="w-full space-y-12 lg:w-1/2 ">
Expand Down
50 changes: 26 additions & 24 deletions pages/intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,34 @@ import React from "react";
export default function Video(props) {
return (
<>
<div className="container bg-gray-900 min-w-full min-h-screen">
<header className="bg-gray-900">
<div className="container px-6 py-16 mx-auto">
<div className="items-center flex justify-center">
<div className="w-full">
<video
className="w-full h-full rounded"
controls
// Disable Playback Speed Option
controlsList={"noplaybackrate"}
onPlay={() => {
// Send data to Google Analytics.
props.addEvent("video", "jayantkageri.in - video played");
}}
>
<source
src={"/assets/videos/jayantkageri.mp4"}
type="video/mp4"
alt="Video"
/>
</video>
<section id="intro" className="bg-gray-900 min-w-full min-h-screen">
<div className="container">
<header className="bg-gray-900">
<div className="container px-6 py-16 mx-auto">
<div className="items-center flex justify-center">
<div className="w-full">
<video
className="w-full h-full rounded"
controls
// Disable Playback Speed Option
controlsList={"noplaybackrate"}
onPlay={() => {
// Send data to Google Analytics.
props.addEvent("video", "jayantkageri.in - video played");
}}
>
<source
src={"/assets/videos/jayantkageri.mp4"}
type="video/mp4"
alt="Video"
/>
</video>
</div>
</div>
</div>
</div>
</header>
</div>
</header>
</div>
</section>
</>
);
}
6 changes: 3 additions & 3 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<url>
<loc>https://www.jayantkageri.in/</loc>
<lastmod>2022-05-28T15:00:00+05:30</lastmod>
<lastmod>2022-06-05T22:00:00+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>
<url>
<loc>https://www.jayantkageri.in/contact</loc>
<lastmod>2022-05-28T15:00:00+05:30</lastmod>
<lastmod>2022-06-05T22:00:00+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.80</priority>
</url>
<url>
<loc>https://www.jayantkageri.in/intro</loc>
<lastmod>2022-05-28T15:00:00+05:30</lastmod>
<lastmod>2022-06-05T22:00:00+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.80</priority>
</url>
Expand Down

0 comments on commit 8fe1f99

Please sign in to comment.