Website: lightquantum.me
This site is now built with SolidJS. Check PhotonQuantum/landingpage-nextjs for the old next.js version.
You are free to use this repo as a template for your own website. Please read License for more information.
tl;dr Replace all content in public (except favicons) and src/assets with your own. Modify
src/routes/(profile).tsx to change the layout. Modify app/routes/(profile)/*.mdx to change the content.
- Name - Edit
src/routs/(profile).tsx. - Avatar - Replace
src/assets/images/avatar.jpgwith your own avatar. Also replacepublic/favicon.ico. You can use this website to generate favicons. - Profile - Edit
src/routes/(profile)/*.mdxto change the content of your profile pages. Beware that you need to add a small piece ofexport const metadatafor each page to get listed in the nav bar. Refer to existing pages for examples. - Footer - Edit
src/routs/(profile).tsxto change the content of 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 src/app.css.
TODO
TODO
This template is ready to be deployed to Cloudflare Pages.
If using wrangler,
pnpm run devpnpx wrangler pages deploy
If using the Cloudflare Pages UI, just connect the repo and deploy. Build command is pnpm run build and output
directory is dist.
You can also deploy it to other JAM stack providers. Don't forget to modify the server section of app.config.ts if
you decide to do so. Refer
to solidstart document for more
information.
pnpm run dev for hot-reloading development.
pnpm run build and pnpx wrangler pages dev for testing the production build.
- How to make text italic only (not bold)?
By default italic text is made bold. To make it italic only, 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. - How to add a new page?
Just add a new
mdxorjsxfile insrc/routes/(profile). Don't forget to exportmetadatafor the page to be listed in the nav bar. - I noticed you added some new syntax to MDX. How can I use them / add my own?
Checkcomponentsinsrc/app.tsx. Also, refer to remark-directive-rehype. - Page gets reloaded when I click on a link.
You need to useAfrom@solidjs/routerinstead ofatag for internal links. Refer tosrc/routes/(profile)/links.mdxfor an example.
All rights reserved for images, documents, slides, PDFs, MDXs, and all files under public and src/assets.
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.