Giter Site home page Giter Site logo

nikolovlazar / v1.nikolovlazar.com Goto Github PK

View Code? Open in Web Editor NEW
148.0 4.0 18.0 13.67 MB

V1 of my personal site. If you're looking for v2: https://github.com/nikolovlazar/nikolovlazar.com

Home Page: https://v1.nikolovlazar.com

TypeScript 95.86% CSS 0.06% JavaScript 4.08%
typescript nextjs react chakra-ui prisma planetscale airtable raindrop mdx convertkit-api

v1.nikolovlazar.com's Introduction

v1.nikolovlazar.com's People

Contributors

edikurniawan-dev avatar nikolovlazar avatar zacjones93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

v1.nikolovlazar.com's Issues

Suggestion: Add ScrollToTop Button

Since pages on posts or in general can get very long it's a bit tough to scroll up when you are midway and no footer with links is in sight ๐Ÿ˜€

/src/components/ScrollButton/index.jsx

import React from 'react';
import { BiArrowToTop } from 'react-icons/bi';
import { IconButton } from '@chakra-ui/react';

export default function ScrollButton() {
    const [showScrollToTop, setScrollToTop] = React.useState(false);

    React.useEffect(() => {
        window.addEventListener('scroll', () => {
            if (window.pageYOffset > 300) {
                setScrollToTop(true);
            } else {
                setScrollToTop(false);
            }
        });
    }, []);

    const scrollTop = () => {
        window.scrollTo({
            top: 0,
            behavior: 'smooth',
        });
    };
    
    return (
        <>
            {showScrollToTop && (
                <IconButton
                    position='fixed'
                    bottom={20}
                    right={20}
                    aria-label='back to the top'
                    variant='solid'
                    size='md'
                    onClick={scrollTop}
                    icon={<BiArrowToTop />}
                />
            )}
        </>
    );
}

Also your recreation of your personal website inspired me to do the same :)

[ Problem ] Dark Mode

ayyyy, nice to meet u!

I met a problem about your website. If I selected dark mode, and reflash page, then it will restore to light mode.

Search would not show posts if query is typed in all lowercase

Would have done the the search-query on /pages/blog/index.tsx differently since it will not show any posts if you type the title all in lowercase.

const filteredPosts = posts.filter((post) =>
  post.title.toLowerCase().includes(query.toLowerCase())
);
setDisplayPosts(filteredPosts);

Anyways beautiful site ๐Ÿ˜€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.