diff --git a/src/components/common/ScriptItem/ScriptItem.module.scss b/src/components/common/ScriptItem/ScriptItem.module.scss new file mode 100644 index 0000000..45bf862 --- /dev/null +++ b/src/components/common/ScriptItem/ScriptItem.module.scss @@ -0,0 +1,39 @@ +@import '../../../styles/variables/colors.scss'; +@import '../../../styles/variables/fonts.scss'; + +.postItContainer { + display: flex; + flex-direction: column; + background-color: $white_FF; + width: 240px; + height: 300px; + border-radius: 8px; + box-shadow: 0px 3px 4px 0px $box-shadow_00; + padding: 10px; + margin: 20px; +} +.title { + @include SemiBold_Body_16; + color: $dark-font_33; + padding: 10px 10px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.content { + @include Regular_Sub_14; + color: $light-gray_81; + height: 200px; + padding: 3px 10px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 9; + -webkit-box-orient: vertical; + line-height: 22px; +} +.date { + @include Medium_Sub_14; + color: $light-gray_81; + padding: 10px; +} diff --git a/src/components/common/ScriptItem/ScriptItem.tsx b/src/components/common/ScriptItem/ScriptItem.tsx new file mode 100644 index 0000000..c59aeb3 --- /dev/null +++ b/src/components/common/ScriptItem/ScriptItem.tsx @@ -0,0 +1,18 @@ +import styles from './ScriptItem.module.scss'; + +interface IScriptProps { + // id: number; + title: string; + content: string; + date: string; +} +const ScriptItem = ({ title, content, date }: IScriptProps) => { + return ( +
+
{title}
+
{content}
+ {date} +
+ ); +}; +export default ScriptItem; diff --git a/src/components/common/buttons/StartBtn/StartBtn.module.scss b/src/components/common/buttons/StartBtn/StartBtn.module.scss new file mode 100644 index 0000000..4237141 --- /dev/null +++ b/src/components/common/buttons/StartBtn/StartBtn.module.scss @@ -0,0 +1,12 @@ +@import '../../../../styles/variables/colors.scss'; +@import '../../../../styles/variables/fonts.scss'; + +.startingBtn { + border-radius: 26px; + background-color: $brand-point; + cursor: pointer; + border-width: 0; + padding: 12px 24px; + @include Regular_Body_16; + color: $white_FF; +} diff --git a/src/components/common/buttons/StartBtn/StartBtn.tsx b/src/components/common/buttons/StartBtn/StartBtn.tsx new file mode 100644 index 0000000..62b1cb7 --- /dev/null +++ b/src/components/common/buttons/StartBtn/StartBtn.tsx @@ -0,0 +1,9 @@ +import styles from './StartBtn.module.scss'; + +interface ButtonProps extends React.ButtonHTMLAttributes {} + +const StartingButton = (props: ButtonProps) => { + return