Skip to content

syofyanzuhad/freebio.dev

Repository files navigation

Hacktober Badge Star Badge Contributions

Pull Requests Badge GitHub contributors

Demo:

Screenshot 2022-08-07 at 3 03 22 AM

⚡️ Awesome Performance:

Screenshot 2022-08-07 at 3 03 22 AM

DEV Domain: freebio.dev

Visitor stats: Visitor

Screenshot from 2022-11-26 20-48-24

This is a Next.js project bootstrapped with create-next-app.

Getting Started

1. First, clone it:

git clone https://github.com/syofyanzuhad/freebio.dev.git

2. Then, install and run it locally:

npm install && npm run dev
# or
yarn && yarn dev

Open http://localhost:3000 with your browser to see the result.

Open src and You can start add your data by copy the data/default.json and edit it to data/[username].json. The page auto-updates as you edit the file.

After You send the PR, then the page will appear on freebio.dev/username

Sample json format on default.json:

{
  "username": "default",
  "name": "Syofyan Zuhad",
  "bio": "Web Artisan",
  "description": "Syofyan Zuhad - Software Engineer",
  "avatar_url": "https://github.com/syofyanzuhad.png",
  "socials": [
    {
      "name": "twitter",
      "href": "https://twitter.com/syofyan_zuhad",
      "icon": "tw"
    },
    {
      "name": "instagram",
      "href": "https://www.instagram.com/syofyan_zuhad",
      "icon": "ig"
    },
    {
      "name": "linkedin",
      "href": "https://www.linkedin.com/in/syofyan-zuhad",
      "icon": "li"
    },
    {
      "name": "telegram",
      "href": "https://t.me/syofyan_zuhad",
      "icon": "tg"
    }
  ],
  "links": [
    {
      "id": 1,
      "href": "https://github.com/syofyanzuhad/freebio.dev",
      "title": "Make your own bio"
    },
    {
      "id": 2,
      "href": "https://github.com/syofyanzuhad",
      "title": "Check me on Github"
    },
    {
      "id": 3,
      "href": "https://www.buymeacoffee.com/syofyanzuhad",
      "title": "Buy me a coffee"
    },
    {
      "id": 4,
      "href": "https://trakteer.id/syofyanzuhad/tip",
      "title": "Trakteer me"
    },
    {
      "id": 5,
      "href": "/donate",
      "title": "Donate"
    }
  ]
}

You can check your bio link page by accessing http://localhost:3000/username on your browser.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

3. Finally, send it as Pull-request to the main repo.

Stats:

Alt

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.