Changeset b5ce654 for src


Ignore:
Timestamp:
02/06/23 19:28:42 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
0fb69cc
Parents:
a69d48c
Message:

Style updates

Location:
src/main
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/config/WebSecurityConfig.java

    ra69d48c rb5ce654  
    4040                .loginPage("/login").permitAll()
    4141                .failureUrl("/login?error=BadCredentials")
    42                 .defaultSuccessUrl("/products", true)
     42                .defaultSuccessUrl("/home", true)
    4343                .and()
    4444                .logout()
  • src/main/java/com/example/moviezone/web/HomeController.java

    ra69d48c rb5ce654  
    5656        List<String> genres= List.of(film.getGenre().split(","));
    5757        double r=customerRatesFilmService.avg_rating(film.getId_film());
     58        model.addAttribute("rating",r);
    5859        model.addAttribute("genres", genres);
    5960        model.addAttribute("bodyContent", "film");
  • src/main/resources/templates/addEvent.html

    ra69d48c rb5ce654  
    11<th:block xmlns:th="http://www.thymeleaf.org">
    2     <section class="jumbotron text-center">
    3         <div class="container">
    4             <h1 class="jumbotron-heading">Add New Event</h1>
    5         </div>
    6     </section>
    7 
    8     <div class="container">
     2    <div style="color: white" class="container">
     3        <h1 class="jumbotron-heading">Add New Event</h1>
    94        <div class="row">
    105            <div class="col-md-5">
  • src/main/resources/templates/addFilm.html

    ra69d48c rb5ce654  
    11<th:block xmlns:th="http://www.thymeleaf.org">
    2     <section class="jumbotron text-center">
    3         <div class="container">
    4             <h1 class="jumbotron-heading">Add New Film</h1>
    5         </div>
    6     </section>
    72
    8     <div class="container">
     3    <div class="container" style="color: white">
     4        <h1 class="jumbotron-heading">Add New Film</h1>
    95        <div class="row">
    106            <div class="col-md-5">
  • src/main/resources/templates/addProjection.html

    ra69d48c rb5ce654  
    11<th:block xmlns:th="http://www.thymeleaf.org">
    2     <section class="jumbotron text-center">
    3         <div class="container">
    4             <h1 class="jumbotron-heading">Add New Projection</h1>
    5         </div>
    6     </section>
    72
    8     <div class="container">
     3    <div class="container" style="color: white">
     4        <h1 class="jumbotron-heading">Add New Projection</h1>
    95        <div class="row">
    106            <div class="col-md-5">
  • src/main/resources/templates/film.html

    ra69d48c rb5ce654  
    1212    .main{
    1313        display: flex;
    14         justify-content: flex-start;
     14        justify-content: space-between;
    1515        align-items: flex-start;
    1616        margin-left: 100px;
     17    }
     18    .slika{
     19        margin-right: 100px;
     20    }
     21    img{
     22        width: 300px;
     23        height: 350px;
     24        border-radius: 20px;
    1725    }
    1826</style>
     
    3543                <span th:text="${film.director}"></span>
    3644            </h4>
     45            <h4 style="color: white">
     46                <span th:text="${rating}"></span>
     47                <span>/5</span>
     48            </h4>
    3749        </div>
     50    <div class="slika">
     51        <img th:src="@{${film.getUrl()}}"/>
     52    </div>
    3853
    3954</div>
    4055</div>
    41 </div>
Note: See TracChangeset for help on using the changeset viewer.