-
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.
feat: Update home page layout and add featured guides card
- Changed "Featured Resources" to "Explore Top Resources" on home page - Added a new section for "Learn the Basics" with relevant content - Included a featured guides card with highlight information - Updated button link text on home page from "Getting started" to "Learn"
- Loading branch information
Showing
4 changed files
with
107 additions
and
12 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
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,58 @@ | ||
import { FunctionSquare, Image, Layers3, List, MousePointerClick, Table } from "lucide-react" | ||
import React from "react" | ||
|
||
const guidesHighlights = [ | ||
{ | ||
title: "Creating Images", | ||
icon: <Image />, | ||
description: "Images can improve the design and the appearance of a web page.", | ||
}, | ||
{ | ||
title: "Lists", | ||
icon: <List />, | ||
description: "Lists are used to group items in a list of items.", | ||
}, | ||
{ | ||
title: "Table", | ||
icon: <Table />, | ||
description: "HTML tables allow web developers to arrange data into rows and columns.", | ||
}, | ||
{ | ||
title: "Functions", | ||
icon: <FunctionSquare />, | ||
description: "Understand how to create and use functions in JavaScript.", | ||
}, | ||
{ | ||
title: "Event Handler", | ||
icon: <MousePointerClick />, | ||
description: "Learn how event handlers trigger JavaScript actions on user interactions.", | ||
}, | ||
{ | ||
title: "Document Object Model", | ||
icon: <Layers3 />, | ||
description: "Understand how to manipulate the Document Object Model (DOM) in JavaScript.", | ||
}, | ||
] | ||
|
||
export const FeaturedGuides = () => { | ||
return ( | ||
<> | ||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 z-10"> | ||
{guidesHighlights.map((g) => { | ||
return ( | ||
<div | ||
key={g.title} | ||
className="px-6 py-12 border-r border-b" | ||
> | ||
<div className="mb-4 flex flex-row items-center gap-2 text-fd-muted-foreground"> | ||
{g.icon} | ||
<h2 className="text-sm font-medium">{g.title}</h2> | ||
</div> | ||
<span className="font-medium">{g.description}</span> | ||
</div> | ||
) | ||
})} | ||
</div> | ||
</> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.