Skip to content

Commit

Permalink
Revert "dynamic metatag added."
Browse files Browse the repository at this point in the history
This reverts commit 401426d.
  • Loading branch information
karabayyazilim committed Jul 1, 2024
1 parent 401426d commit 4b2ba33
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 81 deletions.
16 changes: 2 additions & 14 deletions resources/js/Layouts/MainLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import {Head, Link} from "@inertiajs/react";
import {Link} from "@inertiajs/react";
import {Toaster} from "react-hot-toast";

const MainLayout = ({children}) => {
return (
<div>
<Head>
<meta property="og:locale" content="tr_TR"/>
<meta property="og:type" content="website"/>
<meta name="twitter:site" content="@codenteq"/>
<link rel="icon" href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-32x32.webp"
sizes="32x32"/>
<link rel="icon" href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-192x192.webp"
sizes="192x192"/>
<link rel="apple-touch-icon"
href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-180x180.webp"/>
</Head>
<Toaster/>
<header
className="fixed w-full backdrop-blur-md border-b border-zinc-100 px-4 lg:px-6 py-2.5 bg-white/70 z-10">
<header className="fixed w-full backdrop-blur-md border-b border-zinc-100 px-4 lg:px-6 py-2.5 bg-white/70 z-10">
<div className="container mx-auto flex justify-between items-center">
<Link href="/" className="text-2xl font-bold uppercase">Eventeq</Link>
</div>
Expand Down
15 changes: 1 addition & 14 deletions resources/js/Pages/EventApplicationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Step3 from "./steps/step3.jsx";
import Step4 from "./steps/step4.jsx";
import Step5 from "./steps/step5.jsx";
import {ChevronDoubleRightIcon} from "@heroicons/react/24/outline/index.js";
import {Head, useForm, usePage} from "@inertiajs/react";
import {useForm, usePage} from "@inertiajs/react";
import MainLayout from "../Layouts/MainLayout.jsx";
import toast from "react-hot-toast";
import {HeartIcon, StarIcon} from "@heroicons/react/24/outline/index.js";
Expand Down Expand Up @@ -104,19 +104,6 @@ export default function EventApplicationForm({cities, event, application = null}

return (
<MainLayout>
<Head>
<title>{event.name + " - Eventeq"}</title>
<meta name="description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:title" content={event.name}/>
<meta property="og:description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:url" content={`https://eventeq.codenteq.com/events/${event.id}`}/>
<meta property="og:site_name" content="Eventeq"/>
<meta property="og:image" content={`https://eventeq.codenteq.com/storage/${event.img}`}/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content={event.name}/>
<meta name="twitter:description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta name="twitter:image" content={`https://eventeq.codenteq.com/storage/${event.img}`}/>
</Head>
<section className="max-w-4xl mx-auto my-10 px-4">
<div className="py-10 text-center">
<h3 className="text-2xl lg:text-4xl font-bold text-zinc-900 dark:text-zinc-50">
Expand Down
15 changes: 1 addition & 14 deletions resources/js/Pages/EventApplicationSuccess.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
import MainLayout from "../Layouts/MainLayout.jsx";
import {Head, Link} from "@inertiajs/react";
import {Link} from "@inertiajs/react";
import {Button} from "@codenteq/interfeys";

export default function EventApplicationSuccess({application}) {
return (
<MainLayout>
<Head>
<title>{application.event.name + " - Eventeq"}</title>
<meta name="description" content={application.event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:title" content={application.event.name}/>
<meta property="og:description" content={application.event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:url" content={`https://eventeq.codenteq.com/events/${application.event.id}`}/>
<meta property="og:site_name" content="Eventeq"/>
<meta property="og:image" content={`https://eventeq.codenteq.com/storage/${application.event.img}`}/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content={application.event.name}/>
<meta name="twitter:description" content={application.event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta name="twitter:image" content={`https://eventeq.codenteq.com/storage/${application.event.img}`}/>
</Head>
<section className="bg-white py-8 antialiased">
<div className="mx-auto max-w-2xl px-4 2xl:px-0">
<h2 className="text-xl font-semibold text-green-500 sm:text-2xl mb-2">
Expand Down
15 changes: 1 addition & 14 deletions resources/js/Pages/EventDetail.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import MainLayout from "../Layouts/MainLayout.jsx";
import { Button } from "@codenteq/interfeys";
import {Head, Link} from "@inertiajs/react";
import { Link } from "@inertiajs/react";
import { format } from "date-fns";
import { tr } from 'date-fns/locale';

Expand All @@ -12,19 +12,6 @@ export default function EventDetail({ event }) {

return (
<MainLayout>
<Head>
<title>{event.name + " - Eventeq"}</title>
<meta name="description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:title" content={event.name}/>
<meta property="og:description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta property="og:url" content={`https://eventeq.codenteq.com/events/${event.id}`}/>
<meta property="og:site_name" content="Eventeq"/>
<meta property="og:image" content={`https://eventeq.codenteq.com/storage/${event.img}`}/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content={event.name}/>
<meta name="twitter:description" content={event.description.replace(/<\/?[^>]+(>|$)/g, "")}/>
<meta name="twitter:image" content={`https://eventeq.codenteq.com/storage/${event.img}`}/>
</Head>
<section className="text-gray-600 body-font relative">
<div className="container px-5 py-12 mx-auto">
<div className="flex flex-col md:flex-row justify-center md:space-x-12">
Expand Down
25 changes: 2 additions & 23 deletions resources/js/Pages/Welcome.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Head, Link} from "@inertiajs/react";
import {Link} from "@inertiajs/react";
import {Button} from "@codenteq/interfeys";
import MainLayout from "../Layouts/MainLayout.jsx";
import { Swiper, SwiperSlide } from 'swiper/react';
Expand All @@ -17,27 +17,6 @@ export default function Welcome({ events }) {
return (
<>
<MainLayout>
<Head>
<title>Eventeq</title>
<meta name="description" content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın."/>
<meta property="og:title" content="Eventeq"/>
<meta property="og:description"
content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın."/>
<meta property="og:url" content="https://eventeq.codenteq.com/"/>
<meta property="og:site_name" content="Eventeq"/>
<meta property="og:image"
content="https://codenteq.com/wp-content/uploads/2023/03/3d-logo-mockup-dark.webp"/>
<meta property="og:image:width" content="1080"/>
<meta property="og:image:height" content="720"/>
<meta property="og:image:type" content="image/webp"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="Eventeq"/>
<meta name="twitter:description"
content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın."/>
<meta name="twitter:image"
content="https://codenteq.com/wp-content/uploads/2023/03/3d-logo-mockup-dark.webp"/>

</Head>
<section className="container mx-auto py-10">
<Swiper
pagination={{clickable: false}}
Expand Down Expand Up @@ -66,7 +45,7 @@ export default function Welcome({ events }) {
key={event.id}
className="flex flex-col max-w-sm bg-white border border-zinc-200 rounded-lg shadow">
<Link href={`/events/${event.id}`} className="flex-shrink-0">
<img className="rounded-t-lg w-full" src={`storage/${event.img}`}
<img className="rounded-t-lg w-full" src={`storage/${event.img}`}
alt={event.name}/>
</Link>
<div className="flex flex-col flex-grow p-5">
Expand Down
2 changes: 1 addition & 1 deletion resources/js/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ posthog.init('phc_z4pthNYl2vICRVSlgdOKUfmCHCebsGI2bJDMFsnKvXc',
)

createInertiaApp({
//title: title => 'Eventeq',
title: title => 'Eventeq',
resolve: name => {
const pages = import.meta.glob("./Pages/**/*.jsx", { eager: true });
return pages[`./Pages/${name}.jsx`]
Expand Down
20 changes: 19 additions & 1 deletion resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<meta name="description" content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın." />
<meta property="og:locale" content="tr_TR" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Eventeq" />
<meta property="og:description" content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın." />
<meta property="og:url" content="https://eventeq.codenteq.com/" />
<meta property="og:site_name" content="Eventeq" />
<meta property="og:image" content="https://codenteq.com/wp-content/uploads/2023/03/3d-logo-mockup-dark.webp" />
<meta property="og:image:width" content="1080" />
<meta property="og:image:height" content="720" />
<meta property="og:image:type" content="image/webp" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Eventeq" />
<meta name="twitter:description" content="Etkinliklerinizi yönetin, başvuru yapın veya genel bilgi alın." />
<meta name="twitter:image" content="https://codenteq.com/wp-content/uploads/2023/03/3d-logo-mockup-dark.webp" />
<meta name="twitter:site" content="@codenteq" />
<link rel="icon" href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-32x32.webp" sizes="32x32" />
<link rel="icon" href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-192x192.webp" sizes="192x192" />
<link rel="apple-touch-icon" href="https://codenteq.com/wp-content/uploads/2022/11/cropped-favicon-180x180.webp" />

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4QYYJCTZZZ"></script>
Expand Down

0 comments on commit 4b2ba33

Please sign in to comment.