Updated for Matrix

Corrected copy to clipboard
This commit is contained in:
Ludoviko 2022-01-09 21:08:34 +00:00
parent b45268b2c5
commit 06cc898770
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
10 changed files with 18 additions and 7 deletions

7
.Dockerignore Normal file
View file

@ -0,0 +1,7 @@
/node_modules
/.vscode
/.vercel
/.next
/.gitignore
/docker.sh
/build_number

Binary file not shown.

View file

@ -28,6 +28,7 @@ RUN adduser -S nextjs -u 1001
# You only need to copy next.config.js if you are NOT using the default configuration # You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=builder /app/next.config.js ./ COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/next-i18next.config.js ./
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules

View file

@ -1 +1 @@
2 4

View file

@ -11,6 +11,7 @@
"desc": "Learn Swedish on Babbel (referral link)" "desc": "Learn Swedish on Babbel (referral link)"
}, },
"discord": "Join our community Discord server to discuss all things Young Royals", "discord": "Join our community Discord server to discuss all things Young Royals",
"reddit": "Join the community subreddit to discuss Young Royals" "reddit": "Join the community subreddit to discuss Young Royals",
"matrix": "Join our Matrix space to discuss all things Young Royals"
} }
} }

View file

@ -11,6 +11,7 @@
"desc": "Lernu Sveda sur Babbel (referenco ligilon)" "desc": "Lernu Sveda sur Babbel (referenco ligilon)"
}, },
"discord": "Aliĝu al nia Komunuma Discord-Servilo por diskuti ĉiujn Young Royals", "discord": "Aliĝu al nia Komunuma Discord-Servilo por diskuti ĉiujn Young Royals",
"reddit": "Aliĝu al la komunumo subreddit diskuti Young Royals" "reddit": "Aliĝu al la komunumo subreddit diskuti Young Royals",
"matrix": "Aliĝu al la Young Royals Matrix-spaco por diskuti ĉiujn Young Royals"
} }
} }

View file

@ -11,6 +11,7 @@
"desc": "Aprende sueco en Babbel (enlace de referencia)" "desc": "Aprende sueco en Babbel (enlace de referencia)"
}, },
"discord": "Únase a nuestro servidor de Discord de la comunidad para discutir sobre Young Royals", "discord": "Únase a nuestro servidor de Discord de la comunidad para discutir sobre Young Royals",
"reddit": "Únase al subreddit de la comunidad para discutir sobre Young Royals" "reddit": "Únase al subreddit de la comunidad para discutir sobre Young Royals",
"matrix": "Únase a nuestro espacio Matrix de la comunidad para discutir sobre Young Royals"
} }
} }

1
next-env.d.ts vendored
View file

@ -1,5 +1,4 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
// NOTE: This file should not be edited // NOTE: This file should not be edited

View file

@ -27,7 +27,7 @@ export default function BirthdaysPage() {
dateFormat="dd/MM" /> dateFormat="dd/MM" />
<Heading>Command to set your birthday: </Heading> <Heading>Command to set your birthday: </Heading>
<Paragraph>{`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}</Paragraph> <Paragraph>{`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}</Paragraph>
<CopyToClipboard onCopy={() => setCopied("Copied!")} text={`bd!setup ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}> <CopyToClipboard onCopy={() => setCopied("Copied!")} text={`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}>
<button className="mx-4 px-4 dark:text-gray-300 dark:bg-gray-500 bg-white">{copied}</button> <button className="mx-4 px-4 dark:text-gray-300 dark:bg-gray-500 bg-white">{copied}</button>
</CopyToClipboard> </CopyToClipboard>
</div> </div>

View file

@ -35,7 +35,8 @@ export default function Home() {
<LinkCard link="https://vannerba.st/watch" title={`${t('watch.title')}`} sub={t('watch.desc')}/> <LinkCard link="https://vannerba.st/watch" title={`${t('watch.title')}`} sub={t('watch.desc')}/>
<LinkCard link="https://vannerba.st/discord" title={`Discord`} sub={t('discord')}/> <LinkCard link="https://vannerba.st/discord" title={`Discord`} sub={t('discord')}/>
<LinkCard link="https://vannerba.st/reddit" title={`Reddit`} sub={t('reddit')}/> <LinkCard link="https://vannerba.st/reddit" title={`Reddit`} sub={t('reddit')}/>
<LinkCard link="https://vannerba.st/learn" title={t('learn.title')} sub={t('learn.desc')}/> <LinkCard link="https://vannerba.st/learn" title={t('learn.title')} sub={t('learn.desc')} />
<LinkCard link="https://vannerba.st/matrix" title={`Matrix`} sub={t('matrix')} />
</div> </div>
</main> </main>
</div> </div>