feat: add twitter link

This commit is contained in:
DIYgod
2022-10-13 01:53:36 +01:00
parent 2ba20cdcae
commit e9703c6712
7 changed files with 18 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@
NEXT_PUBLIC_APP_NAME=xLog
NEXT_PUBLIC_OUR_DOMAIN=localhost:3000
NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/ZzFdEkVP"
NEXT_PUBLIC_TWITTER_LINK="https://twitter.com/_xLog"
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog"
NEXT_PUBLIC_CSB_IO="https://crossbell.io"
NEXT_PUBLIC_CSB_SCAN="https://scan.crossbell.io"
+1 -1
View File
@@ -5,7 +5,7 @@
> An on-chain and open-source blogging platform for everyone.
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/ZzFdEkVP) [![build](https://img.shields.io/github/workflow/status/Crossbell-Box/xLog/Build%20&%20Deploy?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push.yml)
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/ZzFdEkVP) [![Twitter](https://img.shields.io/twitter/follow/_xLog?color=1d9bf0&logo=twitter&style=flat-square)](https://twitter.com/_xLog) [![build](https://img.shields.io/github/workflow/status/Crossbell-Box/xLog/Build%20&%20Deploy?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push.yml)
## Features
+1
View File
@@ -4,6 +4,7 @@ stringData:
NEXT_PUBLIC_APP_NAME: xlog
NEXT_PUBLIC_OUR_DOMAIN: xlog.page
NEXT_PUBLIC_DISCORD_LINK: "https://discord.gg/ZzFdEkVP"
NEXT_PUBLIC_TWITTER_LINK: "https://twitter.com/_xLog"
NEXT_PUBLIC_GITHUB_LINK: "https://github.com/Crossbell-Box/xlog"
NEXT_PUBLIC_CSB_IO: ""
NEXT_PUBLIC_CSB_SCAN: "https://scan.crossbell.io"
+1
View File
@@ -4,6 +4,7 @@ NEXT_PUBLIC_APP_NAME=APP_NEXT_PUBLIC_APP_NAME
NEXT_PUBLIC_OUR_DOMAIN=APP_NEXT_PUBLIC_OUR_DOMAIN
NEXT_PUBLIC_DISCORD_LINK=APP_NEXT_PUBLIC_DISCORD_LINK
NEXT_PUBLIC_GITHUB_LINK=APP_NEXT_PUBLIC_GITHUB_LINK
NEXT_PUBLIC_TWITTER_LINK=APP_NEXT_PUBLIC_TWITTER_LINK
NEXT_PUBLIC_CSB_IO=APP_NEXT_PUBLIC_CSB_IO
NEXT_PUBLIC_CSB_SCAN=APP_NEXT_PUBLIC_CSB_SCAN
NEXT_PUBLIC_IPFS_GATEWAY=APP_NEXT_PUBLIC_IPFS_GATEWAY
+1
View File
@@ -4,6 +4,7 @@ stringData:
NEXT_PUBLIC_APP_NAME: xLog
NEXT_PUBLIC_OUR_DOMAIN: xlog.app
NEXT_PUBLIC_DISCORD_LINK: "https://discord.gg/ZzFdEkVP"
NEXT_PUBLIC_TWITTER_LINK: "https://twitter.com/_xLog"
NEXT_PUBLIC_GITHUB_LINK: "https://github.com/Crossbell-Box/xlog"
NEXT_PUBLIC_CSB_IO: "https://crossbell.io"
NEXT_PUBLIC_CSB_SCAN: "https://scan.crossbell.io"
+12 -1
View File
@@ -1,4 +1,10 @@
import { APP_DESCRIPTION, APP_NAME, GITHUB_LINK, DISCORD_LINK } from "~/lib/env"
import {
APP_DESCRIPTION,
APP_NAME,
GITHUB_LINK,
DISCORD_LINK,
TWITTER_LINK,
} from "~/lib/env"
import { SEOHead } from "../common/SEOHead"
import { UniLink } from "../ui/UniLink"
import { ConnectButton } from "../common/ConnectButton"
@@ -67,6 +73,11 @@ export function MainLayout({
<span className="inline-block i-mdi-discord text-2xl hover:text-accent"></span>
</UniLink>
)}
{TWITTER_LINK && (
<UniLink className="flex items-center" href={TWITTER_LINK}>
<span className="inline-block i-mdi-twitter text-2xl hover:text-accent"></span>
</UniLink>
)}
</span>
<span className="align-middle">
&copy;{" "}
+1
View File
@@ -8,6 +8,7 @@ export const R2_URL = process.env.NEXT_PUBLIC_R2_URL
export const APP_DESCRIPTION = process.env.APP_DESCRIPTION
export const DISCORD_LINK = process.env.NEXT_PUBLIC_DISCORD_LINK
export const GITHUB_LINK = process.env.NEXT_PUBLIC_GITHUB_LINK
export const TWITTER_LINK = process.env.NEXT_PUBLIC_TWITTER_LINK
export const CSB_IO = process.env.NEXT_PUBLIC_CSB_IO || "https://crossbell.io"
export const CSB_SCAN =
process.env.NEXT_PUBLIC_CSB_SCAN || "https://scan.crossbell.io"