Skip to content

Commit

Permalink
style(frontend): minor typo [2024-11-17]
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Nov 17, 2024
1 parent 278b0c5 commit 6567c0c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions gridwalk-ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Input } from "@/components/ui/input";
import React, { useRef, useState } from "react";
import GridBackground from "./login/components/gridBackground";
import { useRouter } from "next/navigation";
import { saveEmail } from './actions';
import { saveEmail } from "./actions";

export default function Home() {
const router = useRouter();
Expand All @@ -28,8 +28,9 @@ export default function Home() {
if (element) {
const elementRect = element.getBoundingClientRect();
const absoluteElementTop = elementRect.top + window.pageYOffset;
const middle = absoluteElementTop - (window.innerHeight / 2) + (elementRect.height / 2);
window.scrollTo({ top: middle, behavior: 'smooth' });
const middle =
absoluteElementTop - window.innerHeight / 2 + elementRect.height / 2;
window.scrollTo({ top: middle, behavior: "smooth" });
}
};

Expand All @@ -50,7 +51,7 @@ export default function Home() {
}
} catch (err) {
setError("An error occurred. Please try again.");
console.error('Error in handleSubmit:', err);
console.error("Error in handleSubmit:", err);
}
};

Expand Down Expand Up @@ -98,7 +99,7 @@ export default function Home() {
</div>

<h1 className="text-5xl font-bold tracking-tight text-gray-100 sm:text-7xl mb-6">
Make Your Maps
Make Better Maps
<span className="block bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent mt-2">
Tell Better Stories
</span>
Expand Down Expand Up @@ -161,10 +162,6 @@ export default function Home() {
</p>
</div>
</div>




</div>
</div>
</header>
Expand Down

0 comments on commit 6567c0c

Please sign in to comment.