-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use maud::{html, Markup, DOCTYPE}; | ||
|
||
use crate::{ | ||
config::{Neighbor, Node}, | ||
fragments::head, | ||
}; | ||
|
||
pub fn make_card_page( | ||
_node: &Node, | ||
// dependencies | ||
_neighbors: &Vec<Neighbor>, | ||
) -> Markup { | ||
html! { | ||
(DOCTYPE) | ||
head { | ||
(head()) | ||
|
||
// TODO: Social card stuff!!! | ||
title { "WOOF TODO" } | ||
} | ||
|
||
body { | ||
// TODO: make the header pretty?? | ||
// maybe not the full logo, or maybe a "back to" link | ||
|
||
// TODO: re-make the card here, with extra stuff?? maybe | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use maud::{html, Markup}; | ||
|
||
pub fn banner() -> Markup { | ||
html! { | ||
header.banner { | ||
h1.title { | ||
span.banner { | ||
span.block { | ||
span { "Cypher" } | ||
span { "Weavers" } | ||
} | ||
span.aside { "Cafe" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
pub fn head() -> Markup { | ||
html! { | ||
meta charset="utf-8"; | ||
meta name="viewport" content="width=device-width, initial-scale=1"; | ||
link rel="stylesheet" href="style.css"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters