-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Monthly stats page new function (#127)
Co-authored-by: benjaminneoh <benjaminneoh6343@gmail.com>
- Loading branch information
1 parent
ace3d10
commit 6c1d3da
Showing
8 changed files
with
111 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
'use client'; | ||
|
||
import Image from 'next/image'; | ||
import CountUp from 'react-countup'; | ||
export default function Monthlystats() { | ||
const mockTasks = [ | ||
{ | ||
id: 1, | ||
title: 'Complete project report', | ||
description: 'Finalize the project report and submit it to the manager.', | ||
isDone: false, | ||
createdAt: '2024-07-20T08:30:00Z', | ||
updatedAt: '2024-07-20T08:30:00Z', | ||
}, | ||
{ | ||
id: 2, | ||
title: 'Meeting with the team', | ||
description: | ||
'Discuss the project milestones and deadlines with the team.', | ||
isDone: false, | ||
createdAt: '2024-07-21T10:00:00Z', | ||
updatedAt: '2024-07-21T10:00:00Z', | ||
}, | ||
]; | ||
|
||
const taskCount = mockTasks.length; | ||
return ( | ||
<> | ||
<div className="flex flex-col gap-5 md:items-center md:p-10"> | ||
<div className="mt-1"> | ||
<Image | ||
src="/assets/images/profileImage.png" | ||
alt="an incredable image" | ||
width={150} | ||
height={150} | ||
/> | ||
</div> | ||
<div> | ||
<p className="pl-20 font-arial font-bold text-[40px] leading-[100px] tracking-[-0.41px] text-center text-secondary"> | ||
You planned{' '} | ||
<span className="font-arial font-bold text-[120px] leading-[100px] tracking-[-0.41px] text-center text-secondary"> | ||
<CountUp end={taskCount} />{' '} | ||
</span> | ||
tasks this month | ||
</p> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { H1, H3 } from '@/components/ui/heading-with-anchor'; | ||
import Image from "next/image"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex flex-col gap-5 p-12 md:items-center md:p-28"> | ||
<H1 className="heading-primary"> | ||
Blotz | ||
<span className="heading-secondary">Task</span> | ||
</H1> | ||
|
||
<H3 className="text-lg font-light text-muted-foreground sm:text-xl"> | ||
Designed to help users efficiently organize and track their tasks | ||
providing functionality for task creation, management, and completion | ||
tracking. | ||
</H3> | ||
<p className="mb-6 font-arial text-[32px] font-bold leading-[48px] tracking-[-0.41px] text-center text-secondary"> | ||
Welcome to the new age note taking web | ||
</p> | ||
<Image | ||
src="/assets/images/homePageNewPicture.png" | ||
alt="an incredable image" | ||
width={600} | ||
height={400} | ||
/> | ||
</main> | ||
); | ||
} |
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