Apply to Distribusi

This commit is contained in:
Hyunchul Kim 2020-11-09 01:25:32 +09:00
parent 7f705d97e9
commit e8009b26d0
3 changed files with 42 additions and 11 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
index.html
.vscode/
.python-version
*.ai

View file

@ -100,6 +100,7 @@ def write_index(args,index, html, html_head, html_footer):
styled_html_head = html_head % style
else:
styled_html_head = html_head % ''
print("---")
f.write(styled_html_head)
for line in html:

View file

@ -5,21 +5,50 @@ html_head = """
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
<meta name="generator" content="distribusi" />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style>
.image{max-width: 100%%;}
.pdf object{width:640px;height: 640px;}
.dir::before{content:"📁 ";font-size:18px;}
.filename{display:block;font-family:mono;}
.unkown-file::before{content:"📄 ";font-size:18px;}
div{max-width: 640px;display:inline-block;vertical-align:top;margin:1em;padding:1em;}
video {width:640px;max-height:640px;}
%s
</style>
<link rel="stylesheet" type="text/css" href="https://frog.dianaband.info/src/style/common.css" />
%s
</head>
<body>
<div>
<div id="menu">
<div id="logo_wrapper" class="svg_wrapper">
<img id="logo_foh"src="https://frog.dianaband.info/src/img/logo.svg" alt="환대의 조각 로고">
</div>
<div id="about_icon_wrapper" class="svg_wrapper">
<img id="about_icon"src="https://frog.dianaband.info/src/img/icon_about.svg" alt="각진 꽃 모양 어바웃 버튼">
</div>
<div id="timeline_icon_wrapper" class="svg_wrapper">
<img id="about_icon"src="https://frog.dianaband.info/src/img/icon_timeline.svg" alt="구름 모양 타임라인 버튼">
</div>
<span id="to_about">
<a href="">
ABOUT
</a>
</span>
<span id="to_fragments">
<a href="">
FRAGMENTS
</a>
</span>
<span id="to_timeline">
<a href="">
TIMELINE
</a>
</span>
</div>
<div id="margin">
<!-- to avoid overlapping -->
</div>
<div id="contents">
"""
html_footer = """
</body>
</div>
</body>
</html>
"""