~netlandish/links

bc230afe829a50f098990909357c96464a084675 — Peter Sanchez 11 days ago dfd8085
Adding some initial homepage copy
3 files changed, 57 insertions(+), 4 deletions(-)

M core/routes.go
M templates/base.html
M templates/index.html
M core/routes.go => core/routes.go +40 -2
@@ 279,8 279,46 @@ func (s *Service) Homepage(c echo.Context) error {
	}

	lt := localizer.GetSessionLocalizer(c)
	pd := localizer.NewPageData(lt.Translate("Welcome to Link Taco"))
	pd.Data["intro"] = lt.Translate("lorem ipsum")
	pd := localizer.NewPageData(
		lt.Translate("Social bookmarking plus link sharing, shortening and listings all in one app."),
	)
	pd.Data["line1"] = lt.Translate(
		"Welcome to LinkTaco. Where you can mix all your link saving and sharing needs in one " +
			"tight little bundle. Much like a taco. A link taco if you will.",
	)
	pd.Data["line2"] = lt.Translate(
		"OK that's cheesy, I know... get it... cheesy? OK, I'll stop. Everyone knows you don't " +
			"actually put cheese in tacos.",
	)
	pd.Data["line3"] = lt.Translate("Seriously though...")
	pd.Data["line4"] = lt.Translate(
		"Social bookmarking is not new, it's just been forgotten. Link shortening with " +
			"analytics has been around forever. Link listings became cool once social media " +
			"started allowing us to post a link to our websites in our profiles.",
	)
	pd.Data["line5"] = lt.Translate(
		"Up until now, all of these things were hosted on different services:",
	)
	pd.Data["pinboard"] = lt.Translate("Social bookmarking: Pinboard (Delicious)")
	pd.Data["bitly"] = lt.Translate("Link shortening: Bitly et al")
	pd.Data["linktree"] = lt.Translate("Link listings: Linktree et al")
	pd.Data["line5"] = lt.Translate("Peace Pinboard. Bye Bitly. Later Linktree.")
	pd.Data["line6"] = lt.Translate(
		"Hello LinkTaco! A single, open source, platform for you to host all of your " +
			"links. Custom domains, QR codes, Analytics, full API, multiple organizations " +
			"w/ unlimited members are just some of what's included. See the full features " +
			"page for more.",
	)
	pd.Data["line7"] = lt.Translate(
		"Since we're a 100%% open source project you can host your own instance if you'd " +
			"like full control over your own platform. See the install docs for more.",
	)
	pd.Data["line8"] = lt.Translate(
		"Ready to get started? It's free to make an account and use it forever (with " +
			"some limitations). To use all features you have to pay just a few bucks a year, " +
			"or a few per month if you're a business, and that's it. Simple!",
	)

	pd.Data["login"] = lt.Translate("Login")
	pd.Data["email_address"] = lt.Translate("Email Address")
	pd.Data["password"] = lt.Translate("Password")

M templates/base.html => templates/base.html +1 -1
@@ 292,7 292,7 @@
	<a href="https://man.code.netlandish.com/~netlandish/policies/terms-of-service.md" target="_blank">Terms of Use</a>
	<a href="https://man.code.netlandish.com/~netlandish/policies/privacy.md" target="_blank">Privacy Policy</a>
	<span>
	  <a href="https://code.netlandish.com/~netlandish/links">Source Code</a>
	  <a href="https://code.netlandish.com/~netlandish/links" target="_blank">Source Code</a>
	  <small class="text-muted">(v: {{ .serverVersion }})</small>
	</span>
      </div>

M templates/index.html => templates/index.html +16 -1
@@ 10,7 10,22 @@
<div class="row">
  <section class="col-8">
    <h1>{{.pd.Title}}</h1>
    <p>{{.pd.Data.intro}}</p>
    <p>{{.pd.Data.line1}}</p>
    <p>{{.pd.Data.line2}}</p>
    <p>{{.pd.Data.line3}}</p>
    <p>{{.pd.Data.line4}}</p>
    <p>{{.pd.Data.line5}}</p>
    <p>
      <ul>
        <li>{{.pd.Data.pinboard}}</li>
        <li>{{.pd.Data.bitly}}</li>
        <li>{{.pd.Data.linktree}}</li>
      </ul>
    </p>
    <p>{{.pd.Data.line6}}</p>
    <p>{{.pd.Data.line7}}</p>
    <p>{{.pd.Data.line8}}</p>
    <p>{{.pd.Data.line9}}</p>
  </section>
  <section class="col-4">
    <div class="card shadow-card">