landing page
import paithan.core.Html;
import paithan.core.Paithan;
public class LandingPage {
public static void main(String[] args) {
Paithan app = new Paithan();
app.get("/", (req, res) -> {
res.type("text/html");
return Html.page(
Html.head(
Html.title("Welcome to My Landing Page"),
Html.link().withRel("stylesheet").withHref("styles.css") // Link to your CSS file
),
Html.body(
Html.h1("Welcome to My Landing Page"),
Html.p("This is a simple landing page created with Paithan."),
Html.p("Feel free to explore!")
)
).render();
});
}
}
Comments
Post a Comment