-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS]chore: blog layout refactor (#852)
- Loading branch information
1 parent
f68826d
commit 86d0a44
Showing
27 changed files
with
500 additions
and
372 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
7 changes: 7 additions & 0 deletions
7
packages/apps/docs/src/components/Layout/Blog/ArticleMetadataItem.tsx
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,7 @@ | ||
import { articleMetaDataItemClass } from './styles.css'; | ||
|
||
import React, { FC, PropsWithChildren } from 'react'; | ||
|
||
export const ArticleMetadataItem: FC<PropsWithChildren> = ({ children }) => ( | ||
<span className={articleMetaDataItemClass}>{children}</span> | ||
); |
This file was deleted.
Oops, something went wrong.
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
73 changes: 73 additions & 0 deletions
73
packages/apps/docs/src/components/Layout/Blog/styles.css.ts
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,73 @@ | ||
import { breakpoints, sprinkles, vars } from '@kadena/react-ui/theme'; | ||
|
||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const bottomWrapperClass = style([ | ||
sprinkles({ | ||
width: '100%', | ||
paddingTop: '$20', | ||
marginTop: '$20', | ||
}), | ||
{ | ||
borderTop: `1px solid ${vars.colors.$borderDefault}`, | ||
}, | ||
]); | ||
|
||
export const articleTopMetadataClass = style([ | ||
sprinkles({ | ||
display: 'flex', | ||
justifyContent: 'flex-start', | ||
alignItems: 'center', | ||
width: '100%', | ||
marginBottom: '$5', | ||
paddingX: 0, | ||
paddingY: '$5', | ||
}), | ||
{ | ||
borderBottom: `1px solid ${vars.colors.$borderDefault}`, | ||
opacity: '0.6', | ||
}, | ||
]); | ||
|
||
export const pageGridClass = style({ | ||
gridTemplateColumns: 'auto auto', | ||
gridTemplateAreas: ` | ||
"header header" | ||
"pageheader pageheader" | ||
"content" | ||
"footer footer" | ||
`, | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
gridTemplateColumns: '0% 5% auto 5%', | ||
|
||
gridTemplateAreas: ` | ||
"header header header header" | ||
"pageheader pageheader pageheader pageheader" | ||
". content . ." | ||
"footer footer footer footer" | ||
`, | ||
}, | ||
|
||
[`screen and ${breakpoints.xxl}`]: { | ||
gridTemplateColumns: '0% minmax(20%, auto) auto minmax(20%, auto)', | ||
gridTemplateAreas: ` | ||
"header header header header" | ||
"pageheader pageheader pageheader pageheader" | ||
". content ." | ||
"footer footer footer footer" | ||
`, | ||
}, | ||
}, | ||
}); | ||
|
||
export const articleMetaDataItemClass = style({ | ||
selectors: { | ||
'&:not(:first-of-type)::before': { | ||
content: '"•"', | ||
height: '100%', | ||
margin: vars.sizes.$3, | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
packages/apps/docs/src/components/Layout/Full/components/Aside/AsideList.tsx
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,22 @@ | ||
import { asideListClass, asideListInnerVariants } from './styles.css'; | ||
|
||
import classNames from 'classnames'; | ||
import React, { FC, ReactNode } from 'react'; | ||
|
||
interface IProps { | ||
children: ReactNode; | ||
inner?: boolean; | ||
ref?: React.MutableRefObject<HTMLUListElement | null>; | ||
} | ||
|
||
export const AsideList: FC<IProps> = ({ children, inner = false, ref }) => { | ||
const classes = classNames( | ||
asideListClass, | ||
asideListInnerVariants[inner ? 'true' : 'false'], | ||
); | ||
return ( | ||
<ul ref={ref} className={classes}> | ||
{children} | ||
</ul> | ||
); | ||
}; |
Oops, something went wrong.
86d0a44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs-storybook – ./packages/apps/docs
docs-storybook-git-main-kadena-js.vercel.app
docs-storybook-kadena-js.vercel.app
kadena-js-docs.vercel.app
86d0a44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
alpha-docs – ./packages/apps/docs
alpha-docs-kadena-js.vercel.app
docs-silk-two.vercel.app
alpha-docs-git-main-kadena-js.vercel.app
alpha-docs.kadena.io