Update project pages and add DB browser
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}DB 조회{% endblock %}
|
||||
|
||||
{% block head_extra %}
|
||||
<style>
|
||||
.db-browser-page {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.db-browser-head {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
padding-bottom: 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.db-browser-head h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.db-browser-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.db-browser-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.db-browser-link:hover {
|
||||
background: #f4f7fb;
|
||||
}
|
||||
|
||||
.db-browser-link.is-active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.db-browser-frame-shell {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 18px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
box-shadow: 0 10px 24px rgba(21, 24, 29, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.db-browser-frame {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 78vh;
|
||||
border: 0;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="panel db-browser-page">
|
||||
<div class="db-browser-head">
|
||||
<div class="section-title">
|
||||
<h2>DB 조회</h2>
|
||||
</div>
|
||||
<div class="db-browser-links">
|
||||
{% for item in db_browser_links %}
|
||||
<a
|
||||
href="/db-browser?target={{ item.key }}"
|
||||
class="db-browser-link {% if db_browser_target_key == item.key %}is-active{% endif %}"
|
||||
>{{ item.label }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="db-browser-frame-shell">
|
||||
<iframe
|
||||
class="db-browser-frame"
|
||||
src="{{ db_browser_target_url }}"
|
||||
title="DB 조회"
|
||||
loading="lazy"
|
||||
referrerpolicy="same-origin"
|
||||
></iframe>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user