Skip to content

Commit

Permalink
update: Add Article Header
Browse files Browse the repository at this point in the history
  • Loading branch information
jaemin-s committed Nov 27, 2024
1 parent e992c4d commit 6639bdd
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 28 deletions.
5 changes: 5 additions & 0 deletions app/domain/entities/text.entity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface TextProps {
str: string;
color?: string;
}

30 changes: 2 additions & 28 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
import ParallaxContainer from "./presentation/component/ParallaxContainer";
import MainScreen from "./presentation/screen/MainScreen";

export default function Home() {
return (
<div className="bg-gray-600 w-screen h-screen overflow-y-scroll">
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-01.webp"}>
<article className="h-screen flex items-center justify-center text-2xl">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
</article>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-02.webp"}>
<article className="h-screen flex items-center justify-center text-2xl">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
</article>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-03.webp"}>
<article className="h-screen flex items-center justify-center text-2xl">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
</article>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-04.webp"}>
<article className="h-screen flex items-center justify-center text-2xl">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
</article>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-05.webp"}>
<article className="h-screen flex items-center justify-center text-2xl">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
</article>
</ParallaxContainer>
</div>
<MainScreen/>
);
}
14 changes: 14 additions & 0 deletions app/presentation/component/article/AboutMe.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import ArticleHeader from '../text/ArticleHeader'

type Props = {}

const AboutMe = (props: Props) => {
return (
<div className='h-full flex flex-col items-center justify-center'>
<ArticleHeader str='ABOUT ME'/>
</div>
)
}

export default AboutMe
14 changes: 14 additions & 0 deletions app/presentation/component/article/Career.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import ArticleHeader from '../text/ArticleHeader'

type Props = {}

const Career = (props: Props) => {
return (
<div className='h-full flex flex-col items-center justify-center'>
<ArticleHeader str='CAREER'/>
</div>
)
}

export default Career
14 changes: 14 additions & 0 deletions app/presentation/component/article/Projects.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import ArticleHeader from '../text/ArticleHeader'

type Props = {}

const Projects = (props: Props) => {
return (
<div className='h-full flex flex-col items-center justify-center'>
<ArticleHeader str='PROJECTS'/>
</div>
)
}

export default Projects
18 changes: 18 additions & 0 deletions app/presentation/component/article/SimpleIntroduce.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react'
import ArticleHeader from '../text/ArticleHeader'

type Props = {}

const SimpleIntroduce = (props: Props) => {

const str = `SIM JAE MIN`
const str2 = `안녕하세요\n지속적인 성장과 혁신을 추구하는\n열정적인 프론트엔드 개발자\n심재민입니다`
return (
<div className='h-full flex flex-col items-center justify-center'>
<ArticleHeader str={str} color='#ffeeaa'/>
<p className='whitespace-pre-wrap text-center text-2xl'>{str2}</p>
</div>
)
}

export default SimpleIntroduce
14 changes: 14 additions & 0 deletions app/presentation/component/article/Skills.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import ArticleHeader from '../text/ArticleHeader'

type Props = {}

const Skills = (props: Props) => {
return (
<div className='h-full flex flex-col items-center justify-center'>
<ArticleHeader str='SKILLS' color='#000000'/>
</div>
)
}

export default Skills
10 changes: 10 additions & 0 deletions app/presentation/component/text/ArticleHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { TextProps } from '@/app/domain/entities/text.entity'
import React from 'react'

const ArticleHeader = ({ str, color = '#ffffff' }: TextProps) => {
return (
<p className='font-extrabold text-8xl whitespace-pre-wrap text-center pb-4 border-b-4 mb-8' style={{ color }}>{str}</p>
)
}

export default ArticleHeader
33 changes: 33 additions & 0 deletions app/presentation/screen/MainScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react'
import ParallaxContainer from '../component/ParallaxContainer'
import SimpleIntroduce from '../component/article/SimpleIntroduce'
import AboutMe from '../component/article/AboutMe'
import Skills from '../component/article/Skills'
import Projects from '../component/article/Projects'
import Career from '../component/article/Career'

type Props = {}

const MainScreen = (props: Props) => {
return (
<div className="bg-gray-600 w-screen h-screen overflow-y-scroll">
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-01.webp"}>
<SimpleIntroduce/>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-02.webp"}>
<AboutMe/>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-03.webp"}>
<Skills/>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-04.webp"}>
<Career/>
</ParallaxContainer>
<ParallaxContainer imgSrc={"https://github.com/jaemin-s/jaemin-s/raw/refs/heads/main/image/bg-05.webp"}>
<Projects/>
</ParallaxContainer>
</div>
)
}

export default MainScreen

0 comments on commit 6639bdd

Please sign in to comment.