-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLayout.astro
More file actions
187 lines (174 loc) · 5.91 KB
/
Copy pathLayout.astro
File metadata and controls
187 lines (174 loc) · 5.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
---
import '../styles/global.css'
export interface Props {
title?: string
description?: string
ogImage?: string
noindex?: boolean
jsonLd?: Record<string, unknown> | Record<string, unknown>[]
}
const {
title = 'BitByBit (B3) — Software, bit by bit.',
description = 'BitByBit (B3) is a Sri Lanka–based software studio. We design and ship serious software for serious teams — custom products, AI systems, and the infrastructure behind them.',
ogImage = '/inverted_image.png',
noindex = false,
jsonLd,
} = Astro.props
const canonicalURL = new URL(Astro.url.pathname, Astro.site)
const ogImageURL = new URL(ogImage, Astro.site)
const baseGraph: Record<string, unknown>[] = [
{
'@type': 'Organization',
'@id': 'https://bbyb.dev/#organization',
name: 'BitByBit',
alternateName: ['B3', 'BitByBit B3', 'bbyb', 'bbyb.dev'],
url: 'https://bbyb.dev',
logo: {
'@type': 'ImageObject',
url: 'https://bbyb.dev/inverted_image.png',
},
description,
foundingLocation: {
'@type': 'Place',
address: {
'@type': 'PostalAddress',
addressLocality: 'Colombo',
addressCountry: 'LK',
},
},
address: {
'@type': 'PostalAddress',
addressLocality: 'Colombo',
addressCountry: 'LK',
},
areaServed: 'Worldwide',
contactPoint: [
{
'@type': 'ContactPoint',
telephone: '+94-71-377-1561',
contactType: 'customer support',
areaServed: 'Worldwide',
availableLanguage: ['English', 'Sinhala'],
},
{
'@type': 'ContactPoint',
telephone: '+94-77-716-9804',
contactType: 'sales',
areaServed: 'Worldwide',
availableLanguage: ['English', 'Sinhala'],
},
],
sameAs: [
'https://github.com/BitByBit-B3',
'https://github.com/b3-competition',
'https://blog.bbyb.dev',
],
},
{
'@type': 'WebSite',
'@id': 'https://bbyb.dev/#website',
url: 'https://bbyb.dev',
name: 'BitByBit',
alternateName: ['B3', 'BitByBit B3', 'bbyb'],
publisher: { '@id': 'https://bbyb.dev/#organization' },
inLanguage: 'en',
potentialAction: {
'@type': 'SearchAction',
target: {
'@type': 'EntryPoint',
urlTemplate: 'https://bbyb.dev/?q={search_term_string}',
},
'query-input': 'required name=search_term_string',
},
},
{
'@type': 'ProfessionalService',
'@id': 'https://bbyb.dev/#service',
name: 'BitByBit (B3)',
alternateName: 'B3',
image: 'https://bbyb.dev/inverted_image.png',
url: 'https://bbyb.dev',
telephone: '+94-71-377-1561',
priceRange: '$$',
address: {
'@type': 'PostalAddress',
addressLocality: 'Colombo',
addressCountry: 'LK',
},
areaServed: 'Worldwide',
parentOrganization: { '@id': 'https://bbyb.dev/#organization' },
},
]
const extra = jsonLd ? (Array.isArray(jsonLd) ? jsonLd : [jsonLd]) : []
const graph = { '@context': 'https://schema.org', '@graph': [...baseGraph, ...extra] }
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#0a0a0a" />
<link rel="canonical" href={canonicalURL} />
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon-128x128.png" />
<!-- Sitemap -->
<link rel="sitemap" type="application/xml" href="/sitemap-index.xml" />
<!-- Unbounded font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800;900&display=swap"
rel="stylesheet"
/>
<!-- SEO -->
<title>{title}</title>
<meta name="description" content={description} />
<meta
name="robots"
content={noindex
? 'noindex, nofollow'
: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'}
/>
<meta name="googlebot" content={noindex ? 'noindex, nofollow' : 'index, follow'} />
<meta name="author" content="BitByBit (B3)" />
<meta
name="keywords"
content="BitByBit, B3, bbyb, bbyb.dev, BitByBit B3, software studio Sri Lanka, software agency Colombo, custom software, AI agents, Cloudflare Workers"
/>
<meta name="darkreader-lock" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="BitByBit (B3)" />
<meta property="og:locale" content="en_LK" />
<meta property="og:url" content={canonicalURL} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={ogImageURL} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="BitByBit (B3) — Software, bit by bit." />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={ogImageURL} />
<meta name="twitter:image:alt" content="BitByBit (B3) — Software, bit by bit." />
<!-- JSON-LD: Organization, WebSite, ProfessionalService (+ per-page) -->
<script type="application/ld+json" set:html={JSON.stringify(graph)} />
</head>
<body>
<slot />
</body>
<script>
import Lenis from 'lenis'
const lenis = new Lenis({ smoothWheel: true })
function raf(time: number) {
lenis.raf(time)
requestAnimationFrame(raf)
}
requestAnimationFrame(raf)
</script>
</html>