- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from 'react'; | |
export default function useLocalStorage(key, initialValue) { | |
const [item, setInnerValue] = useState(() => { | |
try { | |
return window.localStorage.getItem(key) | |
? JSON.parse(window.localStorage.getItem(key)) | |
: initialValue; | |
} catch (error) { | |
return initialValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* useScroll React custom hook | |
* Usage: | |
* const { scrollX, scrollY, scrollDirection } = useScroll(); | |
*/ | |
import { useState, useEffect } from "react"; | |
export function useScroll() { | |
const [lastScrollTop, setLastScrollTop] = useState(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { useScrollData } from "scroll-data-hook"; | |
const Scroll = () => { | |
const { | |
scrolling, | |
time, | |
speed, | |
direction, | |
position, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
import { useIntersection } from "react-use"; | |
export const IntersectionContext = React.createContext({ inView: true }); | |
export const IntersectionObserver = ({ | |
children, | |
reset = false // if value set to true - observed element will reappear every time it shows up on the screen | |
}) => { | |
const [inView, setInView] = useState(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react"; | |
import { Link } from "react-router-dom"; | |
import Typewriter from "typewriter-effect"; | |
import { TimelineMax } from "gsap"; | |
//import component | |
import FixedItems from "./FixedItems"; | |
import { gsap } from "gsap"; | |
import { CSSPlugin } from "gsap/CSSPlugin"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosting": { | |
"public": "build", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites" : [{ | |
"source" : "**", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); | |
:root { | |
--primary-transition: 0.25s ease-in-out; | |
--fast-transition: 0.1s ease-in; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: Random human svg : https://avatars.dicebear.com/api/human/<randomstring>.svg | |
2: unsplash random image: https://unsplash.it/500/500 |
OlderNewer