wip test new site content

This commit is contained in:
Nate
2021-09-14 17:54:23 -04:00
parent 4be17b7a9b
commit 0f2ba45267
4 changed files with 86 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
use crate::{AppState, Request, RequestExt};
use std::sync::Arc;
use tide::http::mime;
pub fn add_routes(app: &mut tide::Server<Arc<AppState>>) {
app.at("/app").get(get_about_app);
}
async fn get_about_app(mut request: Request) -> tide::Result {
let data = request.layout_data().await?;
Ok(tide::Response::builder(200)
.body(request.state().render_template("about_app.hbs", &data)?)
.content_type(mime::HTML)
.build())
}
+2
View File
@@ -9,6 +9,7 @@ mod github;
mod home;
mod rpc;
mod team;
mod about_app;
use self::errors::TideResultExt as _;
use anyhow::Result;
@@ -173,6 +174,7 @@ pub async fn run_server(
web.with(errors::Middleware);
home::add_routes(&mut web);
team::add_routes(&mut web);
about_app::add_routes(&mut web);
admin::add_routes(&mut web);
auth::add_routes(&mut web);
assets::add_routes(&mut web);
+63
View File
@@ -0,0 +1,63 @@
{{#> layout }}
<div class="bg-white">
<h1>TEST TEST</h1>
<div class="container mx-auto py-12 px-8 md:px-12 lg:flex lg:flex-row">
<div class="mb-16 lg:mb-0 lg:flex-1 lg:mr-8 xl:mr-16">
<img src="https://github.com/nathansobo.png?size=200" class="mx-auto mb-4 h-28 rounded-full">
<div>
<a href="https://github.com/nathansobo"
class="block text-center mb-4 font-display text-2xl font-bold whitespace-nowrap hover:underline">
TEST TEST TEST
</a>
<div class="prose md:prose-lg lg:prose xl:prose-lg">
Nathan joined GitHub in late 2011 to build the <a href="https://atom.io">Atom text editor</a>, and
he led the Atom team until 2018. He also co-led development of <a
href="https://teletype.atom.io">Teletype for Atom</a>, pioneering one of the first production
uses of conflict-free replicated data types for collaborative text editing. He's been dreaming about
building the worlds best text editor since he graduated from college, and is excited to finally
have
the knowledge, tools, and resources to achieve this vision.
</div>
</div>
</div>
<div class="mb-16 lg:mb-0 lg:flex-1 lg:mr-8 xl:mr-16">
<img src="https://github.com/as-cii.png?size=200" class="mx-auto mb-4 h-28 rounded-full">
<div>
<a href="https://github.com/as-cii"
class="block text-center mb-4 font-display text-2xl font-bold whitespace-nowrap hover:underline">
ANTONIO SCANDURRA
</a>
<div class="prose md:prose-lg lg:prose xl:prose-lg">
Antonio joined the Atom team in 2014 while still in university after his outstanding open source
contributions caught the attention of the team. He later joined Nathan in architecting <a
href="https://teletype.atom.io">Teletype for
Atom</a> and researching the foundations of what has turned into Zed. For the last two years,
hes
become an expert in distributed systems and conflict-free replicated data types through the
development of a real-time, distributed, conflict-free database implemented in Rust for <a
href="https://ditto.live">Ditto</a>.
</div>
</div>
</div>
<div class="mb-16 lg:mb-0 lg:flex-1">
<img src="https://github.com/maxbrunsfeld.png?size=200" class="mx-auto mb-4 h-28 rounded-full">
<div>
<a href="https://github.com/maxbrunsfeld"
class="block text-center mb-4 font-display text-2xl font-bold whitespace-nowrap hover:underline">
MAX BRUNSFELD
</a>
<div class="prose md:prose-lg lg:prose xl:prose-lg">
Max joined the Atom team in 2013 after working at Pivotal Labs. While driving Atom towards its 1.0
launch during the day, Max spent nights and weekends building <a
href="https://tree-sitter.github.io">Tree-sitter</a>, a blazing-fast and
expressive incremental parsing framework that currently powers all code analysis at GitHub. Before
leaving to start Zed, Max helped GitHub's semantic analysis team integrate Tree-sitter to support
syntax highlighting and code navigation on <a href="https://github.com">github.com</a>.
</div>
</div>
</div>
</div>
</div>
{{/layout}}
+6
View File
@@ -30,10 +30,16 @@
<span class="font-black">ZED</span><span class="font-light" style="padding-left: 1px">INDUSTRIES</span>
</a>
<div class="flex-1"></div>
<a href="/app" class="text-sm mr-4 hover:underline">
The App
</a>
<a href="/team" class="text-sm mr-4 hover:underline">
Team
</a>
{{#if current_user}}
<a href="/another" class="text-sm mr-4 hover:underline">
test
</a>
{{#if current_user.is_admin }}
<a href="/admin" class="text-sm mr-4 hover:underline">
Admin