Changeset 143 in code


Ignore:
Timestamp:
Aug 26, 2023, 12:23:28 PM (22 months ago)
Author:
Izuru Yakumo
Message:

Use better coloring [1/2]

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yukari.go

    r142 r143  
    220220var YUKARI_HTML_PAGE_START string = `<!doctype html>
    221221<html>
    222 <head>
    223 <title>YukariSukima</title>
    224 <meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
    225 <style>
    226 html { height: 100%; }
    227 body { min-height : 100%; display: flex; flex-direction:column; font-family: 'Garamond', 'Georgia', serif; text-align: center; color: #444; background: #FAFAFA; margin: 0; padding: 0; font-size: 1.1em; }
    228 input { border: 1px solid #888; padding: 0.3em; color: #444; background: #FFF; font-size: 1.1em; }
    229 input[placeholder] { width:80%; }
    230 a { text-decoration: none; #2980b9; }
    231 h1, h2 { font-weight: 200; margin-bottom: 2rem; }
    232 h1 { font-size: 3em; }
    233 .container { flex:1; min-height: 100%; margin-bottom: 1em; }
    234 .footer { margin: 1em; }
    235 .footer p { font-size: 0.8em; }
    236 </style>
    237 </head>
    238 <body>
    239         <div class="container">
    240                 <h1>YukariSukima</h1>
     222  <head>
     223    <title>Yukari's Gap</title>
     224    <meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
     225    <style>
     226      html { height: 100%; }
     227      body { min-height : 100%; display: flex; flex-direction:column; font-family: 'Garamond', 'Georgia', serif; text-align: center; color: #BC4BFC; background: #FAFAFA; margin: 0;
     228      padding: 0; font-size: 1.1em; }
     229      input { border: 1px solid #888; padding: 0.3em; color: #BC4BFC; background: #FFF; font-size: 1.1em; }
     230      input[placeholder] { width:80%; }
     231      a { text-decoration: none; #2980b9; }
     232      h1, h2 { font-weight: 200; margin-bottom: 2rem; }
     233      h1 { font-size: 3em; }
     234      .container { flex:1; min-height: 100%; margin-bottom: 1em; }
     235      .footer { margin: 1em; }
     236      .footer p { font-size: 0.8em; }
     237    </style>
     238  </head>
     239  <body>
     240    <div class="container">
     241      <h1>Yukari's Gap</h1>
    241242`
    242243
    243244var YUKARI_HTML_PAGE_END string = `
    244         </div>
    245         <div class="footer">
    246                 <p>Yukari rewrites web pages to exclude malicious HTML tags and CSS/HTML attributes. It also replaces external resource references to prevent third-party information leaks.<br />
    247                 <a href="https://marisa.chaotic.ninja/yukari">view on github</a>
     245    </div>
     246    <div class="footer">
     247      <p>Yukari rewrites web pages to exclude malicious HTML tags and CSS/HTML attributes. It also replaces external resource references to prevent third-party information leaks.<br />
     248        <a href="https://git.chaotic.ninja/yakumo.izuru/yukari">view on 「混沌とした 忍者」Git</a>
    248249                </p>
    249250        </div>
     
    270271    <span><a href="/">Yukari's Gap</a></span>
    271272    <input type="url" value="{{.BaseURL}}" name="{{.URLParamName}}" {{if .HasYukariKey }}readonly="true"{{end}} />
    272     This is a <a href="https://marisa.chaotic.ninja/yukari">proxified and sanitized</a> view of the page, visit <a href="{{.BaseURL}}" rel="noreferrer">original site</a>.
     273    This is a <a href="https://git.chaotic.ninja/yakumo.izuru/yukari">proxified and sanitized</a> view of the page, visit <a href="{{.BaseURL}}" rel="noreferrer">original site</a>.
    273274  </form>
    274275</div>
     
    278279#yukariheader * { padding: 0; margin: 0; }
    279280#yukariheader p { padding: 0 0 0.7em 0; display: block; }
    280 #yukariheader a { color: #3498db; font-weight: bold; display: inline; }
     281#yukariheader a { color: #8934DB; font-weight: bold; display: inline; }
    281282#yukariheader label { text-align: right; cursor: pointer; position: fixed; right: 4px; top: 4px; display: block; color: #444; }
    282283#yukariheader > form > span { font-size: 24px; font-weight: bold; margin-right: 20px; margin-left: 20px; }
Note: See TracChangeset for help on using the changeset viewer.