Skip to content

Commit

Permalink
feat: hash 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
danah-kim committed Jan 18, 2025
1 parent b2c8b41 commit 6ad7d5e
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 41 deletions.
32 changes: 32 additions & 0 deletions src/components/molecules/Block/Block.styles.ts
Original file line number Diff line number Diff line change
@@ -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
})}
`;
28 changes: 28 additions & 0 deletions src/components/molecules/Block/Block.tsx
Original file line number Diff line number Diff line change
@@ -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<HashBlockProps>) {
return (
<StyledBlock>
<TitleWrapper>
<Title>{title}</Title>
<Divider />
</TitleWrapper>
<Typography display="flex" flexDirection="column" gap={2} pt={2} pb={2}>
{description}
{children}
</Typography>
</StyledBlock>
);
}

export default Block;
3 changes: 3 additions & 0 deletions src/components/molecules/Block/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Block from "./Block";

export default Block;
35 changes: 14 additions & 21 deletions src/pages/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -29,10 +29,9 @@ function PrivacyPage() {
Information Collected by the Service
</Typography>
<Box display="flex" flexDirection="column" gap={3} mt={2}>
<HashBlock
<Block
title="Reminder Information"
description={`The Service collects reminder information from the device with the user's consent. The collected information is used within the device to provide the following features of the Service and is not stored on external servers managed by the Service Provider.`}
to="/privacy#reminder-information"
>
<ul>
<li>Display and edit reminders</li>
Expand All @@ -52,11 +51,10 @@ function PrivacyPage() {
iCloud Reminder Apple Privacy Policy(opens new window)
</Button>
</Link>
</HashBlock>
<HashBlock
</Block>
<Block
title="Calendar and Event Information"
description={`The Service collects calendar information (event information) from the device with the user's consent. The collected information is used within the device to provide the following features of the Service and is not stored on external servers managed by the Service Provider.`}
to="/privacy#calendar-and-event-information"
>
<ul>
<li>Display and edit calendars</li>
Expand Down Expand Up @@ -95,33 +93,30 @@ function PrivacyPage() {
</Button>
</Link>
</Box>
</HashBlock>
<HashBlock
</Block>
<Block
title="Contact Information"
description={`The Service collects contact information (thumbnail photos, display names) from the device with the user's consent. The collected information is used within the device to provide the following features of the Service and is not stored on external servers managed by the Service Provider.`}
to="/privacy#contact-information"
>
<ul>
<li>Display thumbnail photos and display names of event attendees</li>
<li>Display thumbnail photos for birthday events</li>
</ul>
</HashBlock>
<HashBlock
</Block>
<Block
title="Feedback and Inquiry Information"
description="When the user contacts the Service Provider for feedback or inquiries about the Service, the following information may be collected. The collected information is used to respond to inquiries and improve the Service."
to="/privacy#feedback-and-inquiry-information"
>
<ul>
<li>Name</li>
<li>Email address</li>
<li>Inquiry details</li>
<li>Screenshots and other images</li>
</ul>
</HashBlock>
<HashBlock
</Block>
<Block
title="Usage Data"
description="The Service collects the following usage data upon the commencement of Service use. The collected information is used to improve the Service."
to="/privacy#usage-data"
>
<ul>
<li>
Expand Down Expand Up @@ -156,11 +151,10 @@ function PrivacyPage() {
Google Calenda Google Privacy Policy(opens new window)
</Button>
</Link>
</HashBlock>
<HashBlock
</Block>
<Block
title="Information for Ad Delivery"
description={`The Service collects advertising identifiers (IDFA) with the user's consent. The collected information is used for ad delivery.`}
to="/privacy#information-for-ad-delivery"
>
<div>
The Service uses third-party advertising services. These advertising service providers
Expand All @@ -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.
</div>
</HashBlock>
<HashBlock
</Block>
<Block
title="Contact"
description="For opinions, questions, complaints, or other inquiries regarding the handling of user information related to the privacy policy of the Service, please contact us using the email(support@case-d.com)."
to="/privacy#contact"
/>
</Box>
</GeneralLayout>
Expand Down
33 changes: 13 additions & 20 deletions src/pages/terms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -29,15 +29,14 @@ function TermsPage() {
"service provider").`}
</Typography>
<Box display="flex" flexDirection="column" gap={3} mt={4}>
<HashBlock
<Block
title="General"
description={
"By using this service, you are deemed to have agreed to this agreement. Please be sure to\n" +
" read these Terms before using this service."
"read these Terms before using this service."
}
to="/terms#general"
/>
<HashBlock title="Disclaimer" to="/terms#disclaimer">
<Block title="Disclaimer">
<ul>
<li>
{`Preparation of equipment and network environment to operate this application shall be
Expand Down Expand Up @@ -69,16 +68,14 @@ function TermsPage() {
paid services
</li>
</ul>
</HashBlock>
<HashBlock
</Block>
<Block
title="Usage Fees"
description="This application shall be basically free of charge."
to="/terms#usage-fees"
/>
<HashBlock
<Block
title="Prohibited matter"
description="When using this service, the user shall not perform the following acts."
to="/terms#prohibited-matter"
>
<ul>
<li>Acts that violate copyrights, portrait rights, honor rights, privacy, etc.</li>
Expand Down Expand Up @@ -112,23 +109,21 @@ function TermsPage() {
<li>Acts that impose a load more than necessary on the target equipment</li>
<li>Other acts that the service provider deems inappropriate</li>
</ul>
</HashBlock>
<HashBlock
</Block>
<Block
title="Change, Suspension, Termination of Service"
description={
"The service provider may change, suspend, or terminate part or all of the service at any\n" +
" time for any reason without prior notice to the user."
}
to="/terms#change-suspension-termination-of-service"
/>
<HashBlock
<Block
title="Privacy policy"
description={
"User privacy information and personal information will be handled appropriately in\n" +
" accordance with the privacy policy. By using this service, you agree to our privacy\n" +
" policy."
}
to="/terms#privacy-policy"
>
<Link to="/privacy">
<Button
Expand All @@ -139,16 +134,14 @@ function TermsPage() {
Privacy policy
</Button>
</Link>
</HashBlock>
<HashBlock
</Block>
<Block
title="Changes to Terms of Use"
description="The service provider may revise these Terms without obtaining the User's prior consent, and the User shall consent to this. The revised Terms of Use shall take effect from the time they are posted on this service."
to="/terms#change-to-terms-of-use"
/>
<HashBlock
<Block
title="Contact"
description="If you have any comments, questions, complaints, or other inquiries regarding the handling of user information regarding the terms of use of this service, please contact us using the email(support@case-d.com)."
to="/terms#contact"
/>
</Box>
</GeneralLayout>
Expand Down

0 comments on commit 6ad7d5e

Please sign in to comment.