forked from AOSSIE-Org/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AOSSIE-Org#294 the padding are fixed, the responsivness of the site is also imporved
- Loading branch information
1 parent
d9dd24c
commit bf09236
Showing
7 changed files
with
111 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
import clsx from 'clsx' | ||
|
||
import clsx from 'clsx'; | ||
const styles = { | ||
xs: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-4 lg:px-2', | ||
sm: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-4 lg:max-w-4xl lg:px-12', | ||
md: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-4 lg:max-w-6xl lg:px-8', | ||
lg: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-4 lg:max-w-7xl lg:px-8', | ||
} | ||
xs: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-6 lg:px-4', | ||
sm: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-6 lg:max-w-4xl lg:px-14', | ||
md: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-6 lg:max-w-6xl lg:px-10', | ||
lg: 'mx-auto px-4 sm:px-6 md:max-w-2xl md:px-6 lg:max-w-7xl lg:px-10', | ||
}; | ||
|
||
// Updated ContainerPattern component | ||
export function ContainerPattern({ size = 'sm', className, ...props }) { | ||
return <div className={clsx(styles[size], className)} {...props} /> | ||
return ( | ||
<div className={clsx(styles[size], className)} {...props} /> | ||
); | ||
} | ||
|
||
// Example usage for "Active Projects" button with custom styling | ||
export function ActiveProjectsButton() { | ||
return ( | ||
<ContainerPattern | ||
size="sm" | ||
className="custom-active-projects" | ||
> | ||
<button className="btn-active-projects"> | ||
Active Projects | ||
</button> | ||
</ContainerPattern> | ||
); | ||
} |
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
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