ソースを参照

Add modal box about pman3

[ci skip]
Oz N Tiram 8 年 前
コミット
c678631317
2 ファイル変更74 行追加11 行削除
  1. 20 11
      pwman/ui/templates/index.tpl
  2. 54 0
      pwman/ui/templates/static/css/style.css

+ 20 - 11
pwman/ui/templates/index.tpl

@@ -15,7 +15,7 @@
 <main class="wrapper">
   <nav class="navigation" >
   <section class="container container-nav">
-    <a class="navigation-title" href="https://pwman3.github.io/">
+    <a class="navigation-title" href="#openModal">
     <img class="img" src="https://openclipart.org/download/190821/Cles-de-serrure-lock-keys.svg" height="30" alt="pwman3" title="pwman3">
     <h1 class="title">Pwman3</h1>
     </a>
@@ -27,7 +27,20 @@
     </form>
     <div>
     </span>
-  </section>
+
+    <div id="openModal" class="modalDialog">
+      <div>
+        <a href="#close" title="Close" class="close">x</a>
+        <h2>Pwmam3 - Web</h2>
+        <p> Pwman3 is distributed under the GPL v. 3.
+        <p> Pwman3 Logo is made by <pre> enolynn</pre> and was downloaded
+        from openclipart: 
+	<a href="https://openclipart.org/detail/190821/cles-de-serrure-lock-keys">logo</a>. 
+	This logo is distributed under the Creative Commons license.
+        You can learn more about this Software in 
+	<a href="http://pwman3.github.io/pwman3/">pwman3's home page</a>.</div>. 
+    </div>
+    </section>
   </nav>
   
   <section class="container password-box" style="margin-top: 7rem; ">
@@ -51,7 +64,6 @@
   Notes: Some notes about this entry 
   <br>
    <div class="tags float-right">
-    Tags: 
      <button class="button button-clear button-clear button-tag">net</button>
      <button class="button button-clear button-tag">learning</button>  
     </div>
@@ -59,52 +71,49 @@
   </section>
   <section class="container password-box">
   Login: <strong>oz.tiram@gmail.com</strong>
-  <br>Website:<strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
+  <br>Website: <strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
   <br>Password: <strong>********</strong><br>  
   Notes: Some notes about this entry 
   <br>
    <div class="tags float-right">
-    Tags: 
      <button class="button button-clear button-clear button-tag">net</button>
      <button class="button button-clear button-tag">learning</button>  
     </div>
   </section>
   <section class="container password-box">
   Login: <strong>oz.tiram@gmail.com</strong>
-  <br>Website:<strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
+  <br>Website: <strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
   <br>Password: <strong>********</strong><br>  
   Notes: Some notes about this entry 
   <br>
    <div class="tags float-right">
-    Tags: 
      <button class="button button-clear button-clear button-tag">net</button>
      <button class="button button-clear button-tag">learning</button>  
     </div>
   </section>
   <section class="container password-box">
   Login: <strong>oz.tiram@gmail.com</strong>
-  <br>Website:<strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
+  <br>Website: <strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
   <br>Password: <strong>********</strong><br>  
   Notes: Some notes about this entry 
   <br>
    <div class="tags float-right">
-    Tags: 
      <button class="button button-clear button-clear button-tag">net</button>
      <button class="button button-clear button-tag">learning</button>  
     </div>
   </section>
   <section class="container password-box">
   Login: <strong>oz.tiram@gmail.com</strong>
-  <br>Website:<strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
+  <br>Website: <strong><a href="stackoverflow.com">http://stackoverflow.com</a></strong>
   <br>Password: <strong>********</strong><br>  
   Notes: Some notes about this entry 
   <br>
    <div class="tags float-right">
-    Tags: 
      <button class="button button-clear button-clear button-tag">net</button>
      <button class="button button-clear button-tag">learning</button>  
     </div>
   </section>
+
 </main>
 
 <script type="text/javascript">

+ 54 - 0
pwman/ui/templates/static/css/style.css

@@ -381,3 +381,57 @@ img {
 .button-tag {
   padding: 0px 0px;
 }
+
+.modalDialog {
+		position: fixed;
+		font-family: Arial, Helvetica, sans-serif;
+		top: 0;
+		right: 0;
+		bottom: 0;
+		left: 0;
+		background: rgba(0,0,0,0.8);
+		z-index: 99999;
+		opacity:0;
+		-webkit-transition: opacity 400ms ease-in;
+		-moz-transition: opacity 400ms ease-in;
+		transition: opacity 400ms ease-in;
+		pointer-events: none;
+	}
+
+	.modalDialog:target {
+		opacity:1;
+		pointer-events: auto;
+	}
+
+	.modalDialog > div {
+		width: 400px;
+		position: relative;
+		margin: 10% auto;
+		padding: 5px 20px 13px 20px;
+		border-radius: 10px;
+		background: #fff;
+		background: -moz-linear-gradient(#fff, #999);
+		background: -webkit-linear-gradient(#fff, #999);
+		background: -o-linear-gradient(#fff, #999);
+	}
+
+	.close {
+		background: #606061;
+		color: #FFFFFF;
+		line-height: 25px;
+		position: absolute;
+		right: -12px;
+		text-align: center;
+		top: -10px;
+		width: 24px;
+		text-decoration: none;
+		font-weight: bold;
+		-webkit-border-radius: 12px;
+		-moz-border-radius: 12px;
+		border-radius: 12px;
+		-moz-box-shadow: 1px 1px 3px #000;
+		-webkit-box-shadow: 1px 1px 3px #000;
+		box-shadow: 1px 1px 3px #000;
+	}
+
+	.close:hover { background: #00d9ff; }