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

feat: add new website to main #121

Merged
merged 150 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
dcd7d8d
feat:add social icons to the webpage public folder
NadiemM Jul 8, 2024
dd5cb58
feat:Add SocialIcon component to shared-components library
NadiemM Jul 8, 2024
388b92c
fix: fix import within the BadgeDotAtom
NadiemM Jul 8, 2024
1023980
feat: add the start of groupbadge
NadiemM Jul 8, 2024
d1709b2
feat: start the website home page
NadiemM Jul 8, 2024
0a60985
feat: add temporary image placeholder
NadiemM Jul 9, 2024
e6c9bdb
feat:add frontline icons package
NadiemM Jul 9, 2024
a8384c6
feat:update CenterHeadingSection component to take children
NadiemM Jul 9, 2024
2fc901d
feat:update the Badge component
NadiemM Jul 9, 2024
95ef7cd
feat:add GroupBadge to the website components
NadiemM Jul 9, 2024
673d5a2
feat:add first part of the new website homepage
NadiemM Jul 9, 2024
edf0331
fix:remove build errors
NadiemM Jul 9, 2024
d9352b3
feat:add no scrollbar styles
NadiemM Jul 9, 2024
3c66d5e
feat:add social proof test image
NadiemM Jul 9, 2024
7d01edf
feat:add SocialProofSection
NadiemM Jul 9, 2024
8eef294
feat:remove placeholder
NadiemM Jul 9, 2024
a6f760f
fix: remove console log within GroupBadges
NadiemM Jul 9, 2024
ce2d9c9
feat: use SocialIcon and InputField from the SharedComponents library
NadiemM Jul 10, 2024
c42fb8a
feat: use SocialIcon within footer from SharedComponents
NadiemM Jul 10, 2024
36cc3fd
feat: update InputField and move it from info-dashboard to the Shared…
NadiemM Jul 10, 2024
ee55097
feat: add button component to shared components
NadiemM Jul 10, 2024
5ff6037
fix: remove unused parts within GroupdBadge and Badge
NadiemM Jul 10, 2024
48f01e0
feat: Add IconAtom component to the website
NadiemM Jul 10, 2024
3d440d7
feat: update the website page with the first sections
NadiemM Jul 10, 2024
de66d1b
feat:add social icons to the webpage public folder
NadiemM Jul 8, 2024
d2a1fd9
feat:update pnpm-lock add tailwind merge
NadiemM Jul 12, 2024
2af16c5
feat:add tailwind merge to package.json
NadiemM Jul 12, 2024
5f748a7
feat:add _NavItemBase to website components
NadiemM Jul 12, 2024
4985602
feat:add NavBar to website components
NadiemM Jul 12, 2024
d894751
feat:add _ApplicationNavMenuButton to website components
NadiemM Jul 12, 2024
c56c456
feat:add _NavItemBase to website components
NadiemM Jul 12, 2024
cd3d88a
feat:add _NavItemDropdown to website components
NadiemM Jul 12, 2024
8c21c28
feat:add _NavMenuItem to website components
NadiemM Jul 12, 2024
4c829a9
feat:add temporary icons for the NavBar
NadiemM Jul 12, 2024
9950671
fix: split layout into a client and server version
NadiemM Jul 12, 2024
51e45e3
fix:update the discord url to the correct invite link
NadiemM Jul 12, 2024
8cc183c
feat: add mobile menu dropdown to the clientLayout navbar
NadiemM Jul 12, 2024
9168429
feat: preliminary payload setup
benjaminpreiss Jul 15, 2024
1431ee8
feat: add trailing and leading icon option to the anchor shared compo…
NadiemM Jul 18, 2024
1be46d0
feat: update anchor components imports
NadiemM Jul 18, 2024
8d3f4ec
feat: add leading and trailing to button, cleanup button component
NadiemM Jul 18, 2024
5a2fdb9
feat:add trailingCTA button to the NavBar
NadiemM Jul 18, 2024
b5dc62d
feat: add IconAtom to the Navbar dropdown menu
NadiemM Jul 18, 2024
fafa5df
feat: comment out the metrics dashboard
NadiemM Jul 18, 2024
0deef3e
feat:add BlogPostCard component
NadiemM Jul 18, 2024
54494a1
feat:add BlogPostCard to the homepage
NadiemM Jul 18, 2024
e4db663
feat: add roadmap and RoadmapItem component
NadiemM Jul 18, 2024
b5f7e9a
feat: Add Roadmap to the website
NadiemM Jul 18, 2024
597efb5
fix: remove extra padding from the roadmap component
NadiemM Jul 18, 2024
1c26355
fix: simplify navbar navigation
NadiemM Jul 21, 2024
5b20920
feat: start adding teams page
NadiemM Jul 22, 2024
b810838
feat: add simple avatar component
NadiemM Jul 22, 2024
3c6a80c
feat: add _TeamMember component
NadiemM Jul 22, 2024
f2595ab
fix: update social proof section on the home page
NadiemM Jul 23, 2024
1b106bd
fix: update social proof component by removing padding
NadiemM Jul 23, 2024
dd5454a
feat:add team page and update _TeamMember card max size
NadiemM Jul 23, 2024
a18ffab
feat: change image sizing on the team page
NadiemM Jul 24, 2024
99b0089
fix: update newletters mobile sizing
NadiemM Jul 24, 2024
7d25e93
feat: add first part of the footer
NadiemM Jul 24, 2024
f2cd70b
fix: close mobile menu on resizing
NadiemM Jul 24, 2024
13aa5d2
fix: add rounded border to the token launch section
NadiemM Jul 24, 2024
061a84b
feat: Add _FooterLink component
NadiemM Jul 24, 2024
d54c20b
feat: Add _FooterLinksHeader component
NadiemM Jul 24, 2024
e10c50f
feat: Add _FooterLinksColumn component
NadiemM Jul 24, 2024
8de653c
feat: Update Footer component to contain new components
NadiemM Jul 24, 2024
9c0ff35
feat:remove placeholder
NadiemM Jul 9, 2024
2ddd8b5
feat: add button component to shared components
NadiemM Jul 10, 2024
f057bba
feat:add social icons to the webpage public folder
NadiemM Jul 8, 2024
fd3c212
feat: preliminary payload setup
benjaminpreiss Jul 15, 2024
aad3b8d
feat: add leading and trailing to button, cleanup button component
NadiemM Jul 18, 2024
29cb1a1
feat: comment out the metrics dashboard
NadiemM Jul 18, 2024
4ae9f7e
feat: start adding teams page
NadiemM Jul 22, 2024
737cc63
feat:add team page and update _TeamMember card max size
NadiemM Jul 23, 2024
801e0d6
feat: start about-us page
NadiemM Jul 25, 2024
f7ce7e9
fix: move to pnpm on website-cms
benjaminpreiss Jul 15, 2024
77f08cb
feat: disable website-cms build temporarily
benjaminpreiss Jul 25, 2024
66f07c7
fix: Update footer resizing and positioning
NadiemM Jul 25, 2024
94525ed
chore: update @frontline-hq/uui-tailwind to 4.0.4
NadiemM Jul 25, 2024
60d1cd1
feat: Add shapes image and ContentItem
NadiemM Jul 25, 2024
bf23aca
fix: update the lilypad image sizing on the team page correctly
NadiemM Jul 25, 2024
ff1cb14
feat: add what we stand for section
NadiemM Jul 29, 2024
8d22d72
chore: add correct link for the use cases within the navbar
NadiemM Jul 29, 2024
3f6e65a
fix: remove deprecated layout prop on the Image element
NadiemM Jul 29, 2024
58dbfee
chore: add Media Kit link within the navbar
NadiemM Jul 29, 2024
6352480
feat: add _FeatureText & FeaturedIcon
NadiemM Jul 29, 2024
b7ffbe1
fix: Remove console.log in Avatar component
NadiemM Jul 30, 2024
cf149af
feat: add react spring & intersection observer
NadiemM Aug 12, 2024
869b783
feat: add small navbar animation
NadiemM Aug 12, 2024
1501688
chore:add small animations to home page
NadiemM Aug 12, 2024
07405b3
chore: add about-us page animation
NadiemM Aug 12, 2024
f781eac
chore: add team page animation
NadiemM Aug 12, 2024
9c9aa7a
chore: add UseFade & UseFadeInView hooks
NadiemM Aug 12, 2024
2809479
feat: add AnimateSpring component
NadiemM Aug 12, 2024
1a9dc83
feat: add Roadmap, RoadmapItem and RoadmapItemWrapper
NadiemM Aug 12, 2024
f9264d1
added github action
developersteve Aug 23, 2024
ae5851b
action change for the page deploy
developersteve Aug 23, 2024
c20a9ae
changed wrangler config in action
developersteve Aug 23, 2024
81ad847
added export and out directory
developersteve Aug 23, 2024
511e306
Newsletter integration
developersteve Oct 9, 2024
ea518ec
slight rewording. Closes #80
developersteve Oct 9, 2024
7402ecf
GH action fix
developersteve Oct 11, 2024
cd9e26d
cleanup
developersteve Oct 11, 2024
d7f2fb2
Added workflow dispatch to GH Action for web
developersteve Oct 18, 2024
d6cb656
feat: use strapi
bonhokage06 Oct 17, 2024
7c7237f
add trusted by images
bonhokage06 Oct 18, 2024
a14ac86
Added automatic sitemap build for website #100
developersteve Oct 24, 2024
201bb55
added a git ignore for the sitemap files
developersteve Oct 24, 2024
1e6f5e8
added strapi badge elements
developersteve Oct 25, 2024
e3b9e14
#112 added team member, advisor and partner output
developersteve Nov 7, 2024
614f80e
added strapi load on header image and alt
developersteve Nov 7, 2024
6f62f11
Closes #97: added lottie file support via strapi. Also added a backup…
developersteve Nov 11, 2024
e13c28b
add copy to home page
PBillingsby Dec 8, 2024
24bc771
add conditional render for social icons
PBillingsby Dec 8, 2024
4a24e20
WIP styling for trusted partners
PBillingsby Dec 8, 2024
fb19e1d
add error handling for strapi requests
PBillingsby Dec 8, 2024
2480bed
update home page copy. minor styling
PBillingsby Dec 12, 2024
758835d
add copy and styling for about-us
PBillingsby Dec 16, 2024
9e670ae
fix active status for products tab
PBillingsby Dec 16, 2024
1c19771
add order and experience to types
PBillingsby Dec 16, 2024
6d82ae3
update styling for team page
PBillingsby Dec 16, 2024
acccce6
adjust avatar size
PBillingsby Dec 16, 2024
797d5f2
adjust center heading section padding
PBillingsby Dec 16, 2024
9f27399
update footer links
PBillingsby Dec 16, 2024
f8b667e
add trusted partner hook call to social proofs
PBillingsby Dec 16, 2024
7095f80
add navigation scroll to footer link
PBillingsby Dec 16, 2024
9817c4b
add mailer route for newsletter and marketplace subscription
PBillingsby Dec 16, 2024
248e059
add call to actions to footer block
PBillingsby Dec 16, 2024
78f4c0b
add newsletter form to forms directory
PBillingsby Dec 16, 2024
455da6a
add advisor display component
PBillingsby Dec 16, 2024
9923c7f
add mail helper to utils
PBillingsby Dec 16, 2024
05c77a5
add react-carousel for trusted partners
PBillingsby Dec 16, 2024
96a3a25
add partner href
PBillingsby Dec 18, 2024
3f4398b
move favicon to public dir
PBillingsby Dec 18, 2024
923e274
styling changes
PBillingsby Dec 18, 2024
2168702
add favicon to layout
PBillingsby Dec 18, 2024
88ed1bc
add toast for form submission
PBillingsby Dec 18, 2024
a1c3a6e
remove unneeded comment
PBillingsby Dec 18, 2024
2e63bdc
add href. update styling
PBillingsby Dec 18, 2024
2e91466
add link descriptions as optional
PBillingsby Dec 18, 2024
5efb00b
remove console.log
PBillingsby Dec 18, 2024
fc51443
add infographic
PBillingsby Dec 18, 2024
d1e041c
cleanup
PBillingsby Dec 18, 2024
4f8e336
update lockfile
PBillingsby Dec 18, 2024
5fb9340
cleanup and fix for build error
PBillingsby Dec 18, 2024
c55a3d1
add lp icon
PBillingsby Dec 18, 2024
be39d01
add privacy policy & terms. update footer links
PBillingsby Dec 18, 2024
e6ceb5a
fix for build
PBillingsby Dec 18, 2024
49a868c
update index in list
PBillingsby Dec 18, 2024
adfb648
add padding between partners
PBillingsby Dec 19, 2024
6e55e0f
add padding for mobile
PBillingsby Dec 19, 2024
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
52 changes: 52 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Website Staging Deploy

on:
push:
branches:
- staging # or the branch you want to deploy from
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
environment: website

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20" # Use the Node.js version compatible with your project

- name: Install pnpm
run: npm install -g pnpm

- name: Install Doppler CLI
run: |
(curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh

- name: Set up Doppler
run: doppler configure set token ${{ secrets.WEB_DOPPLER_TOKEN }}

- name: Fetch secrets from Doppler and boot
run: doppler run -- npm run boot
env:
DOPPLER_TOKEN: ${{ secrets.WEB_DOPPLER_TOKEN }}

- name: Clean up build output
working-directory: ./apps/website/.next
run: |
rm -rf cache

- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.WEB_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.WEB_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.WEB_CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy ./apps/website/out --project-name=$CLOUDFLARE_PROJECT_NAME --branch=main
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
dist
build
.DS_STORE
.DS_STORE
apps/website/public/sitemap*.xml
5 changes: 3 additions & 2 deletions apps/info-dashboard/src/app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import {
generalCheck,
} from "@frontline-hq/untitledui-icons";
import CardHeader from "@/components/CardHeader";
import InputField from "@/components/InputField/Inputfield";
import { InputField } from "@lilypad/shared-components";
import { SectionContainer } from "@lilypad/shared-components";
import TableLeadText from "@/components/Table/TableLeadText";
import TableHeaderCell from "@/components/Table/TableHeaderCell";
import HeadingSection from "@/components/HeadingSection";
import SocialIcon from "@/components/SocialIcon";
import { SocialIcon } from "@lilypad/shared-components";
import * as m from "@/paraglide/messages.js";
import Head from "next/head";
import {
Expand Down Expand Up @@ -216,6 +216,7 @@ export default function Leaderboard() {
e.target.value
)
}
inputSize="sm"
placeholder={m.leaderboard_node_provider_table_inputField_placeholder()}
iconUrl={generalSearchMd}
/>
Expand Down
3 changes: 2 additions & 1 deletion apps/info-dashboard/src/app/node-status/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as m from "@/paraglide/messages";
import { Anchor, SectionContainer } from "@lilypad/shared-components";
import Table from "@/components/Table/Table";
import CardHeader from "@/components/CardHeader";
import InputField from "@/components/InputField/Inputfield";
import { InputField } from "@lilypad/shared-components";
import {
alertAndFeedbackAlertCircle,
generalCheck,
Expand Down Expand Up @@ -246,6 +246,7 @@ export default function NodeStatus() {
e.target.value
)
}
inputSize="sm"
placeholder={m.node_status_node_overview_table_inputField_placeholder()}
iconUrl={generalSearchMd}
/>
Expand Down
10 changes: 7 additions & 3 deletions apps/info-dashboard/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ export default function Home() {
</MetricsCard>
);
})}
</SectionContainer> */}
{/* <SectionContainer className="mx-auto pt-uui-4xl w-full justify-between flex uui-desktop:gap-uui-3xl gap-uui-2xl sm:flex-row flex-col snap-x overflow-x-auto no-scrollbar">
</SectionContainer>
<SectionContainer className="mx-auto pt-uui-4xl w-full justify-between flex uui-desktop:gap-uui-3xl gap-uui-2xl sm:flex-row flex-col snap-x overflow-x-auto no-scrollbar">
{(["Nodes", "JobsCompleted"] as const).map((key, id) => {
return (
<CardWithBorder
Expand Down Expand Up @@ -215,7 +215,11 @@ export default function Home() {
height="100%"
>
<AreaChart
data={metricsTransformedData[key]}
data={
metricsTransformedData[
key
]
}
margin={{
top: 0,
right: 0,
Expand Down
3 changes: 1 addition & 2 deletions apps/info-dashboard/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { SectionContainer } from "@lilypad/shared-components";
import Image from "next/image";
import SocialIcon from "./SocialIcon";

import { SocialIcon } from "@lilypad/shared-components";
interface FooterProps extends React.HTMLProps<HTMLDivElement> {
socialLinks: { href: string; iconUrl: string }[];
footerIcon: { src: string; alt: string; href: string };
Expand Down
23 changes: 0 additions & 23 deletions apps/info-dashboard/src/components/InputField/InputAtom.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions apps/info-dashboard/src/components/InputField/InputIconAtom.tsx

This file was deleted.

64 changes: 0 additions & 64 deletions apps/info-dashboard/src/components/InputField/InputWrapper.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions apps/info-dashboard/src/components/InputField/Inputfield.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions apps/info-dashboard/src/components/SocialIcon.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropsWithChildren, ReactNode } from "react";
import { PropsWithChildren } from "react";
import { twMerge } from "tailwind-merge";

export default function _NavItemBase({
Expand Down
16 changes: 11 additions & 5 deletions apps/info-dashboard/src/lib/fetchers/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,27 @@ export async function fetchMetrics() {
return res;
}

export function addValueChange(enrichedTs: TimeSeriesCountEnriched[]) {
export function addValueChange(
enrichedTs: TimeSeriesCountEnriched[],
totalAmount?: number
) {
return sort(enrichedTs, (a, b) =>
ascending(a.epochMillis, b.epochMillis)
).map((val, index, arr) => {
const change =
index > 0 ? arr[index].Count - arr[index - 1].Count : val.Count;
const change = arr[index].Count / (totalAmount ?? arr[index].Count);
return { ...val, change };
});
}

export function toFrontendData(data?: MetricsEndpointReturnType) {
const withChangeCalculated = {
nodes: addValueChange(enrichMetricsTimeSeriesData(data?.Nodes ?? [])),
nodes: addValueChange(
enrichMetricsTimeSeriesData(data?.Nodes ?? []),
data?.TotalNodes
),
jobsCompleted: addValueChange(
enrichMetricsTimeSeriesData(data?.JobsCompleted ?? [])
enrichMetricsTimeSeriesData(data?.JobsCompleted ?? []),
data?.TotalJobs
),
};

Expand Down
5 changes: 5 additions & 0 deletions apps/website-cms/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.git
.gitignore
*.md
dist
2 changes: 2 additions & 0 deletions apps/website-cms/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank
PAYLOAD_SECRET=YOUR_SECRET_HERE
8 changes: 7 additions & 1 deletion apps/website-cms/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
.pnpm-store
build
dist
/media
node_modules
.DS_Store
.env
.pnpm-store
Loading
Loading