_won_
wonprogrammer
_won_
์ „์ฒด ๋ฐฉ๋ฌธ์ž
์˜ค๋Š˜
์–ด์ œ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ
    • woncoding
      • TIL
      • WIL
    • source Code
      • Python
      • Programmers
      • BAEKJOON

๋ธ”๋กœ๊ทธ ๋ฉ”๋‰ด

  • ๋ฐฉ๋ช…๋ก

ํ‹ฐ์Šคํ† ๋ฆฌ

Github ยท Wonprogrammer
hELLO ยท Designed By ์ •์ƒ์šฐ.
_won_

wonprogrammer

woncoding/TIL

TIL | 8.29.์›” [Html / CSS / Javascript]

2022. 8. 29. 19:27

- Html / CSS

๐Ÿ‘‰ ๊ธฐ๋ณธ CSS
      ๋ฐฐ๊ฒฝ๊ด€๋ จ : background-color, background-image, background-size

      ์‚ฌ์ด์ฆˆ : width, height
      ํฐํŠธ : font-size, font-weight, font-famliy, color
      ๊ฐ„๊ฒฉ :margin, padding

 

1. ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์ด๋ฏธ์ง€ ์‚ฝ์ž…์‹œ

background-image: url('');
background-position: center;
background-size: cover;

 

 

2. pc ๋ฐ ๋ชจ๋ฐ”์ผ ํ™”๋ฉด ๋น„์œจ ์กฐ์ •

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

 - flex-direction : row / column ;  (ํ–‰ / ์—ด ์ •๋ ฌ์‹œ ์„ ํƒ) 

 

 

3. Button

border-radius: 50px;
border: 1px solid white;

 

 - ๋ฒ„ํŠผ์˜ ํ…Œ๋‘๋ฆฌ ๊ตด๊ณก

 - ํ…Œ๋‘๋ฆฌ ์„  ๋‘๊ป˜ (px / ์ƒ‰์ƒ ์„ ํƒ ๊ฐ€๋Šฅ)

 

 

4. hover

 ๋งˆ์šฐ์Šค ์ปค์„œ๊ฐ€ ํ•ด๋‹น ๋ณ€์ˆ˜ ์œ„์— ์˜ฌ๋ผ๊ฐ€ ์žˆ์„๋•Œ

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

์˜ˆ์‹œ ๋ฅผ ์ฐธ๊ณ ํ•˜์ž๋ฉด ๋ฒ„ํŠผ์œ„์— ๋งˆ์šฐ์Šค ์ปค์„œ๋ฅผ ์˜ฌ๋ ค๋†จ์„๋•Œ ๋ฒ„ํŠผ์˜ ํ…Œ๋‘๋ฆฌ ๋‘๊ป˜ = 2px , ์ƒ‰์ƒ = white

 

 

5. margin

margin

margin : ์ƒpx  ์šฐpx  ํ•˜px  ์ขŒpx ;  ๐Ÿ‘‰ ์‹œ๊ณ„๋ฐฉํ–ฅ ์ˆœ์„œ

px ๐Ÿ‘‰ auto / 0 / ---px ๋กœ ์„ค์ • ๊ฐ€๋Šฅ

 

 

 + ์ด๋ฏธ ์ •์˜๋œ ๊พธ๋ฉฐ์ง„ CSS = ๋ถ€ํŠธ์ŠคํŠธ๋žฉ : https://getbootstrap.com/docs/5.0/components/buttons/

 

Buttons

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

getbootstrap.com

 

 


 

- javascript 

 

1. ๋ธŒ๋ผ์šฐ์ €์˜ ๋™์ž‘

<script> ์† ํ•จ์ˆ˜ ์ •์˜ ๋ฐ ๋™์ž‘ ์กฐ๊ฑด์„ ์ ์–ด์ฃผ๊ณ , ํ•จ์ˆ˜๋ช…์„ html ๊ตฌ์กฐ์— ์ •์˜ ๐Ÿ‘‰ ํ•ด๋‹น ์กฐ๊ฑด์— ํ•ด๋‹น ํ•จ์ˆ˜ ์‹คํ–‰

function hey(){
alert('์•ˆ๋…•!');
}
<button onclick="hey()" type="button" class="btn btn-primary"> ๋ฒ„ํŠผ์„ ํด๋ฆญ </button>

