Skip to content

Commit

Permalink
♻️ trying something
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Dec 17, 2023
1 parent 16c4fc2 commit fad723b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 🚀 UI deployment

on:
push:
branches: ["main"]
branches: ["main", "gh-pages-deployment"]
workflow_dispatch:

# Allows only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
Expand Down
16 changes: 9 additions & 7 deletions interface/src/components/layout/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NextHead from "next/head";
import { SITE_DESCRIPTION, SITE_NAME } from "@/lib/constants";
import { SITE_DESCRIPTION, SITE_NAME, SITE_IMAGE } from "@/lib/constants";

interface Props {
title?: string;
Expand All @@ -20,33 +20,35 @@ export const Head = (props: Props) => {
<meta property="og:title" content="CreateX" />
<meta
property="og:description"
content="A Trustless, Universal Contract Deployer"
content={SITE_DESCRIPTION}
/>
<meta property="og:image:type" content="image/png" />
<meta
property="og:image"
content="https://github-production-user-asset-6210df.s3.amazonaws.com/25297591/272914952-38a5989c-0113-427d-9158-47646971b7d8.png"
content={SITE_IMAGE}
/>
<meta
property="og:image:secure_url"
content="https://github-production-user-asset-6210df.s3.amazonaws.com/25297591/272914952-38a5989c-0113-427d-9158-47646971b7d8.png"
content={SITE_IMAGE}
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="514" />
<meta
property="og:image:alt"
content="CreateXA Trustless, Universal Contract Deployer"
content={SITE_NAME + "" + SITE_DESCRIPTION}
/>

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@pcaversaccio" />
<meta name="twitter:title" content="CreateX" />
<meta name="twitter:description" content={SITE_NAME + " – " + SITE_DESCRIPTION} />
<meta
property="twitter:image"
content="https://github-production-user-asset-6210df.s3.amazonaws.com/25297591/272914952-38a5989c-0113-427d-9158-47646971b7d8.png"
content={SITE_IMAGE}
/>
<meta
property="twitter:image:alt"
content="CreateXA Trustless, Universal Contract Deployer"
content={SITE_NAME + "" + SITE_DESCRIPTION}
/>
</NextHead>
);
Expand Down
1 change: 1 addition & 0 deletions interface/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const COMPANY_NAME = "pcaversaccio";
export const COMPANY_URL = "https://pcaversaccio.com";
export const GITHUB_URL = "https://github.com/pcaversaccio/createx";
export const X_URL = "https://twitter.com/pcaversaccio";
export const SITE_IMAGE = "https://github-production-user-asset-6210df.s3.amazonaws.com/25297591/272914952-38a5989c-0113-427d-9158-47646971b7d8.png"

export const CREATEX_ADDRESS = "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed";
export const CREATEX_ABI = [
Expand Down
6 changes: 3 additions & 3 deletions interface/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { Layout } from "@/components/layout/Layout";
import "@/styles/globals.css";

function App({ Component, pageProps }: AppProps) {
const [mounted, setMounted] = React.useState(false);
React.useEffect(() => setMounted(true), []);
// const [mounted, setMounted] = React.useState(false);
// React.useEffect(() => setMounted(true), []);
return (
<ThemeProvider attribute="class">
{mounted && (
{(
<Layout>
<>
<Component {...pageProps} />
Expand Down

0 comments on commit fad723b

Please sign in to comment.