diff --git a/.github/.k8s/.gitignore b/.github/.k8s/.gitignore new file mode 100644 index 0000000..4a424df --- /dev/null +++ b/.github/.k8s/.gitignore @@ -0,0 +1 @@ +secret.yaml diff --git a/.github/.k8s/deploy.yaml b/.github/.k8s/deploy.yaml index 707876f..eb626e7 100644 --- a/.github/.k8s/deploy.yaml +++ b/.github/.k8s/deploy.yaml @@ -3,7 +3,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: ens-page - namespace: default + namespace: ens-page spec: replicas: 1 selector: @@ -21,3 +21,6 @@ spec: ports: - containerPort: 3000 resources: {} + envFrom: + - secretRef: + name: iyk-api-key diff --git a/.github/.k8s/ingress.yaml b/.github/.k8s/ingress.yaml index 33fd49e..9dfb327 100644 --- a/.github/.k8s/ingress.yaml +++ b/.github/.k8s/ingress.yaml @@ -3,7 +3,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ens-page - namespace: default + namespace: ens-page annotations: cert-manager.io/cluster-issuer: le-http spec: diff --git a/.github/.k8s/svc.yaml b/.github/.k8s/svc.yaml index 3fbfaa5..247f85b 100644 --- a/.github/.k8s/svc.yaml +++ b/.github/.k8s/svc.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: name: ens-page - namespace: default + namespace: ens-page spec: ports: - port: 3000 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ae67ff5 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +rollout: + kubectl rollout restart -n ens-page deployments/ens-page + +status: + kubectl get pods -n ens-page -o wide diff --git a/components/POAPModal.tsx b/components/POAPModal.tsx index 0cce5a3..867bb82 100644 --- a/components/POAPModal.tsx +++ b/components/POAPModal.tsx @@ -1,6 +1,7 @@ 'use client'; -import { FC } from 'react'; +import { FC, useState } from 'react'; +import { FiX } from 'react-icons/fi'; import { IYKRefResponse as IYKReferenceResponse } from '../hooks/useIYKRef'; import { POAPMetadata } from '../hooks/usePOAPData'; @@ -10,10 +11,19 @@ export const POAPModal: FC<{ name: string; metadata: POAPMetadata; }> = ({ data, name, metadata }) => { + const [dismissed, setDismissed] = useState(false); + + if (dismissed) return; + return (