simongig 5 years ago
parent
commit
c0a629ad92
4 changed files with 40 additions and 9 deletions
  1. 9
    1
      application/pom.xml
  2. 24
    1
      application/src/main/java/Quitt.java
  3. 6
    6
      website/index.html
  4. 1
    1
      website/index_styles.css

+ 9
- 1
application/pom.xml View File



</dependency> </dependency>


<dependency>

<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.0.11.RELEASE</version>

</dependency>

</dependencies> </dependencies>


<build> <build>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version> <version>3.8.0</version>
<configuration> <configuration>
<release>11</release>
<release>8</release>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

+ 24
- 1
application/src/main/java/Quitt.java View File

import io.javalin.Javalin; import io.javalin.Javalin;


import static io.javalin.plugin.rendering.template.TemplateUtil.model;

public class Quitt { public class Quitt {
public static void main(String[] args) { public static void main(String[] args) {
Javalin app = Javalin.create().start(7000); Javalin app = Javalin.create().start(7000);
app.get("/", ctx -> ctx.result("Hello World"));
app.config.addStaticFiles("/stylesheets");
app.config.addStaticFiles("/components");

app.get("/", ctx -> {
ctx.render("/index.html", model("firstName", "John", "lastName", "Doe"));
});

app.get("/index.html", ctx -> {
ctx.render("/index.html", model("firstName", "John", "lastName", "Doe"));
});

app.get("/balance.html", ctx -> {
ctx.render("/balance.html", model("firstName", "John", "lastName", "Doe"));
});



}

public void get()
{

} }
} }

+ 6
- 6
website/index.html View File

<!DOCTYPE html> <!DOCTYPE html>
<html lang="en">
<html lang="en" xmlns=th="http://www.thymeleaf.org">


<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="index_styles.css"> <link rel="stylesheet" href="index_styles.css">
<link rel="shortcut icon" type="image/x-icon" href="components/icons/Logo_testo.png">
<link rel="shortcut icon" type="image/x-icon" href="icons/Logo_testo.png">
<title>Testosteroth</title> <title>Testosteroth</title>
</head> </head>




<nav id="nav"> <nav id="nav">
<ul id="menu_left"> <ul id="menu_left">
<li class="menu_left_element"><a class="menu_element_text" href="/index.html"><img src="components/icons/home.svg"></a></li>
<li class="menu_left_element"><a class="menu_element_text" href="/index.html"><img src="icons/home.svg"></a></li>
</ul> </ul>


<ul id="menu_right"> <ul id="menu_right">
<li class="menu_right_element"><a class="menu_element_text" href="/balance.html"><img src="components/icons/balance.svg"></a></li>
<li class="menu_right_element"><a class="menu_element_text" href="/group.html"><img src="components/icons/group.svg"></a></li>
<li class="menu_right_element"><a class="menu_element_text" href="/login.html"><img src="components/icons/login.svg"></a></li>
<li class="menu_right_element"><a class="menu_element_text" href="/balance.html"><img src="icons/balance.svg"></a></li>
<li class="menu_right_element"><a class="menu_element_text" href="/group.html"><img src="icons/group.svg"></a></li>
<li class="menu_right_element"><a class="menu_element_text" href="/login.html"><img src="icons/login.svg"></a></li>
</ul> </ul>


</nav> </nav>

+ 1
- 1
website/index_styles.css View File

} }


.dropdown { .dropdown {
background-image: url("./components/icons/caret-down-solid.svg");
background-image: url("./icons/caret-down-solid.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 15px; background-size: 15px;
background-position: right; background-position: right;

Loading…
Cancel
Save