Skip to content

Commit

Permalink
Quick Bug Fixes and Google Analytics Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephDoUrden committed Sep 18, 2023
1 parent a45a5dd commit d6c30ee
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
![screenshot](image.png)

## Tech Stack

- NextJS
- Tailwind CSS

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/AboutSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const AboutSection = () => {
/>
<div className="mt-4 md:mt-0 text-left flex flex-col h-full">
<h2 className="text-4xl font-bold text-white mb-4">About Me</h2>
<p className="text-base text-justify lg:text-lg">
<p className="text-base md:text-justify text-start lg:text-lg">
Yusufhan Saçak, a distinguished Full Stack Developer from Istanbul,
Turkey, stands out with a strong academic and professional
background. He&apos;s the founder and former president of
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "next/link";

const Footer = () => {
return (
<footer className="footer border border-t-[#33353F] border-l-transparent border-r-transparent text-white">
<footer className="footer border border-t-[#33353F] border-b-[#33353F] border-l-transparent border-r-transparent text-white">
<div className="flex p-12 justify-between">
<Link href={"/"}>
<span>yusufhan.dev</span>
Expand Down
27 changes: 27 additions & 0 deletions src/app/components/GoogleAnalytics.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from "react";

const GoogleAnalytics = () => {
const _trackId = process.env.TRACK_ID;

return (
<head>
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${_trackId}`}
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${_trackId}');
`,
}}
/>
</head>
);
};

export default GoogleAnalytics;
2 changes: 2 additions & 0 deletions src/app/layout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "./globals.css";
import { Inter } from "next/font/google";
import GoogleAnalytics from "./components/GoogleAnalytics";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -11,6 +12,7 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<GoogleAnalytics />
<body className={inter.className}>{children}</body>
</html>
);
Expand Down

0 comments on commit d6c30ee

Please sign in to comment.