-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
468 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
|
||
<head> | ||
{% block head %} | ||
<title> | ||
{% block title %}{% endblock %} - 정글Wiki | ||
</title> | ||
{% endblock %} | ||
<script> | ||
{% if alert %} | ||
alert("{{ alert }}") | ||
{% endif %} | ||
</script> | ||
{% block script %} {% endblock %} | ||
</head> | ||
|
||
<body class="relative bg-gray-50"> | ||
{% include 'header.html' %} | ||
<div class="mt-28 mx-24" id="content"> | ||
{% block content %}{% endblock %} | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}상세페이지{%endblock %} | ||
|
||
{% block head %} | ||
|
||
{% include'head.html' %} | ||
{{ super() }} | ||
|
||
{% endblock %} | ||
{%block content %} | ||
|
||
<div class="important flex flex-col w-full items-center pb-32"> | ||
<div class="flex flex-col w-full py-2"> | ||
<div class="w-full border-2 border-transparent border-b-gray-300"> | ||
<p class="text-2xl font-bold px-3 py-3">스텍 큐 알고리즘에 대해서 알려줄 수 있나요?</p> | ||
</div> | ||
<div class="w-full flex justify-between py-2"> | ||
<p class="text-sm px-3">질문자 : [그린반] 조현오</p> | ||
<p class="text-sm px-3">2023.04.04</p> | ||
</div> | ||
<div class="w-full flex flex-col px-3 py-2 border-dashed border-2 border-sky-500 bg-gray-200"> | ||
<p class="text-xl font-bold">ChatGPT:</p> | ||
<p class="text-lg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra elit donec nunc posuere | ||
pulvinar libero fermentum mi. Lobortis vulputate consectetur suspendisse massa mauris. Lacus odio pretium enim | ||
gravida. Netus sit a, enim enim quam quam egestas arcu.</p> | ||
</div> | ||
{% if isLogin == True %} | ||
<form class="flex w-full gap-x-4 my-5"> | ||
<input id="email-address" name="question" type="text" autocomplete="false" required | ||
class="flex-auto rounded-md border-0 bg-white/5 px-3.5 py-2 text-zinc shadow-sm ring-1 ring-inset ring-black/10 focus:ring-2 focus:ring-inset focus:ring-zinc-500 sm:text-sm sm:leading-6" | ||
placeholder="답변을 도와주세요! ChatGPT 친구가 정확하지 않아요!"> | ||
<button type="submit" | ||
class="flex-none rounded-md bg-zinc-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-zinc-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-500">답글달기</button> | ||
</form> | ||
{%endif%} | ||
<div class="flex flex-col border-2 border-transparent border-t-gray-200"> | ||
<div class="px-8 py-3 space-y-4 border-2 border-transparent border-b-gray-200"> | ||
<p class="text-xl font-bold">홍길동</p> | ||
<p class="text-lg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra elit donec nunc posuere | ||
pulvinar libero fermentum mi. Lobortis vulputate consectetur suspendisse massa mauris. Lacus odio pretium enim | ||
gravida. Netus sit a, enim enim quam quam egestas arcu.</p> | ||
<p class="text-right"> | ||
2023.04.04 | ||
</p> | ||
</div> | ||
<div class="px-8 py-3 space-y-4 border-2 border-transparent border-b-gray-200"> | ||
<p class="text-xl font-bold">홍길동</p> | ||
<p class="text-lg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra elit donec nunc posuere | ||
pulvinar libero fermentum mi. Lobortis vulputate consectetur suspendisse massa mauris. Lacus odio pretium enim | ||
gravida. Netus sit a, enim enim quam quam egestas arcu.</p> | ||
<p class="text-right"> | ||
2023.04.04 | ||
</p> | ||
</div> | ||
<div class="px-8 py-3 space-y-4 border-2 border-transparent border-b-gray-200"> | ||
<p class="text-xl font-bold">홍길동</p> | ||
<p class="text-lg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra elit donec nunc posuere | ||
pulvinar libero fermentum mi. Lobortis vulputate consectetur suspendisse massa mauris. Lacus odio pretium enim | ||
gravida. Netus sit a, enim enim quam quam egestas arcu.</p> | ||
<p class="text-right"> | ||
2023.04.04 | ||
</p> | ||
</div> | ||
<div class="px-8 py-3 space-y-4 border-2 border-transparent border-b-gray-200"> | ||
<p class="text-xl font-bold">홍길동</p> | ||
<p class="text-lg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Viverra elit donec nunc posuere | ||
pulvinar libero fermentum mi. Lobortis vulputate consectetur suspendisse massa mauris. Lacus odio pretium enim | ||
gravida. Netus sit a, enim enim quam quam egestas arcu.</p> | ||
<p class="text-right"> | ||
2023.04.04 | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdn.tailwindcss.com"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% block script %} | ||
<script> | ||
function goLoginPage() { | ||
window.location.href = '/login' | ||
} | ||
function goJoinPage() { | ||
window.location.href = '/join' | ||
} | ||
function logout() { | ||
window.location.href = '/logout' | ||
alert('로그아웃!') | ||
} | ||
</script> | ||
{%endblock %} | ||
|
||
<header class="h-24 w-full fixed top-0 flex flex-row justify-between items-center bg-gray-50 shadow"> | ||
<h1 class="text-3xl font-bold ml-5"> | ||
<a href="/">무엇이든 물어보세요</a> | ||
</h1> | ||
<div class="flex w-250 space-x-2 mr-5"> | ||
{% if isLogin == True %} | ||
<button | ||
class="relative flex justify-center items-center rounded-md bg-zinc-600 px-2 py-2 text-sm font-semibold text-white hover:bg-zinc-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" | ||
onclick="logout()">로그아웃</button> | ||
{% else %} | ||
<button | ||
class="relative flex justify-center items-center rounded-md bg-zinc-600 px-2 py-2 text-sm font-semibold text-white hover:bg-zinc-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" | ||
onclick="goLoginPage()">로그인</button> | ||
<button | ||
class="relative flex justify-center items-center rounded-md bg-zinc-600 px-2 py-2 text-sm font-semibold text-white hover:bg-zinc-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" | ||
onclick="goJoinPage()">회원가입</button> | ||
{%endif%} | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<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>정글Wiki</title> | ||
</head> | ||
<body></body> | ||
</html> | ||
{% extends "base.html" %} | ||
|
||
{% block title %}HOME{%endblock %} | ||
|
||
{% block head %} | ||
|
||
{% include'head.html' %} | ||
{{ super() }} | ||
|
||
{% endblock %} | ||
{%block content %} | ||
|
||
<div class="important flex flex-col w-full items-center pb-32"> | ||
{% if isLogin == True %} | ||
<form class="flex w-full gap-x-4 my-5"> | ||
<input id="email-address" name="question" type="text" autocomplete="false" required | ||
class="flex-auto rounded-md border-0 bg-white/5 px-3.5 py-2 text-zinc shadow-sm ring-1 ring-inset ring-black/10 focus:ring-2 focus:ring-inset focus:ring-zinc-500 sm:text-sm sm:leading-6" | ||
placeholder="{{nickname}} 님 무엇이 궁금하신가요?"> | ||
<button type="submit" | ||
class="flex-none rounded-md bg-zinc-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-zinc-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-500">질문하기</button> | ||
</form> | ||
{% endif %} | ||
|
||
<div class="flex flex-col w-full py-2"> | ||
<div class="w-full border-2 border-transparent border-b-gray-300"> | ||
<p class="text-2xl font-bold px-3 py-3">질문 게시글</p> | ||
</div> | ||
<div class="flex flex-col py-3 border-2 border-transparent border-b-gray-200"> | ||
<p class="text-xl px-3">답변대기중</p> | ||
<p class="text-xl font-bold px-3 pt-1">스택 큐 알고리즘에 대해서 알려줄 수 있나요?</p> | ||
<p class="text-sm px-3 pt-1">2023. 04. 04</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
Oops, something went wrong.