Skip to content

Commit

Permalink
Merge pull request #43 from meteordefect/Improve-seo-fixes
Browse files Browse the repository at this point in the history
Fixes for SEO like sitemap
  • Loading branch information
meteordefect authored Jan 3, 2025
2 parents 2ac9c10 + 54b2246 commit 750e2ad
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 11 deletions.
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Allow all crawlers
User-agent: *

# Exclude specific sensitive directories (if any)
Disallow: /admin/
Disallow: /private/
User-agent: *
Allow: /
Disallow: /api/
Disallow: /_next/
Disallow: /static/

# Link to the sitemap for better indexing
Sitemap: https://cipherprojects.com/sitemap.xml
# Sitemap
Sitemap: https://cipherprojects.com/sitemap.xml
15 changes: 9 additions & 6 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Script from 'next/script'
import ClientProviders from '@/components/ClientProviders'
import type { Metadata } from 'next'
import './globals.css'
import CustomCursor from '@/components/CustomCursor'
import SchemaMarkup from '@/components/SchemaMarkup'

const neueHaas = localFont({
src: [
Expand Down Expand Up @@ -89,26 +89,29 @@ export default function RootLayout({
}) {
return (
<html lang="en" className={`${neueHaas.variable}`}>
<head>
<SchemaMarkup />
</head>
<body className="font-sans">
<Script
<Script
src="https://s.ahrefs.com/website-analytics.js"
data-domain="cipherprojects.com"
strategy="afterInteractive"
/>
<ClientProviders>
{/* <CustomCursor /> */} {/* Commented out or remove this line */}
{/* <CustomCursor /> */}
<main id="main" className="relative">
{children}
</main>
</ClientProviders>

<a
href="#main"
<a
href="#main"
className="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-white focus:text-black"
>
Skip to main content
</a>
</body>
</html>
)
}
}
38 changes: 38 additions & 0 deletions src/components/SchemaMarkup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
'use client'

export default function SchemaMarkup() {
const schema = {
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'Cipher Projects',
url: 'https://cipherprojects.com',
logo: 'https://cipherprojects.com/black-logo.png',
image: 'https://cipherprojects.com/black-logo.png',
description: 'Cipher Projects delivers world-class software development services to clients across Asia & Australia. Web, mobile, cloud & AI expertise.',
address: {
'@type': 'PostalAddress',
addressLocality: 'Canberra',
addressRegion: 'ACT',
postalCode: '2607',
addressCountry: 'AU'
},
contactPoint: {
'@type': 'ContactPoint',
telephone: '+61-2-6176-1580',
contactType: 'customer service',
email: '[email protected]'
},
sameAs: [
'https://www.linkedin.com/company/cipherprojects',
'https://twitter.com/cipherprojects',
'https://www.facebook.com/profile.php?id=61560910197514'
]
}

return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
/>
)
}
75 changes: 75 additions & 0 deletions src/lib/seo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import type { Metadata } from 'next'

interface PageSEO {
title: string;
description: string;
path: string;
}

export const defaultMetadata: Metadata = {
title: {
default: 'Cipher Projects | Cloud & Software Development',
template: '%s | Cipher Projects'
},
description: 'Elite development teams for transformative projects from cloud to core systems. Serving clients across Europe, Asia & Australia.',
openGraph: {
type: 'website',
locale: 'en_AU',
url: 'https://cipherprojects.com',
siteName: 'Cipher Projects',
images: [
{
url: '/og-image.jpg',
width: 1200,
height: 630,
alt: 'Cipher Projects'
}
]
},
twitter: {
card: 'summary_large_image',
title: 'Cipher Projects',
description: 'Elite development teams for transformative projects',
images: ['/og-image.jpg']
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
icons: {
icon: '/favicon.ico',
shortcut: '/favicon-16x16.png',
apple: '/apple-touch-icon.png',
},
}

// Important pages for sitelinks
export const mainPages: PageSEO[] = [
{
title: 'Projects',
description: 'Featured cloud infrastructure and software development projects by Cipher Projects.',
path: '/projects'
},
{
title: 'Services',
description: 'Cloud infrastructure, software development, and digital transformation services.',
path: '/services'
},
{
title: 'About',
description: 'Learn about Cipher Projects - elite development teams for transformative projects.',
path: '/about'
},
{
title: 'Research',
description: 'Insights and research on cloud technology, software development and digital innovation.',
path: '/research'
}
]

0 comments on commit 750e2ad

Please sign in to comment.