๋ฒ„ํŠผ์„ ํด๋ฆญํ–ˆ์„๋•Œ ๐Ÿ‘‰ hey() ํ•จ์ˆ˜ ์‹คํ–‰

 

 

2. let

๋ณ€์ˆ˜ ์„ ์–ธ๊ณผ ๋™์ผ 

๋ฆฌ์ŠคํŠธ, ๋”•์…”๋„ˆ๋ฆฌ ๋“ฑ ์„ ์–ธ ๊ฐ€๋Šฅ

 

 

3. ๋ฐ˜๋ณต๋ฌธ

for (1. ์‹œ์ž‘์กฐ๊ฑด; 2. ๋ฐ˜๋ณต์กฐ๊ฑด; 3. ๋”ํ•˜๊ธฐ) {

       4. ๋งค๋ฒˆ์‹คํ–‰
}

i๊ฐ€ ์ฆ๊ฐ€ํ•˜๋‹ค๊ฐ€ ๋ฐ˜๋ณต์กฐ๊ฑด์— ๋งž์ง€ ์•Š์œผ๋ฉด, ๋ฐ˜๋ณต์„ ์ข…๋ฃŒํ•˜๊ณ  ๋น ์ ธ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

+ ์˜ˆ์‹œ

 

function show_gus(index) {

  for (let i = 0; i < mise_list.length; i++) {

    let mise = mise_list[i];                                 ๐Ÿ‘‰ 1.๋ฆฌ์ŠคํŠธ์˜ i ๋ฒˆ์งธ์—์„œ (0~mise_list ๊ธธ์ด๋งŒํผ ๋ฐ˜๋ณต)

    if (mise["IDEX_MVL"] < index) {                ๐Ÿ‘‰ 2.๋‚ด๊ฐ€ ์„ค์ •ํ•œ index ๊ฐ’๋ณด๋‹ค ์ž‘์€ "IDEX_MVL" ๊ฐ’์ด ์žˆ๋Š” 

      let gu_name = mise["MSRSTE_NM"];   ๐Ÿ‘‰ 3. "MSRSTE_NM" ์„ : gu_name ์œผ๋กœ ์ •์˜
      let gu_mise = mise["IDEX_MVL"];          ๐Ÿ‘‰ 3. "IDEX_MVL" ๋ฅผ : gu_mise ๋กœ ์ •์˜

      console.log(index + "๋ณด๋‹ค ์ž‘์€ ๊ตฌ: " + gu_name + ", " + gu_mise);  

                                                                             ๐Ÿ‘‰ (๋‚ด๊ฐ€ ์„ค์ •ํ•œ) index ๋ณด๋‹ค ์ž‘์€ ๊ตฌ : gu_name , gu_mise
        }
     }
  }


show_gus(40) ์˜ ๊ฒฐ๊ณผ๊ฐ’ ๐Ÿ‘‰ 40 ๋ณด๋‹ค ์ž‘์€ ๊ตฌ : ์„œ์ดˆ๊ตฌ , 35
show_gus(35) ์˜ ๊ฒฐ๊ณผ๊ฐ’ ๐Ÿ‘‰ 35 ๋ณด๋‹ค ์ž‘์€ ๊ตฌ : ๊ฐ•๋‚จ๊ตฌ , 30

 

 

 

 


 

 

- 1_mini_project

[1page] ํŒ€ ์†Œ๊ฐœ ๋ฐ ํŒ€ ๊ตฌ์„ฑ์› ์ด๋ฏธ์ง€

