This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[a4paper,10pt]{article} | |
| \usepackage[margin=0.5in,nofoot]{geometry} | |
| \usepackage{fontawesome5} | |
| \usepackage{hyperref} | |
| \usepackage{titlesec} | |
| \usepackage{xcolor} | |
| \hypersetup{ | |
| colorlinks=true, | |
| linkcolor=blue, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use client'; | |
| import Script from 'next/script'; | |
| import { useEffect, useRef, useState } from 'react'; | |
| const scriptLink = 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit'; | |
| type TurnstileRenderParameters = Turnstile.RenderParameters; | |
| export default function Captcha( |
This gist was partially inspired by this blog about Next.js Vercel CI with GitHub actions.
An easy way to deploy and host websites for free is to use GitHub pages. If you've deployed a Next.js project to GitHub pages, you may have used a GitHub action similar to this in the past to automatically redeploy the site when a new commit is pushed:
# gh-pages-merge.yml
name: Deploy to gh-pages on merge
on:
push: