Final changes for version 1.0

This commit is contained in:
Booklordofthedings 2024-12-06 18:48:54 +01:00
parent 31a36815f8
commit 59662f20e6
2 changed files with 33 additions and 9 deletions

View file

@ -6,15 +6,37 @@ class Index : Template
{
public this()
{
Title = "An aven website";
OutputFile = "\\Index.html";
Title = "An Aven website";
OutputFile = "Index.html";
this.Styles = """
body {
background-color:#89c5bb;
font-family: sans-serif;
font-size: 1.2rem;
}
""";
}
public override void Head(System.String buffer)
{
buffer.Append("<link rel=\"icon\" href=\"favicon.ico\"/>");
}
public override void Body(HTML body)
{
body.Children.Add(Div(
H1("Aven Website"),
Div("adssadsadsadsadsad", "asidosadsadsd")..SetValue("Style", "color:red;")
));
body.Children.Add(Empty(
H1("Aven"),
Hr(),
"Build static websites dynamically using Aven",
Ul(
Li("Fast"),
Li("Easily extendable"),
Li("Leverage the power of a normal programming language instead of just templating")
),
Br(),
A("Aven Repository")..SetValue("href", "https://code.booklordofthe.dev/Booklordofthedings/Aven")
));
}
}