-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: page container layout, feature options added
- Loading branch information
1 parent
153ddfc
commit 23ddc9e
Showing
7 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
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,15 +1,17 @@ | ||
import PageContent from "@/components/layouts/page-content"; | ||
import DashboardFeatureList from "@/components/sections/dashboard-features-list"; | ||
import DashboardRecentActivity from "@/components/sections/dashboard-recent-activity"; | ||
import TopicSuggestions from "@/components/sections/topic-suggestions"; | ||
import StatusAlert from "@/components/ui/status-alert"; | ||
|
||
const Dashboard: React.FunctionComponent = () => { | ||
return ( | ||
<div className="dashboard"> | ||
<DashboardFeatureList /> | ||
<DashboardRecentActivity /> | ||
<TopicSuggestions /> | ||
</div> | ||
<PageContent> | ||
<div className="dashboard grid grid-cols-1 gap-20"> | ||
<DashboardFeatureList /> | ||
{/* <DashboardRecentActivity /> */} | ||
{/* <TopicSuggestions /> */} | ||
</div> | ||
</PageContent> | ||
) | ||
} | ||
export default Dashboard; |
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
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,15 @@ | ||
import { cn } from "@/lib/utils" | ||
|
||
const PageContent: React.FunctionComponent<React.HTMLAttributes<HTMLDivElement>> = ({ | ||
className, | ||
children, | ||
...props | ||
}) => { | ||
return ( | ||
<div className={cn("page-content my-10", className)} {...props}> | ||
{children} | ||
</div> | ||
) | ||
}; | ||
|
||
export default PageContent; |
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,8 +1,43 @@ | ||
import ViewContainer from "@/components/layouts/view-container"; | ||
import FeatureOption from "@/components/ui/feature-option"; | ||
import { Video } from "lucide-react"; | ||
|
||
const FeatureList: Array<FeatureOptionInterface> = [ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yashsehgal
Author
Owner
|
||
{ | ||
featureName: "Video Interview", | ||
icon: <Video /> | ||
}, | ||
{ | ||
featureName: "ATS Resume Review", | ||
}, | ||
{ | ||
featureName: "Topic Based Q/A" | ||
}, | ||
{ | ||
featureName: "Mock Aptitude" | ||
}, | ||
{ | ||
featureName: "Behavioural Rounds" | ||
}, | ||
] | ||
|
||
const DashboardFeatureList: React.FunctionComponent = () => { | ||
return ( | ||
<section className="dashboard-features-list"> | ||
{"DashboardFeatureList"} | ||
<ViewContainer> | ||
<h3 className="text-lg font-semibold"> | ||
{"Start new activity"} | ||
</h3> | ||
<div className="features-list-container mt-3 flex flex-row gap-4 overflow-x-scroll hide-scrollbar"> | ||
{FeatureList.map((featureItem, featureIndex) => ( | ||
<FeatureOption | ||
featureName={featureItem.featureName} | ||
icon={featureItem.icon} | ||
key={featureIndex} | ||
/> | ||
))} | ||
</div> | ||
</ViewContainer> | ||
</section> | ||
) | ||
} | ||
|
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,23 @@ | ||
import { cn } from "@/lib/utils" | ||
import Link from "next/link" | ||
|
||
const FeatureOption: React.FunctionComponent<FeatureOptionInterface> = ({ | ||
featureName, | ||
icon, | ||
className, | ||
...props | ||
}) => { | ||
return ( | ||
<Link href={""}> | ||
<div | ||
className={cn("relative w-[240px] h-[140px] rounded-2xl border border-transparent bg-neutral-800 text-neutral-50 shadow hover:shadow-md transition-all")} | ||
{...props} | ||
> | ||
{icon && <div className="absolute icon-wrapper top-4 right-4">{icon}</div>} | ||
{<p className="absolute font-medium text-lg bottom-4 left-4">{featureName}</p>} | ||
</div> | ||
</Link> | ||
) | ||
} | ||
|
||
export default FeatureOption; |
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,10 @@ | ||
|
||
declare interface FeatureOptionInterface extends React.HTMLAttributes<HTMLDivElement> { | ||
featureName: "Video Interview" | ||
| "ATS Resume Review" | ||
| "Topic Based Q/A" | ||
| "Mock Aptitude" | ||
| "Behavioural Rounds" | ||
; | ||
icon?: React.ReactNode; | ||
}; |
since this data of FeatureList is always going to be static, can we add it in the common folder instead of writing here?