From 6ad7d5e38343716788a6ad6866b41ee532ace7d5 Mon Sep 17 00:00:00 2001 From: Danah Date: Sun, 19 Jan 2025 00:06:11 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20hash=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../molecules/Block/Block.styles.ts | 32 +++++++++++++++++ src/components/molecules/Block/Block.tsx | 28 +++++++++++++++ src/components/molecules/Block/index.ts | 3 ++ src/pages/privacy/page.tsx | 35 ++++++++----------- src/pages/terms/page.tsx | 33 +++++++---------- 5 files changed, 90 insertions(+), 41 deletions(-) create mode 100644 src/components/molecules/Block/Block.styles.ts create mode 100644 src/components/molecules/Block/Block.tsx create mode 100644 src/components/molecules/Block/index.ts diff --git a/src/components/molecules/Block/Block.styles.ts b/src/components/molecules/Block/Block.styles.ts new file mode 100644 index 0000000..1c90335 --- /dev/null +++ b/src/components/molecules/Block/Block.styles.ts @@ -0,0 +1,32 @@ +import styled from "basic-styled"; + +export const StyledBlock = styled.div` + & ul { + list-style: disc; + padding: ${({ theme: { spacing } }) => `0 ${spacing(2.5)}px`}; + & li { + padding: ${({ theme: { spacing } }) => `${spacing(0.5)}px 0`}; + & ul { + list-style: square; + } + } + } +`; + +export const TitleWrapper = styled.div``; + +export const Title = styled.div` + position: relative; + margin-bottom: ${({ theme: { spacing } }) => `${spacing(1)}px`}; + max-width: fit-content; + + ${({ + theme: { + typography: { headline } + } + }) => ({ + fontSize: headline.small.size, + fontWeight: 700, + letterSpacing: headline.small.letterSpacing + })} +`; diff --git a/src/components/molecules/Block/Block.tsx b/src/components/molecules/Block/Block.tsx new file mode 100644 index 0000000..5270a7c --- /dev/null +++ b/src/components/molecules/Block/Block.tsx @@ -0,0 +1,28 @@ +import { PropsWithChildren, ReactNode } from "react"; + +import Divider from "@components/atoms/Divider"; +import Typography from "@components/atoms/Typography"; + +import { StyledBlock, Title, TitleWrapper } from "./Block.styles"; + +interface HashBlockProps { + title: ReactNode; + description?: ReactNode; +} + +function Block({ children, title, description }: PropsWithChildren) { + return ( + + + {title} + + + + {description} + {children} + + + ); +} + +export default Block; diff --git a/src/components/molecules/Block/index.ts b/src/components/molecules/Block/index.ts new file mode 100644 index 0000000..9927c89 --- /dev/null +++ b/src/components/molecules/Block/index.ts @@ -0,0 +1,3 @@ +import Block from "./Block"; + +export default Block; diff --git a/src/pages/privacy/page.tsx b/src/pages/privacy/page.tsx index beed155..d4c0ef0 100644 --- a/src/pages/privacy/page.tsx +++ b/src/pages/privacy/page.tsx @@ -7,8 +7,8 @@ import Button from "@components/atoms/Button"; import Icon from "@components/atoms/Icon"; import Typography from "@components/atoms/Typography"; import GeneralLayout from "@components/layouts/GeneralLayout"; +import Block from "@components/molecules/Block"; import Footer from "@components/molecules/Footer"; -import HashBlock from "@components/molecules/HashBlock"; import Header from "@components/molecules/Header"; import { GoogleFirebase } from "@utils/google-firebase"; @@ -29,10 +29,9 @@ function PrivacyPage() { Information Collected by the Service -
  • Display and edit reminders
  • @@ -52,11 +51,10 @@ function PrivacyPage() { iCloud Reminder Apple Privacy Policy(opens new window) - - +
    • Display and edit calendars
    • @@ -95,21 +93,19 @@ function PrivacyPage() { - - +
      • Display thumbnail photos and display names of event attendees
      • Display thumbnail photos for birthday events
      -
      - +
      • Name
      • @@ -117,11 +113,10 @@ function PrivacyPage() {
      • Inquiry details
      • Screenshots and other images
      -
      - +
      • @@ -156,11 +151,10 @@ function PrivacyPage() { Google Calenda Google Privacy Policy(opens new window) - - +
        The Service uses third-party advertising services. These advertising service providers @@ -180,11 +174,10 @@ function PrivacyPage() { By using Plandy of the Paid subscription services, ad delivery will be stopped, and information for the purpose of ad delivery will no longer be collected.
        -
        - + diff --git a/src/pages/terms/page.tsx b/src/pages/terms/page.tsx index f901943..f309023 100644 --- a/src/pages/terms/page.tsx +++ b/src/pages/terms/page.tsx @@ -7,8 +7,8 @@ import Button from "@components/atoms/Button"; import Icon from "@components/atoms/Icon"; import Typography from "@components/atoms/Typography"; import GeneralLayout from "@components/layouts/GeneralLayout"; +import Block from "@components/molecules/Block"; import Footer from "@components/molecules/Footer"; -import HashBlock from "@components/molecules/HashBlock"; import Header from "@components/molecules/Header"; import { GoogleFirebase } from "@utils/google-firebase"; @@ -29,15 +29,14 @@ function TermsPage() { "service provider").`} - - +
        • {`Preparation of equipment and network environment to operate this application shall be @@ -69,16 +68,14 @@ function TermsPage() { paid services
        -
        - + -
        • Acts that violate copyrights, portrait rights, honor rights, privacy, etc.
        • @@ -112,23 +109,21 @@ function TermsPage() {
        • Acts that impose a load more than necessary on the target equipment
        • Other acts that the service provider deems inappropriate
        -
        - + -