Skip to content

Commit a7404b0

Browse files
authored
feat(docs): docs landing page revamp (#1203)
1 parent 8a41a01 commit a7404b0

File tree

913 files changed

+2836
-50849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

913 files changed

+2836
-50849
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy Staging
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/docs-revamps
7+
8+
jobs:
9+
build:
10+
name: Build Images
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup Gcloud Auth
20+
uses: google-github-actions/auth@v1
21+
with:
22+
credentials_json: "${{ secrets.ORG_SANDBOX_DEPLOYMENT_KEY }}"
23+
24+
- name: Setup Cloud SDK
25+
uses: google-github-actions/setup-gcloud@v1
26+
27+
- name: Set Image Tag
28+
id: lookup
29+
run: echo "version=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
30+
31+
- run: |
32+
gcloud auth list
33+
gcloud auth configure-docker -q
34+
echo "VERSION: ${{ steps.lookup.outputs.version }}"
35+
36+
- name: Build and Push Images
37+
run: |
38+
./scripts/build-img-revamp.py
39+
env:
40+
IMAGE_REVAMP_REPOSITORY: ${{ secrets.IMAGE_REVAMP_REPOSITORY }}
41+
BACKEND_URL: ${{ secrets.STAGING_NEXT_PUBLIC_BACKEND_URL }}
42+
NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID }}
43+
NEXT_PUBLIC_ALGOLIA_APP_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}
44+
NEXT_PUBLIC_ALGOLIA_API_KEY: ${{ secrets.NEXT_PUBLIC_ALGOLIA_API_KEY }}
45+
NEXT_PUBLIC_ALGOLIA_INDEX: ${{ secrets.NEXT_PUBLIC_ALGOLIA_INDEX }}
46+
NEWSLETTER_BASE_URL: ${{ secrets.NEWSLETTER_BASE_URL }}
47+
SENDER_TOKEN: ${{ secrets.SENDER_TOKEN }}
48+
49+
- name: Repository Dispatch
50+
run: |
51+
curl -f -H "Accept: application/vnd.github.everest-preview+json" \
52+
-H "Authorization: token ${{ secrets.ORG_DISPATCH_RENDER_TOKEN }}" \
53+
--request POST \
54+
--data '{"event_type": "docs-revamp-staging-build", "client_payload": {"image": "'"${{ secrets.IMAGE_REVAMP_REPOSITORY }}"'" , "image_path": "values", "key_path": ".image.tag", "commit_message_service": "Docs Revamp Staging", "tag": "'"${{ steps.lookup.outputs.version }}"'"}}' \
55+
https://api.github.com/repos/fetchai/infra-sandbox-london-b-deployment/dispatches

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Staging
33
on:
44
push:
55
branches:
6-
- main
6+
- feat/new-landing
77

88
jobs:
99
build:

components/components.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
cursor: pointer;
1212
width: 100%;
1313
color: #000d3d;
14-
font-family: Lexend;
14+
font-family: Geist;
1515
font-size: 16px;
1616
font-style: normal;
1717
font-weight: 400;
@@ -53,7 +53,7 @@
5353

