Skip to content

Commit acd8918

Browse files
authored
Merge pull request #16 from Quantus-Network/illuzen/redirect-whitepaper
Redirect whitepaper
2 parents 8d9518b + a55b58f commit acd8918

10 files changed

Lines changed: 181 additions & 434 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ jobs:
110110
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
111111
PUPPETEER_EXECUTABLE_PATH: ${{ env.CHROMIUM_PATH }}
112112
run: |
113-
npx --yes @unlighthouse/cli@latest --build-static --mobile --output-path ./.unlighthouse/mobile
113+
npx unlighthouse-ci --build-static --mobile --output-path ./.unlighthouse/mobile
114114
115115
- name: Run Unlighthouse Desktop Audit
116116
working-directory: website
117117
env:
118118
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
119119
PUPPETEER_EXECUTABLE_PATH: ${{ env.CHROMIUM_PATH }}
120120
run: |
121-
npx --yes @unlighthouse/cli@latest --build-static --desktop --output-path ./.unlighthouse/desktop
121+
npx unlighthouse-ci --build-static --desktop --output-path ./.unlighthouse/desktop
122122
123123
# 5. UPLOAD ARTIFACT
124124
# This takes the generated report and saves it as a zip file.

website/astro.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ const LOCALES_MAP = {
3333

3434
// https://astro.build/config
3535
export default defineConfig({
36+
redirects: {
37+
"/whitepaper": "/blog/whitepaper",
38+
"/zh-CN/whitepaper": "/zh-CN/blog/whitepaper",
39+
"/ko-KR/whitepaper": "/ko-KR/blog/whitepaper",
40+
"/id-ID/whitepaper": "/id-ID/blog/whitepaper",
41+
"/ja-JP/whitepaper": "/ja-JP/blog/whitepaper",
42+
"/ru-RU/whitepaper": "/ru-RU/blog/whitepaper",
43+
"/es-ES/whitepaper": "/es-ES/blog/whitepaper",
44+
"/de-DE/whitepaper": "/de-DE/blog/whitepaper",
45+
"/hi-IN/whitepaper": "/hi-IN/blog/whitepaper",
46+
},
3647
build: {
3748
inlineStylesheets: "always",
3849
},
Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,10 @@
11
---
22
import SiteSocials from "@/components/ui/SiteSocials.astro";
3-
import Carousel, { type CarouselItem } from "./Carousel.astro";
43
import SphereDecoration from "@/components/ui/SphereDecoration.astro";
54
import { createTranslator, getLocaleFromUrl } from "@/utils/i18n";
65
7-
import GalleryOne from "@/assets/carousels/gallery-1.jpeg";
8-
import GalleryTwo from "@/assets/carousels/gallery-2.jpeg";
9-
import GalleryThree from "@/assets/carousels/gallery-3.jpeg";
10-
import GalleryFour from "@/assets/carousels/gallery-4.png";
11-
import GalleryFive from "@/assets/carousels/gallery-5.jpeg";
12-
import GallerySix from "@/assets/carousels/gallery-6.png";
13-
import GallerySeven from "@/assets/carousels/gallery-7.jpeg";
14-
156
const locale = getLocaleFromUrl(Astro.url.pathname);
167
const t = await createTranslator(locale);
17-
18-
const carouselItems: CarouselItem[] = [
19-
{
20-
id: "gallery-1",
21-
href: "https://www.youtube.com/watch?v=HDInJIda8uE&ab_channel=DeepSteep",
22-
src: GalleryOne,
23-
alt: "a snapshot of a DeepSteep podcast episode",
24-
},
25-
{
26-
id: "gallery-2",
27-
href: "https://www.youtube.com/watch?v=u9ZsCo6JWbw&ab_channel=DeepSteep",
28-
src: GalleryTwo,
29-
alt: "DeepSteep's Q-day series snapshot",
30-
},
31-
{
32-
id: "gallery-3",
33-
href: "https://www.youtube.com/watch?v=RZByZkfkthg&ab_channel=DeepSteep",
34-
src: GalleryThree,
35-
alt: "a snapshot of a DeepSteep podcast episode",
36-
},
37-
{
38-
id: "gallery-4",
39-
href: "https://www.youtube.com/watch?v=u9ZsCo6JWbw&t=11s&ab_channel=DeepSteep",
40-
src: GalleryFour,
41-
alt: "a snapshot of a DeepSteep Q-day episode showing the main characters",
42-
},
43-
{
44-
id: "gallery-5",
45-
href: "https://www.youtube.com/watch?v=tlsOBalFZIA&ab_channel=DeepSteep",
46-
src: GalleryFive,
47-
alt: "a snapshot of a DeepSteep podcast episode",
48-
},
49-
{
50-
id: "gallery-6",
51-
href: "https://www.youtube.com/watch?v=u9ZsCo6JWbw&ab_channel=DeepSteep",
52-
src: GallerySix,
53-
alt: "a snapshot of a DeepSteep Q-day podcast episode showing one of the main villain",
54-
},
55-
{
56-
id: "gallery-7",
57-
href: "https://www.youtube.com/watch?v=LZknHnoWcGo&ab_channel=DeepSteep",
58-
src: GallerySeven,
59-
alt: "a snapshot of a DeepSteep podcast episode",
60-
},
61-
];
628
---
639

6410
<section
@@ -83,6 +29,4 @@ const carouselItems: CarouselItem[] = [
8329
</h2>
8430
<SiteSocials class="lg:justify-center" />
8531
</div>
86-
87-
<Carousel items={carouselItems} autoplay loop />
8832
</section>

website/src/constants/site-navigations.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const SITE_NAVIGATIONS = [
1313
},
1414
{ href: "/blog/", label: "navbar.blog", isSpecial: false },
1515
{ href: "/contact/", label: "navbar.contact", isSpecial: false },
16-
{ href: "/quests/raid", label: "navbar.quests", isSpecial: false },
1716
{ href: "/launch/", label: "navbar.launch", isSpecial: false },
1817
{ href: "/quantum-risk-checker/", label: "navbar.checker", isSpecial: true },
1918
] as const;

website/src/contents/de-DE/whitepaper.md

Lines changed: 167 additions & 164 deletions
Large diffs are not rendered by default.

website/src/i18n/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
}
184184
},
185185
"socials": {
186-
"title": "Follow us for fun content, podcasts, interviews, wizardry and more!"
186+
"title": "Follow us for educational content, podcasts, interviews and more!"
187187
},
188188
"checker": {
189189
"meta": {

website/src/pages/[lang]/quests/raid.astro

Lines changed: 0 additions & 46 deletions
This file was deleted.

website/src/pages/[lang]/quests/shill.astro

Lines changed: 0 additions & 67 deletions
This file was deleted.

website/src/pages/quests/raid.astro

Lines changed: 0 additions & 38 deletions
This file was deleted.

website/src/pages/quests/shill.astro

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)