Skip to content
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

create foundations + layout stories #2966

Merged
merged 43 commits into from
Nov 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e75c216
create foundations + layout stories
dreamwasp Nov 1, 2024
077dceb
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 1, 2024
6537339
start foundations
dreamwasp Nov 4, 2024
03b9002
start retooling componentheader
dreamwasp Nov 4, 2024
55a5dcb
component header tweak
dreamwasp Nov 4, 2024
6d85bc3
start restructure of header components
dreamwasp Nov 4, 2024
7cee2cc
TOC + Theme working, need DataTable + code background color
dreamwasp Nov 4, 2024
2d96f2a
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 4, 2024
826963c
working on color mode - need to fix text color
dreamwasp Nov 4, 2024
497d63b
Merge branch 'cass-gm-842' of ssh://github.com/Codecademy/gamut into …
dreamwasp Nov 4, 2024
7f75bca
revert test
dreamwasp Nov 5, 2024
9b69962
Theme page sorted, need to fix ColorMode
dreamwasp Nov 5, 2024
cb3c78a
colormode sorted
dreamwasp Nov 6, 2024
d85461f
colormode sorted
dreamwasp Nov 6, 2024
b1f2136
start type fix + what to do about blocks
dreamwasp Nov 6, 2024
be4e7ca
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 6, 2024
7032817
LayoutGrid + content Container
dreamwasp Nov 7, 2024
2ab0c47
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 7, 2024
5053d9b
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 7, 2024
f20113c
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 7, 2024
927e21a
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 7, 2024
4abf62e
LayoutGrid done
dreamwasp Nov 7, 2024
86f15c9
Merge branch 'cass-gm-842' of ssh://github.com/Codecademy/gamut into …
dreamwasp Nov 7, 2024
02bcda0
start flexbox, need to look into sandbox stuff
dreamwasp Nov 8, 2024
2c044d5
gridbox + flexbox are good, just need to tweak
dreamwasp Nov 8, 2024
76ace8d
Merge branch 'cass-sb-8-layout', remote-tracking branch 'origin' into…
dreamwasp Nov 8, 2024
be7ec47
tweaks to headers
dreamwasp Nov 8, 2024
a77ce8e
lots of style tweaks + deduplications
dreamwasp Nov 8, 2024
b286e5a
fix typograpth, need to fix color mode switches
dreamwasp Nov 8, 2024
af5be6e
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 11, 2024
a4d6db1
start on system stories
dreamwasp Nov 12, 2024
45ff066
unify shared elements
dreamwasp Nov 12, 2024
0693a32
add variance + fix tables
dreamwasp Nov 12, 2024
d98ca77
more tweaks to status
dreamwasp Nov 12, 2024
c8f9041
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 12, 2024
7641220
design tweaks
dreamwasp Nov 12, 2024
2759bd2
Merge branch 'cass-gm-842' of ssh://github.com/Codecademy/gamut into …
dreamwasp Nov 12, 2024
018ffc3
add hub
dreamwasp Nov 12, 2024
2e01130
more tweaks
dreamwasp Nov 12, 2024
3b3d557
Merge branch 'cass-sb-8-layout' into cass-gm-842
dreamwasp Nov 13, 2024
dce02a1
rename DataTable
dreamwasp Nov 13, 2024
37ab760
clean up of default
dreamwasp Nov 13, 2024
4e1b4c1
fix kenny tweaks!
dreamwasp Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lots of style tweaks + deduplications
dreamwasp committed Nov 8, 2024
commit a77ce8e12efd34565332620fad7666d57d0a3db7
11 changes: 11 additions & 0 deletions packages/styleguide/.storybook/components/Elements/Wrappers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Background } from '@codecademy/gamut-styles';

export const SourceWrapper: React.FC<React.PropsWithChildren> = ({
children,
}) => {
return (
<Background bg="white" borderRadius="md" px={24} py={8}>
{children}
</Background>
);
};
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import { FlexBox, Text } from '@codecademy/gamut';
import * as React from 'react';
import { ComponentHeaderProps } from './ComponentHeader';
import { ComponentSource } from '../Elements/ComponentSource';
import { SourceWrapper } from '../Elements/Wrappers';

export type AboutHeaderProps = {
title: string;
@@ -32,7 +33,11 @@ export const AboutHeader: React.FC<AboutHeaderProps> = ({
<Text variant="title-xs" mb={8}>
{subtitle}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make this subtitle section accept markdown? I've seen some existing subtitles use backticks

</Text>
{source && <ComponentSource {...source} />}
{source && (
<SourceWrapper>
<ComponentSource {...source} />
</SourceWrapper>
)}
</FlexBox>
);
};
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ import {
SourceAnchor,
sourceAnchorProps,
} from '../Elements/ComponentSource';
import { SourceWrapper } from '../Elements/Wrappers';

export type Source = { repo: string; githubLink?: string };

@@ -90,7 +91,7 @@ export const ComponentHeader: React.FC<ComponentHeaderProps> = ({
{subtitle}
</Text>
{(design?.url || storyStatus !== 'static') && (
<Background bg="white" borderRadius="md" px={24} py={8}>
<SourceWrapper>
<GridBox
gap={16}
fontWeight={700}
@@ -105,7 +106,7 @@ export const ComponentHeader: React.FC<ComponentHeaderProps> = ({
</SourceAnchor>
)}
</GridBox>
</Background>
</SourceWrapper>
)}

{design?.url && (