This repository is deprecated. Please check PhotonQuantum/landingpage for the latest version.
Website: lightquantum.me
You are free to use this repo as a template for your own website. Please read License for more information.
- Name - Edit
app/(profile)/layout.tsx. - Avatar - Replace
app/(profile)/avatar.jpgwith your own avatar. Also replacepublic/favicon.ico. - Profile - Edit
app/(profile)/*/page.mdxto change the content of your profile pages. If you added or removed pages, please also modifyapp/(profile)/layout.tsxto reflect the changes in the nav bar. - Schedule - Edit
app/schedule/page.tsxto include ics urls of your schedule. - Footer - Edit
app/(profile)/layout.tsxto change the content of the footer. To credit me (and yourself) properly, you may wish to modify the footer.
Check FAQ for more information.
This site uses catppuccin as the theme.
It has multiple variants. You can switch to a different variant by modifying app/layout.tsx.
To change specific colors, please modify tailwind.config.js and app/globals.css.
Look for THEME: comments in the codebase for more information.
- Fork this repo. Modify the content in
app/(profile)folder. - Delete
app/apiandapp/admin. Remove all<Timeline />components. - Deploy your
website to Cloudflare Pages.
Please choose
next.jsas the framework, change the build command topnpx @cloudflare/next-on-pages@1, and set environment variableNODE_VERSIONto22.9.0or higher.
Run pnpm run dev.
The following routes were not configured to run with the Edge Runtime: blabla- You need to switch to edge runtime to deploy the website to cloudflare pages.
- You can do this by adding
export const runtime = "edge"toblabla/page.tsx. - If you are using MDX, please create a dummy
layout.tsxfile alongsideblabla/page.mdx. Check this for example.
- How to make text italic without being bold in MDX?
Use:it[blabla]. - How to add custom Tailwind styles to paragraphs in MDX?
Use::p[blabla]{.your-class}. - I'd like to add a line break in a paragraph, but not start a new paragraph.
Add\at the end of the line. <Image />component causes error when building.
This is a bug in next.js. I've added a workaround. All you need to do is to remove the import statement ofImagein MDX files.- How to add a new page?
- Create a new folder in
app/(profile). Addpage.mdxto the folder. - Add it to the nav bar by modifying
app/(profile)/layout.tsx.
- Create a new folder in
- I noticed you added some new syntax to MDX. How can I use them / add my own?
Check custom components inmdx-components.tsx. Also, refer to remark-directive-rehype.
All rights reserved for images, documents, slides, PDFs, MDXs, and all files under public.
The rest of the code is licensed under MIT.
You can use this repo as a template for your own website, but you must replace all the content with your own. Please also bring your own favicon and avatar.