본문 바로가기
TIL(Daily)/ETC

Thu/20/Oct/22- 장고 머신러닝 프로젝트-4

by Hawie 2022. 10. 21.

오늘은 프로젝트 기능 구현은 테스트 및 프론트엔드 수정 까지

 

완료 후 배포 테스트 까지 완료 하였다!!!

 

내일 발표 날인데 준비 잘해 마지막 무사히 끝냈으면 좋겠다.

 

오늘은 백엔드 으로 코트 확인 만 하고

 

프론트 엔드 수정 을 헸다.

 

다행이 큰 문제 없이 다 잘 되너 너무 다행이다!!

 

 

{% block content %}
<!doctype html>
<html lang="en">

<head>
  <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=Jua&family=Nanum+Gothic+Coding&display=swap" rel="stylesheet">
  {% comment %} google pont {% endcomment %}


  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>회원가입</title>
  <link rel="icon" href=""/>

  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">


  <title>회원 가입</title>

  <style>
    {% comment %} pont style {% endcomment %}
    *{
      font-family: 'Jua', sans-serif;
      font-family: 'Nanum Gothic Coding', monospace;
    }
  </style>


</head>

<body style="background: #FAFAFA;">
  <div style="display: flex; flex-direction: column; align-items:center; width: 100%; margin: 2vh 0 20vh 0;  ">
    <div
      style="text-align:center; border:solid 1px rgba(219, 219, 219, 1); width: 400px; height: 620px; margin-top: 30px; background: white">
      <!-- 바로 아랫줄 사진첨부 -->
      <div style="margin-top: 20px; padding: 20px;"> <img src="" alt=""> </div>
      <div style="padding: 0 40px 0 40px; font-weight:bold; color: gray; font-size: 15pt; font-weight: normal;">최고가 되려면 
         가입하세요.</div>
      <div
        style="display: flex; flex-direction: row; text-align: center; place-content: center; margin: 20px 0 20px 0;">
        <hr style="width: 100px;">
        <div style="margin: 5px 20px 0 20px; color: gray;"></div>
        <hr style="width: 100px;">
      </div>
      <div class="wrap">
        <form action="{% url 'users:signup' %}" method="POST">
          {% csrf_token %}
          <div class="form-group mt-2 mb-2">
            <input type="email" style="width: 300px; margin-left: 50px; background-color: #fafafa;" class="form-control"
              id="email" name="email" placeholder="이메일">
          </div>
          <div class="form-group mt-2 mb-2">
            <input type="text" style="width: 300px; margin-left: 50px; background-color: #fafafa;" class="form-control"
              id="username" name="username" placeholder="성명">
          </div>
          <div class="form-group mt-2 mb-2">
            <input type="text" style="width: 300px; margin-left: 50px; background-color: #fafafa;" class="form-control"
              id="nickname" name="nickname" placeholder="닉네임">
          </div>
          <div class="form-group mt-2 mb-2">
            <input type="password" style="width: 300px; margin-left: 50px; background-color: #fafafa;"
              class="form-control" id="password" name="password" placeholder="비밀번호">
          </div>
          <div class="form-group mt-2 mb-2">
            <input type="password" style="width: 300px; margin-left: 50px; background-color: #fafafa;"
              class="form-control" id="password2" name="password2" placeholder="비밀번호 확인">
          </div>
          <div style="padding: 0 40px 0 40px; margin: 20px 0 20px 0; color: gray; font-size: 9pt; font-weight: normal;">
            저희 서비스를 이용하는 사람이 회원님의 이메일일 정보를 CaBul에  업로드했을 수도 있습니다.</div>
      </div>
      <div>
        {% if error %}
        <div class="alert alert-danger" role="alert">
          {{ error }}
        </div>
        {% endif %}

        <button type="submit"  class="btn btn-secondary" style="width: 300px;">가입버튼</button>
        </form>

      </div>
    </div>
    <div
      style="padding: 35px ;text-align:center; border:solid 1px rgba(219, 219, 219, 1); width: 400px; height: 100px; margin-top: 30px; background: white">
      
      <div>계정이 있으신가요? <a href="{% url 'users:login' %}"><button type="button" class="btn btn-secondary">로그인</button></a></div>
    </div>
  </div>


  <!-- Optional JavaScript; choose one of the two! -->

  <!-- Option 1: Bootstrap Bundle with Popper -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
    crossorigin="anonymous"></script>

  <!-- Option 2: Separate Popper and Bootstrap JS -->
  <!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
    -->
</body>

</html>
{% endblock %}

 

로그인 페이지!

 

 

 

HTML

{% block content %}
<!doctype html>
<html lang="en">
{% comment %} 연습용입니다. {% endcomment %}
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>로그인</title>
    <link rel="icon" href="/static/img/instagram.png"/>

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">

    <!-- Google Meterial icon -->
    <link
        href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp"
        rel="stylesheet">

    <!-- Jquery -->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>

    <title>Hello, world!</title>

    <style>
        /* 기본 css */
        .flex-direction_row {
            display: flex;
            flex-direction: row;
        }

        .flex-direction_column {
            display: flex;
            flex-direction: column;
        }

        /* home */

        .main_body {
            display: flex;
            justify-content: center;
            padding-top: 50px;
            background-color: #e18282;
        }

        .sign_in_left_box {
            display: flex;
            background-color: #fafafa;
            width: 500px;
            height: 800px;
            margin: 20px;
        }

        .sign_in_right_box {
            display: flex;
            background-color: #ffffff;
            width: 500px;
            height: 450px;
            margin: 20px;
        }
    </style>
</head>

<body>
<div class="flex-direction_row" style="width: 100%; text-align: center; place-items: center; min-height: 100vh; background-color: #fafafa;">
    <div class="sign_in_left_box" style="display: inline-block; margin: auto 10px auto auto;">
        <img style="height: 200px; margin: 200px 1px 1px 0; object-fit: contain" src="/static/img/login.png">
    </div>
    <div style="display: flex; flex-direction: column; display: inline-block; margin: auto auto auto 10px;">
        <div class="sign_in_right_box" style="display: inline-block; border: solid 1px lightgray;">
            <img style="height: 70px; margin: 30px 0 20px 0; object-fit: contain" src="/static/img/logo.png">
            {% comment %} <form class="form-area" action="/sign-in/" method="post"> {% endcomment %}
            <form class="form-area" action="{% url 'users:login' %}" method="POST">
                {% csrf_token %}
                <div class="form-group mt-2 mb-2">
                    <input type="text" style="width: 400px; margin-left: 50px; background-color: #fafafa;" class="form-control" id="email" name="email" placeholder="이메일">
                </div>
                <div class="form-group mt-2 mb-2">
                    <input type="password" style="width: 400px; margin-left: 50px; background-color: #fafafa;" class="form-control" id="password" name="password" placeholder="비밀번호">
                </div>
                <div>
                    <button type="submit" style="width: 400px; margin-top: 15px;" class="btn btn-secondary">로그인</button>
                </div>
                <div style="display: flex; flex-direction: row; text-align: center; place-content: center; margin: 20px 0 20px 0;">
                <hr style="width: 150px;"><div style="margin: 5px 20px 0 20px;">또는</div><hr style="width: 150px;">
                </div>
   
    
                <a id="kakao-login-btn" href="/account/login/kakao">
                    <img src="https://k.kakaocdn.net/14/dn/btroDszwNrM/I6efHub1SN5KCJqLm1Ovx1/o.jpg" width="222" alt="카카오 로그인 버튼"/>
                </a>
        </div>
        <div style="width: 500px; height: 100px; margin: 0 20px 0 20px; padding: 30px; background-color: #ffffff; border: solid 1px lightgray;">계정이 없으신가요? 
            <a href="/users/signup" style="color: black;"><b>가입하기</b></a>
        </div>
        <div style="width: 500px; height: 100px; margin: 0 20px 0 20px; padding: 30px;">
            {% if error %}
            <div class="alert alert-danger" role="alert">
                {{ error }}
                </div>
        {% endif %}
        </div>
        
    </div>
</div>
</form>
</body>


</html>
{% endblock %}

 

 

댓글