Ver a proveniência

Add about page

tags/v1.0
Matt Baer há 8 anos
ascendente
cometimento
8dcb76e0f0
4 ficheiros alterados com 64 adições e 3 eliminações
  1. +1
    -1
      app.go
  2. +56
    -0
      static/about.html
  3. +6
    -0
      static/css/core.less
  4. +1
    -2
      static/index.html

+ 1
- 1
app.go Ver ficheiro

@@ -50,7 +50,7 @@ func (app *app) initRouter() {
api := app.router.PathPrefix("/⌂/").Subrouter()
api.HandleFunc("/create", app.handler(createHouse)).Methods("POST").Name("create")

app.router.HandleFunc("/{house:[A-Za-z0-9.-]+}.html", app.handler(getHouse)).Methods("GET").Name("get")
app.router.HandleFunc("/{house:[A-Za-z0-9.-]{8}}.html", app.handler(getHouse)).Methods("GET").Name("get")
app.router.PathPrefix("/").Handler(http.FileServer(http.Dir(app.cfg.StaticDir)))
}



+ 56
- 0
static/about.html Ver ficheiro

@@ -0,0 +1,56 @@
<!DOCTYPE HTML>
<html>
<head>

<title>About HTMLhouse</title>
<link rel="stylesheet" type="text/css" href="/css/house.css" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="icon" type="image/png" href="/img/favicon-chrome.png" sizes="192x192">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#888888" />

<meta name="description" content="HTMLhouse helps you publish HTML quickly. Created by the team at Write.as.">
<meta name="application-name" content="HTMLhouse">
<meta name="application-url" content="https://html.house">
<meta itemprop="name" content="About HTMLhouse">
<meta itemprop="description" content="HTMLhouse helps you publish HTML quickly. Created by the team at Write.as.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="About HTMLhouse">
<meta name="twitter:description" content="HTMLhouse helps you publish HTML quickly. Created by the team at Write.as.">
<meta property="og:title" content="About HTMLhouse" />
<meta property="og:site_name" content="HTMLhouse" />
<meta property="og:type" content="object" />
<meta property="og:url" content="https://html.house/" />
<meta property="og:description" content="HTMLhouse helps you publish HTML quickly. Created by the team at Write.as." />

</head>
<body>
<header>
<h1>HTMLhouse</h1>
<nav>
<a class="home" href="/">HTML &#8962;</a>
<a class="current" href="/about.html">about</a>
<a href="mailto:hello@html.house">contact</a>
</nav>
</header>

<div id="wrapper">
<h2>About</h2>
<p>HTMLhouse helps you publish HTML quickly. Use the <a href="/">editor / preview</a> to build your HTML page, and press <strong>publish</strong> when you're done. That's it!</p>

<p>HTMLhouse was built by the team at <a href="https://write.as">Write.as</a>, another no-fuss platform that lets you share your thoughts anonymously.</p>
</div>

<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-47877053-8', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

+ 6
- 0
static/css/core.less Ver ficheiro

@@ -39,6 +39,11 @@ body {
}
a {
color: #999;
&.current {
color: #666;
text-decoration: underline;
cursor: default;
}
}
}
}
@@ -196,6 +201,7 @@ input {

#official-writing, #wrapper {
margin: 1em 2em;
font-size: 1.2em;
h2, h3, h4 {
color: @subheaders;


+ 1
- 2
static/index.html Ver ficheiro

@@ -30,9 +30,8 @@
<header>
<h1>HTMLhouse</h1>
<nav>
<a class="home" href="/">HTML &#8962;</a>
<a href="/about.html">about</a>
<a href="mailto:hello@html.house">contact</a>
<a href="https://write.as">by Write.as</a>
</nav>
<a id="publish" href="#">publish</a>
</header>


Carregando…
Cancelar
Guardar