Javascript 기초

ElegansC·2023년 1월 10일

스파르타코딩클럽

목록 보기
2/2
post-thumbnail

Javascript 기초

Javascript 기초

1) Javascript ≠ Java 아무 관련 없다
2) Javascript 문법
① 변수+기본연산
② 자료형

  • 리스트형: 순서를 지켜 가지고 있는 형태
  • 딕셔너리: 키(key)-밸류(value) 값의 묶음
    ③ 함수
    ④ 조건문
    ⑤ 반복문 이 있음
    3) 꿀팁
  • 띄워놓은 크롬의 오른쪽버튼 > 검사 > Console :띄워놓은 페이지에서 빠르게 자바스크립트를 테스트해볼 수 있게, 개발자들을 위해 만들어둔 도구. 새로고침하면 모두 사라짐

숙제 완성

국민가수 god의 팬명록 만들다!!

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
            crossorigin="anonymous"></script>
    <link href="https://fonts.googleapis.com/css2?family=Yeon+Sung&display=swap" rel="stylesheet">

    <title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
    <style>
        * {
            font-family: 'Yeon Sung', cursive;
        }

        .mytitle {
            height: 250px;
            width: 100%;

            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://mblogthumb-phinf.pstatic.net/20150215_224/tsncorpo_1423964659291SNBbG_PNG/1.png?type=w2");
            background-position: 50% -300px;
            background-size: cover;

            color: white;

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

        .mytitle > button:hover {
            border: 2px solid white;
        }

        .mypost {
            max-width: 500px;
            width: 95%;
            margin: 20px auto 0px auto;

            box-shadow: 0px 0px 3px 0px grey;
            padding: 20px;
        }

        .mybuttons {
            display: flex;
            flex-direction: row;
            justify-content: left;
            align-items: center;
            margin-top: 10px;
        }

        .card {
            max-width: 500px;
            width: 95%;
            margin: 20px auto 0px auto;

            box-shadow: 0px 0px 3px 0px grey;
            padding: 20px;
        }


    </style>

</head>



<body>
    <div class="mytitle">
        <h1>국민가수 god 팬명록</h1>


    </div>

    <div class="mypost">
        <div class="form-floating mb-3">
            <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
            <label for="floatingInput">닉네임</label>
        </div>

        <div class="form-floating">
          <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                    style="height: 100px"></textarea>
            <label for="floatingTextarea2">응원댓글</label>
        </div>

        <div class="mybuttons">
            <button type="button" class="btn btn-dark">응원남기기</button>

        </div>

    </div>

    <div class="card">
        <div class="card-body">
            <blockquote class="blockquote mb-0">
                <p>다시 뭉쳐주셔서 감동이에요.</p>
                <footer class="blockquote-footer">fan god <cite title="Source Title">@ Cyworld</cite></footer>
            </blockquote>
        </div>
    </div>
    <div class="card">
        <div class="card-body">
            <blockquote class="blockquote mb-0">
                <p>god는 이 시대 최고의 가수이다.</p>
                <footer class="blockquote-footer">HOT 토니<cite title="Source Title">@ Twitter</cite></footer>
            </blockquote>
        </div>
    </div>
    <div class="card">
        <div class="card-body">
            <blockquote class="blockquote mb-0">
                <p>쭌이 100살될 때 까지만 콘서트 하자!</p>
                <footer class="blockquote-footer">함께 나이드는 팬<cite title="Source Title">@ Blog</cite></footer>
            </blockquote>
        </div>
    </div>
</body>

</html>
profile
코딩의 "ㅋ"도 모르는 사람의 코딩입문기

0개의 댓글