In this article, we will create a stunning bento-like portfolio like this and deploy it to GitHub Pages so that you can share it with the world.
So, are you ready to create yours?
1️⃣.. 2️⃣.. 3️⃣.. Let's go ?
Grab your laptop, open up your IDE and start crafting ?
Here is my bento ?
It's built using React, Typescript, framer-motion and tailwind CSS.
Here is the original reveal bento grid code by @tomisloading
hover.dev Reveal Bento
I got inspiration from the component, customized it, and deployed it to GitHub Pages.
Here's how you can create such bento in 4 easy steps:
Step 1️⃣
Step 2️⃣
Step 3️⃣
Step 4️⃣
We can use the gh-pages package to deploy the bento.
Here is a step-by-step guide for deployment:
Create Repository ?
Add React App Code ➕
Edit the homepage Key in package.json ✏️
"homepage": "https://username.github.io/"
or
"homepage": "https://username.github.io/bento"
Change Remote Repository ?
git remote add origin https://github.com/username/repository-name.git
Push React App ⬆️
npm run build npm run deploy
Configure GitHub Pages ⚙️
This will deploy your Bento to GitHub Pages.
That’s a wrap! You’ve now built and deployed a custom bento portfolio to GitHub Pages – great job! ??
Don't forget to share your bento portfolio in the comments below and on social media – it’s a great way to get noticed! ?
The above is the detailed content of Deploy a bento to GitHub Pages. For more information, please follow other related articles on the PHP Chinese website!