GithubHelp home page GithubHelp logo

onurhan1337 / my-website Goto Github PK

View Code? Open in Web Editor NEW
61.0 3.0 3.0 2.81 MB

✨ My personal website built with Next.js, Tailwind, TypeScript, Upstash and Vercel.

Home Page: https://onurhan.dev

JavaScript 0.40% CSS 9.36% TypeScript 90.23%
next-mdx nextjs tailwindcss upstash vercel contentlayer shadcn-ui portfolio personal-website

my-website's Introduction

my-website's People

Contributors

onurhan1337 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

Watchers

 avatar  avatar

my-website's Issues

Dynamic code block theme bug

The code for dynamically changing the code block theme works as follows. I follow the data-theme content and make the relevant part hide or block.

function togglePreStyles(theme: string) {
  document.querySelectorAll("pre")?.forEach((el) => {
    switch (el.getAttribute("data-theme")) {
      case "light":
        theme === "dark"
          ? el.classList.add("hidden")
          : el.classList.remove("hidden");
        break;
      case "dark":
        theme === "dark"
          ? el.classList.remove("hidden")
          : el.classList.add("hidden");
        break;
      default:
        el.setAttribute("data-theme", "dark");
    }
  });
}

However, there is a point I missed here. If the user does not change a theme when he first enters the site, both are visible because that change is undetected. Whatever happens here, a piece of code must be added to hide the theme feature that was not selected in the first step.

Header position shifts on about page in Brave browser

@karimzade who uses brave browser with 15.6 inch screen and 1920x1080 size sent me the video below.

I did not encounter a similar problem when I tested it on Safari or other browsers at the same screen sizes. It is probably a problem with brave or another extension.

lv_0_20230614113305.mp4

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.