추억소환 코딩 패키지

이지훈·2021년 9월 11일
0

항해 시작 전 스파르타코딩 홈페이지를 보러갔다가 이벤트를 하고있길래
항해 하시는 분들에게도 알리고 나도 시작했다 호호~

먼저 사진은 학생 때로 돌아가고 싶기도 하고 그 당시가 아마 긴 인생은 아니지만(ㅋㅋㅋ)
행복 고점이었던 때라 그 시절 사진으로 택했다.


그 때가 좋았지..

아무튼!

내용을 쉽게 알려주셔서 막힘 없이 진행했다.
그래서 그런지 강의 중간중간 사진을 못 찍었다 ㅠ


완주를 축하해주신다.
2등 이었던 것...


여러분 코딩 재밌습니다
타자를 치면 눈 앞에 펼쳐지는게 신비하이 그래요..
코딩하세요!

본인 코드

<!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>
    <meta property="og:title" content="학생회 X 대천"/>
    <meta property="og:description" content="꽃이 지고 나서야 봄인줄 알았습니다.."/>
    <meta property="og:image" content="이벤트3.jpg"/>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap" rel="stylesheet">
<style>
    * {
        font-family: 'Gowun Dodum', sans-serif;
    }
    .mytitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}
    .btn {
    width: 300px;
    height: 40px;
    border: 2px solid #e8344e;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    color:#e8344e;
    font-weight: bold;
    border-radius: 150px;
}
    .btn:hover {
    color: white;
    background-color: #e8344e;
}
    .box{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 1000px;            
    
    margin: 40px auto 0 auto;
    
}
    .map {
    width: 500px;
    height: 500px;
    margin-right: 30px;
    border-radius: 20px;
}
    .story {
    width: 450px;
    height: 500px;
}   
    .img{
        width: 450px;
        height: 300px;
        background-image: url('이벤트3.jpg');
        background-position: center;
        background-size: cover;
        border-radius: 20px;
    }
    .story > h2 {
        margin: 20px 0 0 0;
        color: black;
    }
    .story > h3 {
        margin: 5px 0 0 0;
        font-size: 16px;
        color: gray;
        font-weight: normal;
    }
    .story > p {
        line-height: 24px;
    }
    @media screen and (max-width: 640px) {  
        .h1 {
            font-size: 20px;
        }
        .box { 
            flex-direction: column;
            width: 100%;
        }
        .map {
            width: 100%;
            height: 200px;
            margin: 0;
        }
        .story {
            margin-top: 20px;
            margin-bottom: 20px;
            width: 100%;
            height: auto;
        }
        .img {
            width: 100%;
            height: 200px;
        }
    }
</style>
</head>
<body>
    <div class="mytitle">
        <h1>나의 추억거리를 공유합니다</h1>
        <a class="btn" href="http://spartacodingclub.shop/free/202105/exhibition">추억은 방울방울</a>
    </div>
    <div class="box">
        <div class="map" id="map"></div>
        <div class="story">
            <div class="img"></div>
            <h2>대천 어느 한 바닷가</h2>
            <h3>충남 보령시 신흑동</h3>
            <p>
                2019년 봄, 15대 학생회 첫 LT
                마스크도 안 꼈고 인원제한도 없던 그 시절
                사진 재질이 청춘 영화에서 나올 법한 느낌 비슷하이 그르네..
                만들면서 학생 때가 좋았지 하며 다시 한 번 회상해본다.
            </p>
        </div>
    </div>
    <script type="text/javascript" src="https://dapi.kakao.com/v2/maps/sdk.js?appkey=535068688f1a8bca1c21a9445ede0a89"></script>
    <script>
        var markerPosition = new kakao.maps.LatLng(36.305550328344225, 126.51603252378416)
        var mapContainer = document.getElementById('map'), // 지도를 표시할 div  
            mapOption = { 
                center: markerPosition, // 지도의 중심좌표
                level: 3 // 지도의 확대 레벨
            };

        var map = new kakao.maps.Map(mapContainer, mapOption); // 지도를 생성합니다

        var imageSrc = "https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/2021_05_free_parents/sparta-marker.png"; 
        var imageSize = new kakao.maps.Size(65, 86); 
        var markerImage = new kakao.maps.MarkerImage(imageSrc, imageSize); 
        
        var marker = new kakao.maps.Marker({
            map: map,
            position: markerPosition,
            image : markerImage
        });

    </script>
</body>
</html>
profile
기록!

0개의 댓글