나만의 일기장 CSS 사용해서 만들기(실습)

2023. 3. 8. 08:54·Front/HTML+CSS

index.js

import {
  Page,
  Wrapper,
  Title,
  Content,
  Text1,
  Text2,
  Text3,
  Text4,
  Subtitle,
  DiaryDate,
} from "@/styles/my_diary/mydiary";

export default function MyDiary() {
  return (
    <Page>
      <Wrapper>
        <Title>나만의 일기장</Title>
        <Content>
          나만의 일기장 입니다! <br />
          원하는 색과 사이즈로 일기장을 커스텀 해보세요.
          <br />
          <Text1> Have a Good Day.😊 </Text1>
        </Content>

        <Subtitle>📌 쭈꾸미의 일기</Subtitle>
        <Content>
          오늘은 <Text2>김치찜</Text2>을 먹었다. <Text3>🧀치즈 계란말이</Text3>
          도 같이 나오는 세트였다.
          <br />
          맛있어서 정신없이 먹다보니 배가 너무 불러서 힘들었다.
          <br />
          내일은<Text4> 과식하지 말아야겠다!!</Text4>
          <br />
        </Content>
        <DiaryDate>
          2023년 3월 8일
          <br />
          날씨 맑음☀️
        </DiaryDate>
      </Wrapper>
    </Page>
  );
}

mydiary.js

import styled from "@emotion/styled";

//박스
export const Page = styled.div`
  width: 100%;
  height: 100vh;
  background: #eeeeee;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
`;

export const Wrapper = styled.div`
  width: 620px;
  padding: 35px 30px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 10px;
`;

export const Content = styled.div`
  width: 100%;
  padding-top: 20px;
  padding-bottom: 25px;
`;

//글씨
export const Title = styled.div`
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 33px;
  font-weight: bold;
  padding-top: 9px;
  padding-bottom: 10px;
  background-color: orange;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
`;

export const Subtitle = styled.div`
  width: 100%;
  background-color: #eeeeee;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
`;

export const Text1 = styled.div`
  padding-top: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: underline;
  color: orange;
  display: block;
`;

export const Text2 = styled.text`
  color: red;
  font-weight: bold;
`;

export const Text3 = styled.text`
  color: orange;
  font-weight: bold;
`;

export const Text4 = styled.text`
  color: blue;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
`;

export const DiaryDate = styled.p`
  color: #919191;
  font-size: 14px;
  text-align: right;
`;
저작자표시 (새창열림)

'Front > HTML+CSS' 카테고리의 다른 글

[CSS] keyframes animation 실습  (0) 2023.03.08
[ HTML ] div태그  (0) 2021.11.10
[ HTML ] HTML 기본  (0) 2021.11.10
'Front/HTML+CSS' 카테고리의 다른 글
  • [CSS] keyframes animation 실습
  • [ HTML ] div태그
  • [ HTML ] HTML 기본
soyeon26
soyeon26
  • soyeon26
    개발 일지
    soyeon26
  • 전체
    오늘
    어제
    • 분류 전체보기 (107)
      • Web (22)
        • Web (1)
        • HTTP (0)
      • Language (29)
        • Java Script (3)
        • Type Srcipt (1)
        • Java (25)
      • Front (19)
        • HTML+CSS (4)
        • React (15)
      • Back (41)
        • Spring(Springboot) (9)
        • JSP (21)
        • Database (5)
        • NestJS (6)
      • Devops (6)
        • Docker (1)
        • Git & SVN (5)
      • App (7)
        • Android (7)
      • IT 정보 (3)
  • 블로그 메뉴

    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    javascript
    자바스크립트set
    과학기술인 번호 발급
    springboot
    강의 후기
    프론트엔드
    강의후기
    React
    김영한
    과학기술인 등록
    sql강의
    csr과ssr의 차이
    Spring
    과학기술인 등록번호 발급
    백엔드
    스프링부트
    Next.js 필요성
    데이터베이스 강의
    java의 정석
    과학기술인등록번호 조회
    SSR
    Next.js
    중복제거
    csrvsssr
    서블릿
    React Next.js
    인프런
    과학기술인번호 조회
    SQL강의 추천
    Java
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
soyeon26
나만의 일기장 CSS 사용해서 만들기(실습)
상단으로

티스토리툴바