docs: update readme.md
This commit is contained in:
parent
84e6345936
commit
e605b2e975
1 changed files with 25 additions and 15 deletions
40
README.md
40
README.md
|
|
@ -11,7 +11,8 @@ This is my debut project utilizing Next.js, a portfolio website featuring four p
|
|||
* **Smooth Animation:** Smooth page scroll and scroll trigger animation.
|
||||
* **Smooth Page Transition:** Smooth page transition with prefetching feature of next js.
|
||||
* **Dynamic Data:** Read the project data from JSON file instead of directly implemented the data.
|
||||
* **Intelliticks chat widget:** Chat with owner of the web realtime
|
||||
* **Intelliticks chat widget:** Chat with owner of the web realtime.
|
||||
* **Spotify realtime widget:** Show what song youre playing in this web.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
@ -43,21 +44,30 @@ This is my debut project utilizing Next.js, a portfolio website featuring four p
|
|||
6. Update the Intelliticks chat widget script in components/Chat.jsx, with your own
|
||||
|
||||
```javascript
|
||||
"use client"
|
||||
import { useEffect } from "react";
|
||||
|
||||
// Component for Intelliticks chat widget
|
||||
const Chat = () => {
|
||||
useEffect(() => {
|
||||
// Replace the Intelliticks script here
|
||||
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default Chat;
|
||||
"use client"
|
||||
import { useEffect } from "react";
|
||||
|
||||
// Component for Intelliticks chat widget
|
||||
const Chat = () => {
|
||||
useEffect(() => {
|
||||
// Replace the Intelliticks script here
|
||||
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default Chat;
|
||||
```
|
||||
7. Set env.local by copying env.example and fill the variable
|
||||
|
||||
```
|
||||
SPOTIFY_CLIENT_ID=
|
||||
SPOTIFY_CLIENT_SECRET=
|
||||
SPOTIFY_REFRESH_TOKEN=
|
||||
```
|
||||
|
||||
for further reference on how to setup spotify api you can check this [link ](https://leerob.io/blog/spotify-api-nextjs "leerob blog")
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue