Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed Dec 14, 2024
1 parent 62ae709 commit 3b43c7d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 5 deletions.
22 changes: 22 additions & 0 deletions src/app/components/Ad.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Script from "next/script";
import React from "react";

function Autotag() {
return (
<div>
<Script
id="autotag-script"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
aclib.runAutoTag({
zoneId: 'r9nifmgk3h',
});
`,
}}
/>
</div>
);
}

export default Autotag;
9 changes: 4 additions & 5 deletions src/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import localFont from "next/font/local";
import Script from "next/script";
import "./globals.css";
import Head from "next/head";
import Header from "./components/Header";
import Footer from "./components/Footer";
import AdSense from "./components/AdSense";
Expand All @@ -26,12 +27,10 @@ export default function RootLayout({ children }) {
<html lang="en" data-theme="night">
<head>
<Script
id="aclib"
type="text/javascript"
src="//rethinkexercisesupplement.com/c2/55/92/c2559216e4f57bbe5ebe8069840e93f6.js"
></Script>
<Script
type="text/javascript"
src="//rethinkexercisesupplement.com/12/8a/b1/128ab153ef23b41d044abb7da2bea9cf.js"
strategy="beforeInteractive"
src="//acscdn.com/script/aclib.js"
></Script>
</head>
<body
Expand Down
2 changes: 2 additions & 0 deletions src/app/page.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import Image from "next/image";
import Script from "next/script";
import React from "react";
import Autotag from "./components/Ad";

export default function Home() {
return (
<div className="min-h-screen flex flex-col justify-center items-center p-5 bg-base-200">
<header className="text-center mb-10">
<div className="flex justify-center items-center mb-4">
<Autotag />
<Image
src="/assets/parcoil2.png"
alt="Parcoil Logo"
Expand Down
2 changes: 2 additions & 0 deletions src/app/projects/page.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import Link from "next/link";
import { FaGithub } from "react-icons/fa";
import Autotag from "../components/Ad";

function Page() {
const projects = [
Expand Down Expand Up @@ -32,6 +33,7 @@ function Page() {

return (
<div className="min-h-[100dvh] bg-base-200 p-5 flex flex-col justify-center items-center">
<Autotag />
<h1 className="text-4xl font-bold text-primary mb-10">Projects</h1>
<div className="grid gap-6 w-full max-w-4xl">
{projects.map((project, index) => (
Expand Down
2 changes: 2 additions & 0 deletions src/app/sparkle/page.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Link from "next/link";
import React from "react";
import Autotag from "../components/Ad";

function Page() {
const features = [
Expand All @@ -17,6 +18,7 @@ function Page() {

return (
<>
<Autotag />
<div
role="alert"
className="alert alert-warning fixed sm:top-[100px] left-1/2 transform -translate-x-1/2 w-[90%] max-w-4xl flex items-center space-x-4 p-4 z-50"
Expand Down
2 changes: 2 additions & 0 deletions src/app/tools/password/page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client";
import Autotag from "@/app/components/Ad";
import React, { useState } from "react";
export default function PasswordGenerator() {
const [password, setPassword] = useState("");
Expand Down Expand Up @@ -30,6 +31,7 @@ export default function PasswordGenerator() {

return (
<div className="flex flex-col items-center py-6 px-4 bg-base-200 rounded-lg shadow-lg max-w-lg mx-auto mt-10">
<Autotag />
<h1 className="text-3xl font-semibold mb-6 text-primary">
Password Generator
</h1>
Expand Down

0 comments on commit 3b43c7d

Please sign in to comment.