<!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">

    <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=Gowun+Batang:wght@400;700&display=swap" rel="stylesheet">

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">

    <title>Mini Project</title>


    <style>
        * {
            font-family: 'Gowun Dodum', sans-serif;
        }

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

            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), blueviolet);
            background-position: center;
            background-size: cover;

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

        .team_info {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .member_cards {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            margin: 30px 0 50px;

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

        .member_cards img {
            width: calc(20% - 10px);
            height: 400px;
            margin: 0 15px 15px 0;
        }

        .w3-card-4 {
            margin-left: 30px;
            margin-right: 30px;
        }


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


            color: darkslateblue;

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

        .visit > button {
            width: 200px;
            height: 50px;

            background-color: darkslateblue;
            color: white;

            border-radius: 50px;
            border: 1px solid white;

            margin-top: 10px;
        }

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


        .my_visit_post {
            width: 95%;
            max-width: 500px;
            margin: 20px auto 100px auto;
            padding: 20px;
            box-shadow: 0px 0px 3px 0px gray;

            display: none;
        }

        .form-floating {
            margin-top: 20px;
        }


        .record_button {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;

            margin-top: 20px;
        }

        .record_button > button {
            margin-right: 10px;
        }

    </style>


    <script>

        function open_box() {
            $('#post-box').show()
        }

        function close_box() {
            $('#post-box').hide()
        }

        function save_order() {
            let name = $('#name').val()
            let comment = $('#comment').val()

            $.ajax({
                type: 'POST',
                url: '/2_page',
                data: {name_give: name, comment_give: address},

                success: function (response) {
                    alert(response['msg'])
                    window.location.reload()
                }
            });
        }
    </script>
</head>


<body>
<div class="holl_page"></div>

<div class="team_name">
    <h2> A8 : ์—์ด์—์ž‡ Team </h2>
    <h3> [ Project name : ์šฐ๋‹นํƒ•ํƒ• I4's ์ทจ์—…์—ฌํ–‰๐Ÿ”ฅ ]</h3>
</div>


<div class="w3-panel w3-border w3-round-small">
    <div class="team_a">
        <h4>
            <br>
            ๐Ÿซก ์—์ด์—์ž‡ Team๋งŒ์˜ ํŠน์ง•์€? <br>
            <br>
            โ˜๐Ÿผ. ์ €ํฌ ํŒ€์€ 4๋ช… ๋‹ค ์—ฌ์ž๐Ÿ™‹๐Ÿป‍โ™€๏ธ๋กœ ๋ณด๊ธฐ๋“œ๋ฌธ ๋ฉค๋ฒ„๊ตฌ์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ์–ด์š” <br>
            โœŒ๐Ÿผ. ์ €ํฌ ํŒ€์€ ๊ฐœ๋ฐœ์ž๋กœ ์ทจ์—…์„ ํ•˜๋Š” ๊ฒƒ์ด ๋ชฉํ‘œ์—์š”๐Ÿ”ฅ<br>
            ๐Ÿ‘Œ๐Ÿผ. ์ €ํฌ ํŒ€์€ ํŒ€์›๋“ค ๋ชจ๋‘๊ฐ€ MBTI๊ฐ€ I๋กœ ์‹œ์ž‘ํ•˜๋Š” ๋‚ดํ–ฅ์ธ๋“ค์˜ ๋ชจ์ž„์ด์—์š”๐Ÿ˜Ž<br>
            <br>
        </h4>
    </div>
</div>


<div class="w3-panel w3-border w3-round-small">
    <div class="team_b">
        <h4>
            <br>
            ๐Ÿซก ์—์ด์—์ž‡ Team๋งŒ์˜ ์•ฝ์†์€? <br>
            <br>
            โ˜๐Ÿผ์ ๊ทน์ ์ธ ์ฐธ์—ฌ ํ•„์ˆ˜ <br>
            โœŒ๐Ÿผ์‹œ๊ฐ„ ์—„์ˆ˜ ๐Ÿ•˜ โŒ์ง€๊ฐโŒ <br>
            <br>
        </h4>
    </div>
</div>


<div class="w3-panel w3-border w3-round-small">

    <div class="team_info">
        <h4>
            <br>
            ๐Ÿซก ์—์ด์—์ž‡ ํŒ€์›์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค.<br>
        </h4>
    </div>

    <div class="member_cards">
        <div class="w3-card-4" style="width:20%">
            <button onclick="window.location.href = '2_page_lhw.html'">
                <img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbOJa5I%2FbtrKGPNlWYW%2FAAAAAAAAAAAAAAAAAAAAAAeRFeRSKbCOuCG3OcHAx08_1JbUDhmjmTNf_P5GtiPT%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1767193199%26allow_ip%3D%26allow_referer%3D%26signature%3Dy26kpCAEQ2o8UlJs3QVG2O4emE8%253D"
                     alt="Alps" style="width:100%">
                <div class="w3-container w3-center">
                    <p> ์ดํ˜œ์› </p>
                </div>
            </button>
        </div>

        <div class="w3-card-4" style="width:20%">
            <button onclick="window.location.href = '2_page_jhl.html'">
                <img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FzDT5X%2FbtrKHwaePOt%2FAAAAAAAAAAAAAAAAAAAAADCTDWJT-pizTocRkRUCaMqUHoxpQAeGnLnZdfurYgH9%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1767193199%26allow_ip%3D%26allow_referer%3D%26signature%3DGZW04ILoYxRumsceP5cDRQWkctQ%253D"
                     alt="Alps" style="width:100%">
                <div class="w3-container w3-center">
                    <p> ์žฅํ˜œ๋ฆผ </p>
                </div>
            </button>
        </div>

        <div class="w3-card-4" style="width:20%">
            <button onclick="window.location.href = '2_page_jhj.html'">
                <img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FEGJSq%2FbtrKIySQLk9%2FAAAAAAAAAAAAAAAAAAAAAJT2ujdkkqkim2nvYIDSVTu793QMqM5Vc4GWhtgRBOQa%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1767193199%26allow_ip%3D%26allow_referer%3D%26signature%3D9mEjC86S5lczCgdqREvBYuuqDLw%253D"
                     alt="Alps" style="width:100%">
                <div class="w3-container w3-center">
                    <p> ์ •ํ˜„์ฃผ </p>
                </div>
            </button>
        </div>

        <div class="w3-card-4" style="width:20%">
            <button onclick="window.location.href = '2_page_ksy.html'">
                <img src="https://velog.velcdn.com/images/ksykma/profile/3a764cee-f9cd-4bd6-af8c-78e1afa15fde/image.jpg"
                     alt="Alps" style="width:100%">
                <div class="w3-container w3-center">
                    <p> ๊น€์„œ์˜ </p>
                </div>
            </button>
        </div>
    </div>

</div>


<!--    <div class="w3-panel w3-border w3-round-small">-->
<div class="visit">
    <h2> ๋ฐฉ๋ช…๋ก์„ ๋‚จ๊ฒจ์ฃผ์„ธ์š” ๐Ÿ˜‡ </h2>
    <button onclick="open_box()"> ๋ฐฉ๋ช…๋ก ๋‚จ๊ธฐ๊ธฐ ๐Ÿ‘‡</button>
</div>

<div class="my_visit_post" id="post-box">
    <div class="form-floating">
            <textarea id="name" class="form-control" placeholder="Leave a comment here" id="floatingTextarea1"
                      style="height: 50px"></textarea>
        <label for="floatingTextarea1">์ด๋ฆ„</label>
    </div>

    <div class="form-floating">
            <textarea id="comment" class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                      style="height: 100px"></textarea>
        <label for="floatingTextarea2">์ฝ”๋ฉ˜ํŠธ</label>
    </div>

    <div class="record_button">
        <button onclick="save_order()" type="button" class="btn btn-dark"> ๊ธฐ๋กํ•˜๊ธฐ ๐Ÿ–ฑ</button>
        <button onclick="close_box()" type="button" class="btn btn-outline-dark">๋‹ซ๊ธฐ</button>
        <button onclick="window.location.href = '3_page.html'" type="button" class="btn btn-outline-dark"> ๋ฐฉ๋ช…๋ก ๋ณด๋Ÿฌ๊ฐ€๊ธฐ ๐Ÿ‘€</button>
    </div>
</div>



</body>
</html>

 

 

[2page] ๊ตฌ์„ฑ์› ์ด๋ฏธ์ง€ ํด๋ฆญ ์‹œ ํŒ€์› ์ž๊ธฐ์†Œ๊ฐœ ํŽ˜์ด์ง€๋กœ ์ด๋™ : ํŒ€์› ์ž๊ธฐ์†Œ๊ฐœ ํŽ˜์ด์ง€

<!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=Gowun+Batang&family=Gowun+Dodum&display=swap" rel="stylesheet">

    <title>๊ฐœ์ธ๋ณ„ ์ž๊ธฐ์†Œ๊ฐœ</title>

    <style>
        *{
           font-family: 'Gowun Dodum', sans-serif;
        }

        body{background-color: aliceblue;}

        .container {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            flex-wrap: nowrap;
        }
        .item{
            margin-top: 30px;
        }
        .my_ifm {
            margin-left: 70px;
            margin-top: 25px;
            font-size: large;
            font-weight: bold;
        }

        .visit_btn {
            display: flex;
            flex-direction: column;
            max-width: 300px;
            margin-left: 1100px;

            width: 100%;

            color: darkslateblue;

            align-items: center;
            justify-content: center;
        }

        .visit_btn > button {
            width: 200px;
            height: 50px;

            background-color: darkslateblue;
            color: white;

            border-radius: 50px;
            border: 1px solid white;

            margin-top: 10px;
        }

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


        .my_ifm2 {
            margin-left: 110px;
            margin-top: 50px;
            max-width: 925px;
        }

        .my_visit_post {
            width: 95%;
            max-width: 500px;
            margin: 20px auto 100px auto;
            padding: 20px;
            box-shadow: 0px 0px 3px 0px gray;

            display: none;
        }

        .form-floating {
            margin-top: 20px;
        }


        .record_button {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;

            margin-top: 20px;
        }

        .record_button > button {
            margin-right: 10px;
        }

    </style>

    <script>

        function open_box() {
            $('#post-box').show()
        }

        function close_box() {
            $('#post-box').hide()
        }


        function save_order() {
            let name = $('#name').val()
            let comment = $('#comment').val()

            $.ajax({
                type: 'POST',
                url: '/2_page',
                data: {name_give : name, comment_give : address},

                success: function (response) {
                    alert(response['msg'])
                    window.location.reload()
                }
            });
        }

    </script>


</head>

<body>
    <div class="container">
        <div class="item"><img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbOJa5I%2FbtrKGPNlWYW%2FAAAAAAAAAAAAAAAAAAAAAAeRFeRSKbCOuCG3OcHAx08_1JbUDhmjmTNf_P5GtiPT%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1767193199%26allow_ip%3D%26allow_referer%3D%26signature%3Dy26kpCAEQ2o8UlJs3QVG2O4emE8%253D" alt="My Image" width="200" height="200"></div>
        <div class="item">
            <div class=" my_ifm">
                <p>์ด๋ฆ„: ์ดํ˜œ์›</p>
                <p>๋‚˜์ด: 24</p>
                <p>MBTI: ISFJ</p>
                 ๋ธ”๋กœ๊ทธ ์ฃผ์†Œ: <a href="https://wonprogrammer.tistory.com"> "https://wonprogrammer.tistory.com"  </a>
            </div>
        </div>
    </div>


    <hr style="border: solid cornflowerblue;margin: 50px 50px 50px 50px;">
    <div class="my_ifm2">
        <p> <br> ๐Ÿ’œ์ž๊ธฐ์†Œ๊ฐœ(์ง€์›๋™๊ธฐ ํฌํ•จ): <br> <br> ์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ™Œ ์—์ด์—์ž‡์กฐ ์ดํ˜œ์› ์ž…๋‹ˆ๋‹ค. <br>
                                ๋‚ด์ผ๋ฐฐ์›€์บ ํ”„์—์„œ ๋งŒ๋‚˜๊ฒŒ ๋˜์–ด ๋ฐ˜๊ฐ‘์Šต๋‹ˆ๋‹ค.<br>
                                ์ œ๊ฐ€ ๋‚ด์ผ๋ฐฐ์›€์บ ํ”„์— ์ง€์›ํ•˜๊ฒŒ ๋œ ๊ณ„๊ธฐ๋Š” ์ „๊ณต์ด ์ •๋ณดํ†ต์‹ ํ•™๊ณผ๋กœ ์ฝ”๋”ฉ๊ณผ ์•„์ฃผ ๋ฐ€์ ‘ํ•œ ์ „๊ณต์„ ๊ฐ–๊ณ  ์žˆ์ง€๋งŒ, ์—ฌ๋Ÿฌ ์ปดํ“จํ„ฐ ์–ธ์–ด, ์†Œํ”„ํŠธ์›จ์–ด ๊ณตํ•™ ๋“ฑ ํ•œ ๋ถ„์•ผ๋ฅผ ๊นŠ๊ฒŒ ๋ฐฐ์šฐ๊ธฐ ๋ณด๋‹ค๋Š” ๋„“๊ฒŒ ๋‹ค์–‘ํ•œ ์ง€์‹๋“ค์„ ๋ฐฐ์šฐ๋‹ค๋ณด๋‹ˆ ์Šค์Šค๋กœ ๋„ˆ๋ฌด ๋ถ€์กฑํ•˜๋‹ค๋Š” ์ƒ๊ฐ์„ ๊ฐ–๊ณ  ์กฐ๊ธˆ ๋” ์ „๋ฌธ์ ์œผ๋กœ ๋ฐฐ์šฐ๊ณ  ์‹ถ์€ ์ƒ๊ฐ์ด ๋“ค์–ด ๋‹ค์–‘ํ•œ ํ”„๋กœ๊ทธ๋žจ๋“ค์„ ์‚ดํŽด๋ณด๋˜ ์ค‘ ๋‚ด์ผ๋ฐฐ์›€์บ ํ”„ ํ”„๋กœ๊ทธ๋žจ์„ ์ฐพ์•„ ์ง€์›ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. <br>
                                ์•„์ง ๋งŽ์ด ๋ถ€์กฑํ•˜๊ณ  ์„œํˆด์ง€๋งŒ 4๊ฐœ์›”๊ฐ„์˜ ๊ณผ์ •์—์„œ ๋งŽ์ด ๋ฐฐ์šฐ๊ณ  ์Šต๋“ํ•ด ๋ถ€๋„๋Ÿฝ์ง€ ์•Š์€ ์‹ค๋ ฅ์„ ๊ฐ€์ ธ๋ณด๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. ๐Ÿฅบ <br>
        </p>
        <br>
        <p>๐Ÿ’œ๊ฐ๊ด€์ ์œผ๋กœ ์‚ดํŽด๋ณธ ๋‚˜์˜ ์žฅ์ : <br><br> ์ œ MBTI ์—์„œ๋„ ์‚ดํŽด๋ณผ ์ˆ˜ ์žˆ๋“ฏ์ด ์ •ํ•ด์ง€๊ฑฐ๋‚˜ ๋‚ด๊ฐ€ ํ•ด์•ผ ๋  ์ผ๋“ค์€ ๋ฏธ๋ฃจ์ง€ ์•Š๊ณ  ์ตœ๋Œ€ํ•œ ํ•ด๋‚ด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์ฒ ์ €ํ•œ 'J'</p>
        <br>
        <p>๐Ÿ’œํ˜‘์—… ์‹œ ๋ณธ์ธ ์Šคํƒ€์ผ: <br><br> ์—ญํ• ์ด ์ •ํ•ด์ง€๋ฉด ๊ทธ ์—ญํ• ์— ๋ฏผํ๊ฐ€ ๋˜์ง€ ์•Š๋„๋ก ๋…ธ๋ ฅํ•˜๋ ค ํ•˜๊ณ , ํŒ€์œผ๋กœ ์ง„ํ–‰ํ•˜๋Š” ํ”„๋กœ์ ํŠธ๋Š” ์กฐ๊ธˆ ๊น”๋”ํ•˜๊ฒŒ ๋งˆ๋ฌด๋ฆฌ ์ง€์œผ๋ ค ํ•˜๋Š” ํŽธ์ž…๋‹ˆ๋‹ค. <br> </p>
    </div>

    <div class="visit_btn">
        <button onclick="open_box()"> ๋ฐฉ๋ช…๋ก ๋‚จ๊ธฐ๊ธฐ ๐Ÿ‘‡ </button>
    </div>

    <hr style="border: solid cornflowerblue;margin: 50px 50px 50px 50px;">

    <div class="my_visit_post" id="post-box">
        <div class="form-floating">
            <textarea id="name" class="form-control" placeholder="Leave a comment here" id="floatingTextarea1"
                      style="height: 50px"></textarea>
            <label for="floatingTextarea1">์ด๋ฆ„</label>
        </div>

        <div class="form-floating">
            <textarea id="comment" class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                      style="height: 100px"></textarea>
            <label for="floatingTextarea2">์ฝ”๋ฉ˜ํŠธ</label>
        </div>


        <div class="record_button">
            <button onclick="save_order()" type="button" class="btn btn-dark"> ๊ธฐ๋กํ•˜๊ธฐ ๐Ÿ–ฑ </button>
            <button onclick="close_box()" type="button" class="btn btn-outline-dark">๋‹ซ๊ธฐ</button>
            <button onclick = "window.location.href = '3_page.html'" type="button" class="btn btn-outline-dark" > ๋ฐฉ๋ช…๋ก ๋ณด๋Ÿฌ๊ฐ€๊ธฐ ๐Ÿ‘€ </button>
        </div>
    </div>
</body>

</html>

 

 

[3page] 1-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">

    <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=Gowun+Batang:wght@400;700&display=swap" rel="stylesheet">

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">

    <title>Mini Project</title>


    <style>
        * {
            font-family: 'Gowun Dodum', sans-serif;
        }

        body {
            background-color : lavender;
        }

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

            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), violet );
            background-position: center;
            background-size: cover;


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

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

            margin-top: 50px;
            margin-bottom: 30px;
        }

        .reviews {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .table {
            width: 900px;
            margin: 60px auto 100px auto;
            padding-bottom: 60px;
        }




    </style>


    <script>



    </script>

</head>


<body>
<div class="holl_page"></div>

    <div class="team_name">
        <h2> ์—์ด์—์ž‡ Team's ๋ฐฉ๋ช…๋ก ๐Ÿ“– </h2>
    </div>

    <div class="info">
        <h5>์•„๋ž˜์˜ ์ด๋ฆ„ or ๋ณ„๋ช…์„ ์ฐพ์•„ ์ž์‹ ์ด ๋‚จ๊ธด ๋ฐฉ๋ช…๋ก์„ ์ฐพ์•„๋ณด์•„์š” ๐Ÿ‘€</h5>
        <h5> ๐Ÿ‘‡</h5>
    </div>


    <div class="reviews">
        <table class="table">
            <thead>
            <tr>
                <th scope="col">์ด๋ฆ„</th>
                <th scope="col">๋ฐฉ๋ช…๋ก ๋‚ด์šฉ</th>
            </tr>
            </thead>
            <tbody id="reviews-box">
            <tr>
                <td>ํ™๊ธธ๋™</td>
                <td> ํ™๊ธธ๋™ ์™”๋‹ค ๊ฐ </td>
            </tr>
            <tr>
                <td>ํ™๊ธธ๋™</td>
                <td> ํ™๊ธธ๋™ ์™”๋‹ค ๊ฐ </td>
            </tr>
            </tbody>
        </table>
    </div>

</body>
</html>

์•„์ง 1,2ํŽ˜์ด์ง€์—์„œ db์ •๋ณด๋ฅผ ๋ฐ›์•„์™€ 3ํŽ˜์ด์ง€์— ๊ธฐ๋กํ•˜๋Š”๊ฑด ์„ฑ๊ณตํ•˜์ง€ ๋ชป ํ•จ ๐Ÿ˜ฑ

'woncoding > TIL' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

TIL | 9.5.์›” [Python ์–ธ์–ด์˜ ์ดํ•ด / Python ๊ธฐ์ดˆ]  (1) 2022.09.05
TIL | 9.2.๊ธˆ [ํŠœํ”Œ / ์ง‘ํ•ฉ / f-string / ์˜ˆ์™ธ์ฒ˜๋ฆฌ / ํŒŒ์ผ๋ถ„๋ฆฌ / map, lambda, filter / class]  (0) 2022.09.02
TIL | 9.1.๋ชฉ [๋ณ€์ˆ˜ / ๋ฆฌ์ŠคํŠธ / ๋”•์…”๋„ˆ๋ฆฌ / ์กฐ๊ฑด,๋ฐ˜๋ณต๋ฌธ / ํ•จ์ˆ˜]  (0) 2022.09.01
TIL | 8.31.์ˆ˜ [1_mini_project]  (0) 2022.08.31
TIL | 8.30.ํ™” [pymongo / Flask]  (0) 2022.08.30
    'woncoding/TIL' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • TIL | 9.2.๊ธˆ [ํŠœํ”Œ / ์ง‘ํ•ฉ / f-string / ์˜ˆ์™ธ์ฒ˜๋ฆฌ / ํŒŒ์ผ๋ถ„๋ฆฌ / map, lambda, filter / class]
    • TIL | 9.1.๋ชฉ [๋ณ€์ˆ˜ / ๋ฆฌ์ŠคํŠธ / ๋”•์…”๋„ˆ๋ฆฌ / ์กฐ๊ฑด,๋ฐ˜๋ณต๋ฌธ / ํ•จ์ˆ˜]
    • TIL | 8.31.์ˆ˜ [1_mini_project]
    • TIL | 8.30.ํ™” [pymongo / Flask]
    _won_
    _won_
    Coding Practice blog

    ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”