Skip to content

Commit

Permalink
style: mobile responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
alsiam committed Dec 15, 2023
1 parent d99ecc4 commit 7ea783a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/portfolio/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { NextPage } from "next";
const Portfolio: NextPage = () => {
return (
<div>
&lt;&gt;
<section className="portfolio section" id="portfolio">
<div className="container">
<div className="row">
Expand Down
2 changes: 1 addition & 1 deletion src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import NextTopLoader from "nextjs-toploader";

const Providers = ({ children }: { children: React.ReactNode }) => {
return (
<ThemeProvider enableSystem={true}>
<ThemeProvider enableSystem>
<NextTopLoader />
{children}
</ThemeProvider>
Expand Down
13 changes: 11 additions & 2 deletions src/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
"use client";

import Link from "next/link";
import { useState } from "react";

const Sidebar = () => {
const [open, setOpen] = useState(false);

const handleOpen = () => {
setOpen(!open);
};

return (
<aside className="aside">
<div className="nav-toggler">
<aside className={`aside ${open ? "open" : ""}`}>
<div onClick={handleOpen} className="nav-toggler">
<span />
</div>
<div className="aside-inner">
Expand Down

0 comments on commit 7ea783a

Please sign in to comment.