37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
package ins.frontend;
|
|
|
|
import ins.frontend.utils.WebApp;
|
|
import org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.WebResponsePacket;
|
|
import org.openautonomousconnection.webserver.api.Route;
|
|
import org.openautonomousconnection.webserver.api.WebPage;
|
|
import org.openautonomousconnection.webserver.api.WebPageContext;
|
|
import org.openautonomousconnection.webserver.utils.Html;
|
|
|
|
import java.util.HashMap;
|
|
|
|
/**
|
|
* Landing page for the registrar ins.frontend.
|
|
*/
|
|
@Route(path = "index.html")
|
|
public final class index implements WebPage {
|
|
|
|
@Override
|
|
public WebResponsePacket handle(WebPageContext ctx) {
|
|
WebApp.init();
|
|
String html = Html.page("OAC INS Registrar", """
|
|
<div class="card">
|
|
<h2>OAC INS Registrar</h2>
|
|
<p class="muted">What you want to do?</p>
|
|
<div class="col"><a href="info.html">Info</a></div><br />
|
|
<div class="row">
|
|
<div class="col"><a href="login.html">Login</a></div>
|
|
<div class="col"><a href="register.html">Register</a></div>
|
|
<div class="col"><a href="dashboard.html">Dashboard</a></div>
|
|
</div>
|
|
</div>
|
|
""");
|
|
|
|
return new WebResponsePacket(200, "text/html", new HashMap<>(), Html.utf8(html));
|
|
}
|
|
}
|