5454
.heading {
5555
color: var(--Cold-Grey-Grey500-Coolgrey, #8a9fb8);
56-
font-family: Lexend;
56+
font-family: Geist;
5757
font-size: 16px;
5858
font-style: normal;
5959
font-weight: 500;
@@ -87,7 +87,7 @@
8787

8888
.dropdownActive {
8989
color: #0b1742;
90-
font-family: Lexend;
90+
font-family: Geist;
9191
font-size: 14px;
9292
font-style: normal;
9393
font-weight: 400;
@@ -107,7 +107,7 @@
107107
border-radius: 8px;
108108
border: 1px solid var(--Cold-Grey-Grey250, #d0d9e3);
109109
color: #0b1742;
110-
font-family: Lexend;
110+
font-family: Geist;
111111
font-size: 14px;
112112
font-style: normal;
113113
font-weight: 400;
@@ -177,7 +177,7 @@
177177
background: #e8ecf1;
178178
color: var(--Secondary-500, #556578);
179179
text-align: center;
180-
font-family: Lexend;
180+
font-family: Geist;
181181
font-size: 14px;
182182
font-style: normal;
183183
font-weight: 400;
@@ -186,7 +186,7 @@
186186

187187
.mainTitleHeading {
188188
color: var(--Indigo-Indigo-900---Fetch-navy, #000d3d);
189-
font-family: Lexend;
189+
font-family: Geist;
190190
font-size: 24px;
191191
font-style: normal;
192192
font-weight: 400;

components/error-404.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { ReactNode, useEffect } from "react";
22
import Image from "next/image";
33
import Error from "../src/svgs/desktop/404.svg";
4-
import { FeatureGuideTabs } from "./feature-guide-tabs";
54

65
const Description = ({ children }: { children: ReactNode }) => (
76
<span
@@ -42,14 +41,8 @@ const Error404 = () => {
4241
go back to the homepage or
4342
</span>
4443
</Description>
45-
<Description>
46-
The quick links below may help you find your way.
47-
</Description>
4844
</div>
4945
</div>
50-
<section className="nx-mt-landing-page-sections nx-max-w-[1216px]">
51-
<FeatureGuideTabs centerMode={true} />
52-
</section>
5346
</div>
5447
);
5548
};

components/feature-guide-tabs.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,20 @@ export const FeatureGuideTabs = ({ centerMode }: { centerMode?: boolean }) => {
146146
"Set up Agentverse mailboxes for your locally-run agents and to run them independently of your constant presence to run the server.",
147147
path: "/guides/agentverse/utilising-the-mailbox",
148148
},
149+
{
150+
title:
151+
"Agentverse Functions: register your Agent Functions on the Agentverse!",
152+
description:
153+
"Discover how to register and make discoverable Agents' Functions within the Agentverse and DeltaV!",
154+
path: "/guides/agentverse/registering-agent-services",
155+
},
156+
{
157+
title:
158+
"Agentverse Functions: register a coin toss agent as a Function",
159+
description:
160+
"Create and make an coin toss Function discoverable on the Agentverse and DeltaV!",
161+
path: "/guides/agentverse/registering-agent-coin-toss",
162+
},
149163
{
150164
title: "Agentverse allowed imports",
151165
description:

components/footer.module.css

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.page {
2-
max-width: 976px;
2+
max-width: 1010px;
33
margin: 48px auto;
44
display: flex;
55
flex-direction: column;
@@ -58,7 +58,7 @@
5858

5959
.footerHeading {
6060
color: #0b1742;
61-
font-family: Lexend;
61+
font-family: Geist;
6262
font-size: 16px;
6363
font-style: normal;
6464
font-weight: 400;
@@ -81,7 +81,8 @@
8181
border-radius: 6px;
8282
border: 1px solid #b9c5d4;
8383
background: transparent;
84-
width: 330px;
84+
max-width: 592px;
85+
width: 100%;
8586
}
8687

8788
.inputInner {
@@ -137,28 +138,6 @@
137138
}
138139
}
139140

140-
.footerInputSection {
141-
display: flex;
142-
justify-content: flex-end;
143-
align-items: flex-start;
144-
gap: 12px;
145-
flex-direction: column;
146-
}
147-
148-
.footerInputWrapper {
149-
display: flex;
150-
justify-content: flex-end;
151-
align-items: flex-end;
152-
gap: 12px;
153-
}
154-
155-
@media (max-width: 502px) {
156-
.footerInputWrapper {
157-
flex-direction: column;
158-
align-items: normal;
159-
}
160-
}
161-
162141
.footerInput {
163142
display: flex;
164143
flex-direction: column;
@@ -170,15 +149,22 @@
170149
display: flex;
171150
height: 50px;
172151
min-width: 40px;
173-
min-height: 40px;
152+
/* min-height: 40px; */
174153
padding: 8px 12px;
175154
justify-content: center;
176155
align-items: center;
177156
gap: 2px;
178157
border-radius: 8px;
179-
background: #5f38fb;
158+
background: #000;
180159
color: #ffff;
181160
align-items: center;
161+
text-transform: uppercase;
162+
width: 100px;
163+
font-size: 14px;
164+
font-family: "Geist Mono", sans-serif;
165+
font-optical-sizing: auto;
166+
font-weight: 400;
167+
font-style: normal;
182168
}
183169
.signBtn:hover {
184170
border-radius: 8px;

0 commit comments

Comments
 (0)