]> khamidou — GitHub mirrors - rfcspot.git/commitdiff
more changes
authorKarim Hamidou <karim@MacBook.local>
Sun, 28 Feb 2016 17:10:49 +0000 (09:10 -0800)
committerKarim Hamidou <karim@MacBook.local>
Sun, 28 Feb 2016 17:10:49 +0000 (09:10 -0800)
build.py
rfc.css
templates/index.html

index 239a945cb572e411db7059a12a691083620709d7..eda0502b03552c8cbe204beb7a87ba68738af363 100644 (file)
--- a/build.py
+++ b/build.py
@@ -59,8 +59,8 @@ def main():
     src_dir = sys.argv[1]
     dest_dir = sys.argv[2]
 
-    convert_rfc_html(src_dir, TMP_DIR)
-    build_rfcs(TMP_DIR, dest_dir)
+    #convert_rfc_html(src_dir, TMP_DIR)
+    #build_rfcs(TMP_DIR, dest_dir)
     copy_css(dest_dir)
     generate_site_index(dest_dir)
 
diff --git a/rfc.css b/rfc.css
index 017508b0ac248b1cda61dc47212d5d9aed749b17..186ac79522287b73c104250b4f38e4d36c071242 100644 (file)
--- a/rfc.css
+++ b/rfc.css
@@ -120,6 +120,11 @@ table td {
     }
 
 
+.homepage > input  {
+    font-size: 16px;
+    width: 40%;
+}
+
 /*---------------------- Syntax Highlighting -----------------------------*/
 td.linenos { background-color: #f0f0f0; padding-right: 10px; }
 span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
index 445b61d6762bf91e546c97f4d6a179ba99798347..ba794654bfaa785e1be94d77c420d30a7c4a6df4 100644 (file)
@@ -1,41 +1,24 @@
 <!DOCTYPE html>
-<html>
+<html style='height: 100%;'>
 <head>
   <meta http-equiv="content-type" content="text/html;charset=utf-8">
   <title>RFC Czar: RFC for the rest of us.</title>
   <link rel="stylesheet" href="rfc.css">
 </head>
-<body>
-<div id='container'>
-  <div id="background"></div>
-  <table cellspacing=0 cellpadding=0>
-  <thead>
+<body style="height: 100%;" class="homepage">
+<table style="width: 100%;">
     <tr>
-      <th class=docs><h1>RFC Czar</h1></th>
-      <th class=code></th>
+        <td style="text-align: center; vertical-align: middle; top: 40%;">
+            <center>
+                <h2>
+                    RFCs for <a href="rfc7231.html">rest of us</a>.<br>
+                </h2>
+                <div>
+                    <input type="text" placeholder="Type an RFC name or keywords"></input>
+                </div>
+            </center>
+        </td>
     </tr>
-  </thead>
-  <tbody>
-    <tr id='section-{{ num }}'>
-      <td class=docs>
-        <p>
-            RFC Czar gives you access to all the IETF RFCs, in an easy-to-understand two column format.
-        </p>
-        <p>
-            Try it on an <a href=''>example RFC</a>.
-        </p>
-      </td>
-      <td class=code>
-        <div class='highlight'>
-            <b>Related Stack Overflow questions:</b>
-            <ul>
-                {% for question in questions %}
-                    <li><a href={{ question['url'] }}>{{ question['title'] }}</a></li>
-                {% endfor %}
-            </ul>
-        </div>
-      </td>
-    </tr>
-  </table>
-</div>
+</table>
 </body>
+</html>