diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cdf44ee..157d680 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,8 +18,8 @@ on: default: "prod" type: choice options: - - prod - - stg + - prod + - stg concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -38,29 +38,29 @@ jobs: steps: - name: Check branch run: | - if [ "${{ env.DATA_ENV }}" = "prod" ]; then - if [ "$GITHUB_REF_NAME" != "main" ]; then - echo "Operation not permitted" - exit 1 - fi + if [ "${{ env.DATA_ENV }}" = "prod" ]; then + if [ "$GITHUB_REF_NAME" != "main" ]; then + echo "Operation not permitted" + exit 1 fi + fi - name: Checkout uses: actions/checkout@v5 with: persist-credentials: false - + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: arn:aws:iam::490752553772:role/pse-web-ecs-deploy-slc role-duration-seconds: 1800 aws-region: eu-central-1 - + - name: Build and Push images to ECR run: | - .github/scripts/build.sh ${{ env.DATA }} ${{ env.DATA_ENV }} - + .github/scripts/build.sh ${{ env.DATA }} ${{ env.DATA_ENV }} + - name: Update Deployment run: | - .github/scripts/deploy.sh ${{ env.DATA_ENV }} + .github/scripts/deploy.sh ${{ env.DATA_ENV }} diff --git a/.swcrc b/.swcrc new file mode 100644 index 0000000..fc98541 --- /dev/null +++ b/.swcrc @@ -0,0 +1,13 @@ +{ + "jsc": { + "target": "es2022" + }, + "env": { + "targets": { + "chrome": "91", + "firefox": "90", + "safari": "14.1", + "edge": "91" + } + } +} \ No newline at end of file diff --git a/app/(pages)/about/page.tsx b/app/(pages)/about/page.tsx index 74b8379..0ca9535 100644 --- a/app/(pages)/about/page.tsx +++ b/app/(pages)/about/page.tsx @@ -34,9 +34,9 @@ export default async function AboutPage() {
-

+

Our Mission -

+ As Privacy Stewards of Ethereum (PSE), our mission is to deliver privacy to the Ethereum ecosystem.
diff --git a/app/(pages)/devcon-7/page.tsx b/app/(pages)/devcon-7/page.tsx deleted file mode 100644 index 9d3af20..0000000 --- a/app/(pages)/devcon-7/page.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React from "react" -import { Metadata } from "next" - -import { Devcon7Booths } from "./sections/Devcon7Booths" -import { Devcon7Header } from "./sections/Devcon7Header" -import { Devcon7Section } from "./sections/Devcon7Section" - -import { Devcon7Slider } from "./sections/Devcon7Slider" - -export const metadata: Metadata = { - title: "Devcon 7", - description: "PSE x Devcon 7 Southeast Asia", - openGraph: { - images: [ - { - url: "/devcon-7-cover.png", - width: 1200, - height: 630, - }, - ], - }, -} - -export default async function DevconPage() { - return ( - <> -
-
- - -
- -
- -
-
- - ) -} diff --git a/app/(pages)/devcon-7/sections/Devcon7Booths.tsx b/app/(pages)/devcon-7/sections/Devcon7Booths.tsx deleted file mode 100644 index 526eea5..0000000 --- a/app/(pages)/devcon-7/sections/Devcon7Booths.tsx +++ /dev/null @@ -1,76 +0,0 @@ -import Image from "next/image" -import Link from "next/link" - -import { AppContent } from "@/components/ui/app-content" -import { Icons } from "@/components/icons" -import { booths } from "@/content/events/devcon-7" - -export const Devcon7Booths = () => { - return ( - -
-

- {`We're excited to connect and collaborate on building meaningful tools - with cryptography.`} -

-
- {booths?.map((booth, index) => { - return ( -
-
- {`booth -
-
- - BOOTH - - - {booth?.title} - - - {booth?.description} - {booth?.learMore && ( - - {`${booth.learMore.description}: `}{" "} - - {booth?.learMore?.label} - - - )} - -
-
- - - {booth?.date} - -
-
- - - {booth?.location} - -
-
-
-
- ) - })} -
-
-
- ) -} diff --git a/app/(pages)/devcon-7/sections/Devcon7Header.tsx b/app/(pages)/devcon-7/sections/Devcon7Header.tsx deleted file mode 100644 index 46b9636..0000000 --- a/app/(pages)/devcon-7/sections/Devcon7Header.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import Image from "next/image" - -export const Devcon7Header = () => { - return ( -
- Devcon 7 Banner - Devcon 7 Banner -
- ) -} diff --git a/app/(pages)/devcon-7/sections/Devcon7Section.tsx b/app/(pages)/devcon-7/sections/Devcon7Section.tsx deleted file mode 100644 index 525d41b..0000000 --- a/app/(pages)/devcon-7/sections/Devcon7Section.tsx +++ /dev/null @@ -1,180 +0,0 @@ -"use client" - -import { useState } from "react" -import Link from "next/link" -import { cva } from "class-variance-authority" - -import { cn } from "@/lib/utils" -import { Icons } from "@/components/icons" -import { events } from "@/content/events/devcon-7" - -const tableSection = cva("lg:grid lg:grid-cols-[200px_1fr_160px_20px] lg:gap-8") -const tableSectionTitle = cva( - "text-anakiwa-500 text-base lg:text-xs font-sans leading-5 tracking-[2.5px] uppercase font-bold lg:pb-3" -) - -const EventCard = ({ event = {}, speakers = [], location = "" }: any) => { - const [isOpen, setIsOpen] = useState(false) - - const getYouTubeEmbedURL = (url: string) => { - const match = url.match( - /(?:youtube\.com\/(?:watch\?v=|live\/)|youtu\.be\/)([^?&]+)/ - ) - return match ? `https://www.youtube.com/embed/${match[1]}` : null - } - - return ( -
-
- - {event?.date} - -
-
-
- - - {event?.time} - -
-
- - - {location} - -
-
- {speakers?.map((speaker: any, index: number) => { - return ( - - {speaker.label} - - ) - })} -
-
-
-
-
-
- - {event?.title} - - -
-
- - {event?.description} - -
- {event?.youtubeLink && ( -