https://github.com/sudo-self/jessejesse.xyz
pnpm i && pnpm run build
https://github.com/sudo-self/jessejesse.xyz
Last synced: 9 months ago
JSON representation
pnpm i && pnpm run build
- Host: GitHub
- URL: https://github.com/sudo-self/jessejesse.xyz
- Owner: sudo-self
- License: mit
- Created: 2024-09-10T21:59:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T01:08:32.000Z (over 1 year ago)
- Last Synced: 2025-01-24T14:46:13.195Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://JesseJesse.com
- Size: 1.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
### [JesseJesse.com](https://JesseJesse.com)
A personal website made with nextJS Tailwind Firebase Vercel and Cloudflare DNS

#### install
`git clone https://github.com/sudo-self/JesseJesse.xyz.git`
`cd JesseJesse.xyz`
`pmpm i`
`pnpm run dev`
see `env.example`
Firebase Guestbook Rules Example
```
{
"rules": {
".read": true,
".write": "auth != null"
}
}
```
Github OAuth Firebase Redirect URI
```
https://.firebaseapp.com/__/auth/handler
```
pnpm i react-dom-confetti
```
const triggerConfetti = () => {
setConfettiActive(true);
setTimeout(() => {
setConfettiActive(false);
}, 4000);
}
```
Display Current Time JSX
```
const getCurrentTime = () => {
const now = new Date();
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
return `${hours}:${minutes}`;
};
const [currentTime, setCurrentTime] = useState(getCurrentTime());
```
incriment page view count +1
```
const incrementViewCount = async () => {
try {
const countRef = firebase.database().ref("viewCount");
await countRef.transaction((currentCount) => {
return (currentCount || 0) + 1;
});
} catch (error) {
console.error("Error incrementing view count:", error);
}
};
```
Firebase console --> Auth --> Settings --> Authorized domains --> (yourdomain.xyz)