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

Deploy to Cloudflare Pages #2

Merged
merged 11 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .github/workflows/cf-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CloudFlare Deploy
on: [push]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: '18'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: lodestar-landing
directory: ./build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions src/app/F/page.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import localFont from 'next/font/local';
import {Inconsolata} from 'next/font/google'
import './globals.css'

export const neueMontreal = localFont({
const neueMontreal = localFont({
weight: '400',
src: [
{
Expand All @@ -25,7 +25,7 @@ export const neueMontreal = localFont({
variable: '--font-nm',
});

export const inconsolata = Inconsolata({ weight: ["400", "500"], subsets: ["latin"], variable: "--font-mono" } );
const inconsolata = Inconsolata({ weight: ["400", "500"], subsets: ["latin"], variable: "--font-mono" } );


export const metadata: Metadata = {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Loading/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client"
/* eslint-disable @next/next/no-img-element */

import { stylesWithCssVar } from "@/utils/useCssVar";
import { useScroll, useTransform, motion } from "framer-motion";
Expand Down Expand Up @@ -117,12 +118,12 @@ export const Loading = () => {
"--scale": loadingScreenscale,
})}
>
<img src="/loading-screen.svg" className="h-auto w-full" />
<img src="/loading-screen.svg" className="h-auto w-full" alt="" />
<motion.div
// style={{ opacity: newBranchOpacity }}
className="absolute inset-0"
>
<img src="/main-screen.svg" className="h-auto w-full" />
<img src="/main-screen.svg" className="h-auto w-full" alt=""/>
</motion.div>
<motion.span
className="mt-3 block text-2xl text-white"
Expand Down
3 changes: 2 additions & 1 deletion src/components/ShrinkLogoOnScroll/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client"
/* eslint-disable @next/next/no-img-element */

import { stylesWithCssVar } from "@/utils/useCssVar";
import { useScroll, useTransform, motion } from "framer-motion";
Expand Down Expand Up @@ -64,7 +65,7 @@ export const ShrinkLogoOnScroll = () => {
"--x": logoX
})}
>
<img src="/logo.png" className="h-auto w-[80%]" />
<img src="/logo.png" className="h-auto w-[80%]" alt=""/>

</motion.div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/sections/LearnMore/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable @next/next/no-img-element */
"use client"
import Button from "@/components/Button"
import YoutubeEmbed from "@/components/YoutubeEmbed"
import { IconArrowUpRight } from "@tabler/icons-react"

const processes = [
{
Expand Down
Loading
Loading