-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from route06inc/implement-post-unorder-list
feat: Implement UnOrderList component
- Loading branch information
Showing
8 changed files
with
102 additions
and
6 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
3 changes: 1 addition & 2 deletions
3
frontend/apps/service-site/src/features/posts/components/OrderList/OrderList.module.css
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
34 changes: 34 additions & 0 deletions
34
frontend/apps/service-site/src/features/posts/components/UnOrderList/UnOrderList.module.css
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,34 @@ | ||
.ul { | ||
padding-left: var(--spacing-3, 12px); | ||
font-size: var(--font-size-6, 16px); | ||
line-height: 160%; | ||
} | ||
|
||
.ul li { | ||
margin-top: var(--space-2, 16px); | ||
color: var(--global-body-text); | ||
font-weight: 400; | ||
padding-left: var(--spacing-3, 12px); | ||
position: relative; | ||
} | ||
|
||
.ul li::before { | ||
content: ''; | ||
background: var(--overlay-40); | ||
display: block; | ||
height: 1px; | ||
width: 16px; | ||
position: absolute; | ||
left: calc(-1 * var(--spacing-3, 12px)); | ||
top: 13px; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.ul { | ||
font-size: var(--font-size-5, 14px); | ||
} | ||
|
||
.ul li::before { | ||
top: 11px; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
frontend/apps/service-site/src/features/posts/components/UnOrderList/UnOrderList.stories.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,43 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import { UnOrderList } from '.' | ||
|
||
const StoryComponent = () => { | ||
return ( | ||
<UnOrderList> | ||
<li> | ||
The importance of no-code platforms cannot be overstated. They are | ||
breaking down barriers to entry, enabling individuals and businesses of | ||
all sizes to innovate and solve problems with custom software solutions. | ||
Here’s why the no-code revolution is so significant | ||
</li> | ||
<li> | ||
The importance of no-code platforms cannot be overstated. They are | ||
breaking down barriers to entry, enabling individuals and businesses of | ||
all sizes to innovate and solve problems with custom software solutions. | ||
Here’s why the no-code revolution is so significant | ||
</li> | ||
<li> | ||
The importance of no-code platforms cannot be overstated. They are | ||
breaking down barriers to entry, enabling individuals and businesses of | ||
all sizes to innovate and solve problems with custom software solutions. | ||
Here’s why the no-code revolution is so significant | ||
</li> | ||
<li> | ||
The importance of no-code platforms cannot be overstated. They are | ||
breaking down barriers to entry, enabling individuals and businesses of | ||
all sizes to innovate and solve problems with custom software solutions. | ||
Here’s why the no-code revolution is so significant | ||
</li> | ||
</UnOrderList> | ||
) | ||
} | ||
|
||
const meta = { | ||
component: StoryComponent, | ||
} satisfies Meta<typeof StoryComponent> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = {} |
10 changes: 10 additions & 0 deletions
10
frontend/apps/service-site/src/features/posts/components/UnOrderList/UnOrderList.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,10 @@ | ||
import type { PropsWithChildren } from 'react' | ||
import styles from './UnOrderList.module.css' | ||
|
||
export const UnOrderList = ({ children, ...props }: PropsWithChildren) => { | ||
return ( | ||
<ul {...props} className={styles.ul}> | ||
{children} | ||
</ul> | ||
) | ||
} |
1 change: 1 addition & 0 deletions
1
frontend/apps/service-site/src/features/posts/components/UnOrderList/index.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 @@ | ||
export * from './UnOrderList' |
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