슬기로운 AI생활 - 집요한 PM 에릭

띵동코딩 6주차 웹 사이트 카피코딩 - 개발일지 본문

코딩공부

띵동코딩 6주차 웹 사이트 카피코딩 - 개발일지

집요한 기획자 에릭 2022. 7. 11. 22:38

청첩장 만들기 카피코딩.

 

위쪽 여백이 사라지지 않아서 한참 씨름했는데 결과를 찾지 못했다...

margin도 padding도 괜찮고 정답 코드와 다를 게 크게 없는데...

암튼 완성한 링크!

file:///C:/Users/Sangmyung%20Hong/Desktop/%EB%9D%B5%EB%8F%99%EC%BD%94%EB%94%A9/%EC%B2%AD%EC%B2%A9%EC%9E%A5/index.html

 

 

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>결혼 청첩장</title>
    <style>
        * {
            font-family: 'IBM Plex Sans KR', sans-serif;
        }


        body, h2, h3, p, a {
            font-size: 16px;
            margin: 0px;
            padding: 0px;
            text-decoration: none;
            font-weight: normal;

        }
        .wrap > h1{
            font-size: 16px;
            padding: 16px;
            color: white;
            background-color: pink;
            font-weight: 500;
        }
       

        .wrap {
            width: 350px;
            margin: auto;
            font-size: 16px;
            color: white;
            background-color: white;
            font-weight: 500;
        }

        .pic{
            color: pink;
            letter-spacing: 3px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 250px;
            margin: 30px auto;
            background-color: white;
            font-weight: normal;
        }

        .pic > h2 {
            font-size: 16px;
            margin: 0px;
            padding: 0px;
            text-decoration: none;
            font-weight: normal;
            color: pink;
            background-color: white;
        }

        .pic > img {
            width: 250px;
            border: 3px solid pink;
            margin: 10px;
        }

        .name {
            width: 200px;
            margin: auto;
            font-size: 24px;
            font-weight: 500;
            border-top: 1px solid pink;
            border-bottom: 1px solid pink;
            color: pink;
            text-align: center;
        }

        .main{
            background-color: pink;
            color: white;
            margin-top: 30px;
            margin-bottom: 30px;
            padding: 20px;
        }

        .msg{
            margin-top: 40px;
            margin-bottom: 40px;
            line-height: 30px;
        }

        .place{
            text-align: center;
        }

        .bottom{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .bottom > p{
            color: pink;
            font-weight: 500;
            margin-bottom: 10px;
            background-color: white;
        }

        .bottom > input{
            width: 250px;
            margin-bottom: 10px;
        }

        .bottom > textarea{
            width: 250px;
            height: 100px;
            margin-bottom: 10px;
        }

        .bottom > button{
            width: 150px;
            height: 40px;
            border-radius: 8px;
            border: none;
            background-color: pink;
            color: white;
            margin-bottom: 30px;
            cursor: pointer;
        }

    </style>
</head>
<body>
    <div class="wrap">
        <h1>영희와 철수의 첫 시작을 축하해주세요</h1>
    <div class="pic">
        <h2>Save The Date</h2>
        <img src="wedding.png">
        <span>12.31.SUNDAY.PM.12:30</span>
    </div>
    <div class="name">
         김영희&이철수
    </div>
    <div class="main">
        <p class = "title">INVITATION</p>
        <p class="msg">
            서로 다른 두 사람이 만나<br/>
            사랑으로 하나 되는 자리에 <br/>
            소중한 여러분들을 초대합니다. <br/>
            기쁠 때나, 슬플 때나 <br/>
            서로를 사랑으로 품으며 <br/>
            행복의 계단을 쌓아가겠습니다. <br/>
            저희의 첫 시작을 함께 해주신다면 <br/>
            감사한 마음 깊이 간직하며 잘 살겠습니다.
        </p>
        <p class="place">
            2023. 12. 31. SUN. PM 12:30<br/>
            스파르탄웨딩 르탄홀
        </p>
    </div>
    <div class="bottom">
        <p>축하메시지를 남겨주세요</p>
        <input type="text" placeholder="이름">
        <textarea placeholder="메시지를 남겨주세요"></textarea>
        <button>메시지 남기기</button>
    </div>
    </div>
</body>
</html>