Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/pages/home/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const App: React.FC = () => {
return (
<div className="flex flex-col min-h-screen bg-fixed-bg">
<Header toggleMobileMenu={toggleMobileMenu} />
<MobileMenu isVisible={mobileMenuVisible} />
<MobileMenu isVisible={mobileMenuVisible} onNavigate={() => setMobileMenuVisible(false)} />
<main className="flex-1 p-6">
<div className="flex gap-6">
{/* sidebar */}
Expand All @@ -84,7 +84,7 @@ const App: React.FC = () => {
/>

{/* task */}
<div className="flex-1 bg-surface rounded-lg shadow-lg p-4 flex flex-col">
<div id="tasks" className="flex-1 bg-surface rounded-lg shadow-lg p-4 flex flex-col">
<div className="flex items-center justify-between border-b pb-3 mb-4">
<h2 className="text-lg font-bold text-textPrimary">Tarefas</h2>
{selectedProject && (
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/pages/home/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Bars3Icon } from '@heroicons/react/24/outline';
import AnimatedLogo from '../Utils/AnimatedLogo';
import ProfileDropdown from './ProfileDropdown';

interface HeaderProps {
toggleMobileMenu: () => void;
Expand All @@ -16,11 +15,8 @@ const Header: React.FC<HeaderProps> = ({ toggleMobileMenu }) => {
<button onClick={toggleMobileMenu} className="md:hidden text-gray-500 focus:outline-none">
<Bars3Icon className="h-6 w-6" />
</button>
<h1 className="text-2xl font-semibold text-gray-800">Zenith</h1>
<h1 className="text-2xl font-semibold text-gray-800">DevTaskManager</h1>
</div>
<nav className="hidden md:flex items-center space-x-6">
<ProfileDropdown />
</nav>
</div>
</header>
);
Expand Down
83 changes: 0 additions & 83 deletions frontend/src/pages/home/components/Header/ProfileDropdown.tsx

This file was deleted.

27 changes: 22 additions & 5 deletions frontend/src/pages/home/components/MobileMenu/MobileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,35 @@ import React from 'react';

interface MobileMenuProps {
isVisible: boolean;
onNavigate: () => void;
}

const MobileMenu: React.FC<MobileMenuProps> = ({ isVisible }) => {
const sections = [
{ id: 'projects', label: 'Projetos' },
{ id: 'tasks', label: 'Tarefas' },
];

const MobileMenu: React.FC<MobileMenuProps> = ({ isVisible, onNavigate }) => {
if (!isVisible) return null;

const goTo = (id: string) => {
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
onNavigate();
};

return (
<nav className="bg-white shadow-md md:hidden">
<div className="px-6 py-4 space-y-2">
<a href="#" className="block text-gray-600 hover:text-primary">Projetos</a>
<a href="#" className="block text-gray-600 hover:text-primary">Tarefas</a>
<a href="#" className="block text-gray-600 hover:text-primary">Calendário</a>
<a href="#" className="block text-gray-600 hover:text-primary">Relatórios</a>
{sections.map((section) => (
<button
key={section.id}
type="button"
onClick={() => goTo(section.id)}
className="block w-full text-left text-gray-600 hover:text-primary"
>
{section.label}
</button>
))}
</div>
</nav>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/home/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Sidebar: React.FC<SidebarProps> = ({
onDeleteProject,
}) => {
return (
<aside className="w-64 bg-surface border-r border-gray-200 rounded-lg shadow-md">
<aside id="projects" className="w-64 bg-surface border-r border-gray-200 rounded-lg shadow-md">
<div className="px-6 py-6">
<div className="flex items-center justify-between border-b pb-3 mb-4">
<h2 className="text-lg font-bold text-textPrimary">Projetos</h2>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title>Zenith</title>
<title>DevTaskManager</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body class="h-full">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtaskmanager",
"description": "DevTaskManager is a browser extension designed specifically for developers. With this tool, you can efficiently organize your daily tasks, both in project-specific forums and on-the-go. The extension offers robust task management functionality and calendar integration, making it a perfect solution for streamlining workflows and meeting deadlines.",
"description": "Chrome extension to manage development projects and tasks from the browser, backed by an ASP.NET Core 8 REST API.",
"private": true,
"version": "1.0.0",
"type": "module",
Expand Down
Loading