Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uj/experimentation/nextjs #114

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
bundlePagesRouterDependencies: true,
reactStrictMode: true,
images: {
remotePatterns: [
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"ionicons": "^7.3.1",
"jimp-compact": "^0.16.1-2",
"mongoose": "^8.2.1",
"next": "^14.1.0",
"next": "^15.0.1",
"next-sitemap": "^4.2.3",
"react": "^18",
"react": "^19.0.0-rc-1631855f-20241023",
"react-confetti": "^6.1.0",
"react-dom": "^18",
"react-dom": "^19.0.0-rc-1631855f-20241023",
"react-icons": "^5.3.0",
"react-router-dom": "^6.22.3",
"react-toastify": "^10.0.5",
Expand All @@ -43,6 +43,7 @@
"autoprefixer": "^10.0.1",
"husky": "^9.1.1",
"postcss": "^8",
"tailwindcss": "^3.3.0"
"tailwindcss": "^3.3.0",
"turbo": "^2.2.3"
}
}
19 changes: 11 additions & 8 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ import Footer from "@/components/Shared/Footer/Footer";
import Scroll from "@/components/Shared/Scroll";
import Head from "next/head";
import { Analytics } from "@vercel/analytics/react"
import Script from 'next/script';

function MyApp({ Component, pageProps }) {
return (
<>
<Analytics/>
<Head>
{/* Google Tag Manager */}
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}/>
<Script
id="google-tag-manager"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}
/>
{/* End Google Tag Manager */}
<title>GitHub Community SRM | Open Source | SRM Institute of Science & Technology</title>
<meta charSet="UTF-8" />
Expand Down
20 changes: 12 additions & 8 deletions pages/about.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import React from "react";
import Hero from "@/components/OurStory/Hero";
import Head from "next/head";
import Script from 'next/script';


function AboutUs() {
return (
<>
<div className="bg-bg_black text-white">
<Head>
{/* Google Tag Manager */}
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}/>
<Script
id="google-tag-manager"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}
/>
{/* End Google Tag Manager */}
<title>About Us | GitHub Community SRM</title>
<meta name="description" content="Discover GitHub Community SRM, a student-led group at SRMIST, promoting open-source collaboration. Join us to explore coding, innovation, and community-driven development." />
Expand Down
20 changes: 12 additions & 8 deletions pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ import Head from "next/head";
import React from "react";
import ContactForm from "@/components/Contact/ContactForm";
import Faq from "@/components/Contact/Faq";
import Script from 'next/script';


const Contact = () => {
return (
<>
<Head>
{/* Google Tag Manager */}
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}/>
<Script
id="google-tag-manager"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}
/>
{/* End Google Tag Manager */}
<title>Contact Us | GitHub Community SRM | Support & Queries</title>
<meta name="description" content="Need help or have a query? Contact the GitHub Community SRM team for support and assistance. Explore our FAQ section for quick answers to common questions." />
Expand Down
20 changes: 12 additions & 8 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ import Gallery from "@/components/Home/Gallery";
import Sponsors from "@/components/Home/Sponsors";
import ContactForm from "@/components/Contact/ContactForm";
import Head from "next/head";
import Script from 'next/script';


const Index = () => {
return (
<>
<Head>
{/* Google Tag Manager */}
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}/>
<Script
id="google-tag-manager"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}
/>
{/* End Google Tag Manager */}
</Head>
<div className="bg-bg_black">
Expand Down
20 changes: 12 additions & 8 deletions pages/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import ProfileCard from "@/components/Team/profileCard";
import { CSSTransition, TransitionGroup } from "react-transition-group";
import Head from "next/head";
import { set } from "mongoose";
import Script from 'next/script';


const ProfileSkeleton = () => {
return (
Expand Down Expand Up @@ -115,14 +117,16 @@ const Teams = () => {
<section className="bg-bg_black">
<Head>
{/* Google Tag Manager */}
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}/>
<Script
id="google-tag-manager"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TXXTQDRC');`
}}
/>
{/* End Google Tag Manager */}
<title>Meet the Team | GitHub Community SRM | Technical, Corporate, Creative</title>
<meta name="description" content="Meet the GitHub Community SRM team, including President, Vice President, Leads, Associates, and Members from the Technical, Corporate, and Creative domains. Learn more about the talented individuals driving our open-source initiatives." />
Expand Down
14 changes: 7 additions & 7 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://githubsrmist.tech</loc><lastmod>2024-10-23T12:20:46.932Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/about</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/contact</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/events</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/recruitment</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/recruitment/dashboard</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/team</loc><lastmod>2024-10-23T12:20:46.933Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech</loc><lastmod>2024-10-24T00:37:04.773Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/about</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/contact</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/events</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/recruitment</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/recruitment/dashboard</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/team</loc><lastmod>2024-10-24T00:37:04.774Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
12 changes: 12 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"pipeline": {
"targets": [
"dev"
]
},
"targets": {
"dev": {
"cmd": "next dev"
}
}
}
Loading