-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add MatricoleGuides component and related cards #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BIA3IA
wants to merge
9
commits into
main
Choose a base branch
from
bianca/matricole-guide-utility
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dd18289
feat: add MatricoleGuides component and integrate it into MatricolePage
BIA3IA f6dcb80
feat: add inline alignment support for CardIcon component and related…
BIA3IA c31c207
feat: add CardGroup component for structured card layout in Matricole…
BIA3IA 546d137
feat: implement CardGroupHeader component and integrate into CardGrou…
BIA3IA b781808
feat: enhance CardGroupHeader layout and adjust layout for mobile
BIA3IA f2d79d5
fix: correct typos in guides descriptions and adjust section layout i…
BIA3IA ea6a95b
fix: correct icon size class usage in InlineCardMedia component
BIA3IA e9db083
feat: add href properties to resources, guides, and hub entries for i…
BIA3IA 1960c87
fix: biome
BIA3IA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,26 @@ | ||
| import { cn } from "@/lib/utils" | ||
| import { GradientIcon } from "../gradient-icon" | ||
| import type { CardGroupProps } from "./types" | ||
|
|
||
| export function CardGroupHeader({ | ||
| icon, | ||
| title, | ||
| description, | ||
| horizontal, | ||
| }: Pick<CardGroupProps, "icon" | "title" | "description" | "horizontal">) { | ||
| return ( | ||
| <div className="flex flex-col gap-6"> | ||
| <div className="flex items-center gap-3 sm:flex-col sm:items-start sm:gap-6"> | ||
| {icon && <GradientIcon icon={icon} className="h-8 w-8 sm:h-14 sm:w-14" />} | ||
| <h3 className="typo-headline-small sm:typo-headline-medium bg-linear-to-b from-blue-secondary to-blue-primary bg-clip-text text-transparent"> | ||
| {title} | ||
| </h3> | ||
| </div> | ||
| {description && ( | ||
| <p className={cn("typo-body-large w-full text-text-primary", horizontal ? "max-w-lg sm:w-47" : "max-w-lg")}> | ||
| {description} | ||
| </p> | ||
| )} | ||
| </div> | ||
| ) | ||
| } |
This file contains hidden or 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,22 @@ | ||
| import { Glass } from "@/components/glass" | ||
| import { cn } from "@/lib/utils" | ||
| import { CardGroupHeader } from "./header" | ||
| import type { CardGroupProps } from "./types" | ||
|
|
||
| export function CardGroup({ icon, title, description, children, horizontal = false, className }: CardGroupProps) { | ||
| return ( | ||
| <Glass className={cn("w-full rounded-rectangles border-white/50 bg-background-blur p-12", className)}> | ||
| {horizontal ? ( | ||
| <div className="flex flex-col gap-12 lg:flex-row lg:items-center"> | ||
| <CardGroupHeader icon={icon} title={title} description={description} horizontal /> | ||
| <div className="flex-1">{children}</div> | ||
| </div> | ||
| ) : ( | ||
| <> | ||
| <CardGroupHeader icon={icon} title={title} description={description} /> | ||
| <div className="mt-12">{children}</div> | ||
| </> | ||
| )} | ||
| </Glass> | ||
| ) | ||
| } |
This file contains hidden or 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,11 @@ | ||
| import type { ReactNode } from "react" | ||
| import type { GradientIconType } from "../gradient-icon" | ||
|
|
||
| export type CardGroupProps = { | ||
| icon?: GradientIconType | ||
| title: string | ||
| description?: string | ||
| children: ReactNode | ||
| horizontal?: boolean | ||
| className?: string | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
| import { cn } from "@/lib/utils" | ||
| import type { GradientIconType } from "../gradient-icon" | ||
| import type { ResponsiveCardSize } from "./types" | ||
| import { getIconSizeClasses, getInlineContainerClasses } from "./utils" | ||
|
|
||
| export function InlineCardMedia({ icon: Icon, size }: { icon: GradientIconType; size: ResponsiveCardSize }) { | ||
| return ( | ||
| <div | ||
| className={cn( | ||
| "flex shrink-0 items-center justify-center rounded-lg bg-blue-tertiary", | ||
| getInlineContainerClasses(size) | ||
| )} | ||
| > | ||
| <Icon className={cn(getIconSizeClasses("inline"), "text-text-primary")} /> | ||
| </div> | ||
| ) | ||
| } | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.