-
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.
Browse files
Browse the repository at this point in the history
[feat] 메인페이지
- Loading branch information
Showing
24 changed files
with
635 additions
and
206 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,33 +1,11 @@ | ||
import ContentBlock from "@/components/main/ContentBlock"; | ||
import CopyBlock from "@/components/main/CopyBlock"; | ||
import Intro from "@/components/main/Intro"; | ||
import StoryBlock from "@/components/main/StoryBlock"; | ||
import { mainPageData } from "@/lib/data"; | ||
import MainPage from "@/components/main/MainPage"; | ||
import { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Kobaco AISAC", | ||
description: "Kobaco Ai analysis System for Ad Creation", | ||
}; | ||
|
||
const MainPage = async () => { | ||
return ( | ||
<> | ||
<Intro /> | ||
<ContentBlock | ||
title={mainPageData[0].title} | ||
description={mainPageData[0].description} | ||
card={mainPageData[0].card} | ||
/> | ||
<ContentBlock | ||
title={mainPageData[1].title} | ||
description={mainPageData[1].description} | ||
card={mainPageData[1].card} | ||
/> | ||
<CopyBlock /> | ||
<StoryBlock /> | ||
</> | ||
); | ||
}; | ||
const Main = async () => <MainPage />; | ||
|
||
export default MainPage; | ||
export default Main; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { colors } from "@/styles/theme"; | ||
import { motion } from "framer-motion"; | ||
import styled from "styled-components"; | ||
|
||
export const Button = styled(motion.button)<{ | ||
bgColor: string; | ||
textColor: string; | ||
}>` | ||
display: inline-flex; | ||
padding: 0.75rem 2.5rem; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.625rem; | ||
border-radius: 2.1875rem; | ||
border: 1px solid ${colors.main}; | ||
background: ${(props) => props.bgColor}; | ||
color: ${(props) => props.textColor}; | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: normal; | ||
cursor: pointer; | ||
`; |
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,31 @@ | ||
import styled from "styled-components"; | ||
|
||
// 모달 창 뒷배경 | ||
export const SearchModalBox = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.4); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 100; | ||
`; | ||
|
||
// 모달 스타일 | ||
export const SearchModalContent = styled.div<{ | ||
width: string; | ||
height: string; | ||
}>` | ||
padding: 1.62rem; | ||
width: ${(props) => props.width}; | ||
height: ${(props) => props.height}; | ||
flex-shrink: 0; | ||
border-radius: 0.875rem; | ||
background: #1e1e1e; | ||
display: flex; | ||
flex-direction: column; | ||
z-index: 100; | ||
`; |
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
Oops, something went wrong.