Commit c73514eb authored by Ondřej Pavlica's avatar Ondřej Pavlica
Browse files

Merge branch 'feature/balga/homepage' into 'main'

Homepage

See merge request !41
parents 77e4ec8f 82b94f76
Pipeline #140811 passed with stages
in 2 minutes and 53 seconds
......@@ -2,7 +2,7 @@
PA165 course at MUNI Spring 2022.
# Build, Run Tests, and Launch the Web Application
# Build and Run Tests
Assuming you are in the root directory of this project:
```bash
......@@ -19,7 +19,20 @@ Password: `admin`
E-mail: `user@winery.com`
Password: `user`
# About the Project
# How to test the REST API
- Download Insomnia or similar tool for sending HTTP requests
- Run the application (no need of login, REST API is there only for demonstration purposes)
- Get all grapes: GET http://localhost:8080/pa165/rest/grape
- Get grape with id 2: GET http://localhost:8080/pa165/rest/grape/2
- Create new variety Chardonnay: POST http://localhost:8080/pa165/rest/grape/create; body of request: {"name":"Chardonnay"}
- Change Pálava to Hibernal: POST http://localhost:8080/pa165/rest/grape/edit; body of request: {"id":1,"name":"Hibernal"}
- Delete Tramín červený: DELETE http://localhost:8080/pa165/rest/grape/delete; body of request: {"id":2,"name":"Tramín červený"}
- POST and DELETE requests does not return, inspect content of grape database by the first command
# About Project
- **Name**: Winery Management System
- **Technologies**: Java 11, Spring, Hibernate, Maven
......
......@@ -9,44 +9,69 @@
<div class="container px-4 px-lg-5">
<!-- Heading Row-->
<div class="row gx-4 gx-lg-5 align-items-center my-5">
<div class="col-lg-7"><img class="img-fluid rounded mb-4 mb-lg-0" src="https://dummyimage.com/900x400/dee2e6/6c757d.jpg" alt="..." /></div>
<div class="col-lg-5">
<h1 class="font-weight-light">Business Name or Tagline</h1>
<p>This is a template that is great for small businesses. It doesn't have too much fancy flare to it, but it makes a great use of the standard Bootstrap core components. Feel free to use this template for any project you want!</p>
<a class="btn btn-primary" href="#!">Call to Action!</a>
<div class="col-lg-7"><img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2016/10/22/20/34/wines-1761613__340.jpg" alt="..." /></div>
<div class="col-lg-5" th:if='${model.currentUser != null && model.currentUser.hasRole("ADMIN")}'>
<h1 class="font-weight-light">Winery IS</h1>
<p>Welcome to the Winery information system. As an administrator,
you can track your production, from harvest to final product. You can also manage your users
and inspect their reviews.</p>
</div>
<div class="col-lg-5" th:if='${model.currentUser != null && !model.currentUser.hasRole("ADMIN")}'>
<h1 class="font-weight-light">Winery IS</h1>
<p>Welcome to the Winery information system. You can check our products, buy some or write a review.</p>
</div>
</div>
<!-- Call to Action-->
<div class="card text-white bg-secondary my-5 py-4 text-center">
<div class="card-body"><p class="text-white m-0">This call to action card is a great place to showcase some important information or display a clever tagline!</p></div>
</div>
<!-- Content Row-->
<div class="row gx-4 gx-lg-5">
<div class="col-md-4 mb-5">
<div class="col-md-4 mb-5" th:if='${model.currentUser != null && model.currentUser.hasRole("ADMIN")}'>
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Grapes</h2>
<p class="card-text">Grape varieties which you grow</p>
<img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2014/12/02/03/11/grapes-553462__340.jpg" alt="..." />
</div>
<div class="card-footer" align="center"><a class="btn btn-primary btn-sm" th:href="@{/grape}">Explore</a></div>
</div>
</div>
<div class="col-md-4 mb-5" th:if='${model.currentUser != null && model.currentUser.hasRole("ADMIN")}'>
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Wine types</h2>
<p class="card-text">Manufactured types of wine</p>
<img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2016/07/26/16/16/wine-1543170_960_720.jpg" alt="..." />
</div>
<div class="card-footer" align="center"><a class="btn btn-primary btn-sm" th:href="@{/winetype}">Explore</a></div>
</div>
</div>
<div class="col-md-4 mb-5" th:if='${model.currentUser != null}'>
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Card One</h2>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem magni quas ex numquam, maxime minus quam molestias corporis quod, ea minima accusamus.</p>
<h2 class="card-title">Products</h2>
<p class="card-text">Wine bottles for sale</p>
<img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2016/10/22/21/44/white-wine-1761771__340.jpg" alt="..." />
</div>
<div class="card-footer"><a class="btn btn-primary btn-sm" href="#!">More Info</a></div>
<div class="card-footer" align="center"><a class="btn btn-primary btn-sm" th:href="@{/winebottle}">Explore</a></div>
</div>
</div>
<div class="col-md-4 mb-5">
<div class="col-md-4 mb-5" th:if='${model.currentUser != null && model.currentUser.hasRole("ADMIN")}'>
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Card Two</h2>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod tenetur ex natus at dolorem enim! Nesciunt pariatur voluptatem sunt quam eaque, vel, non in id dolore voluptates quos eligendi labore.</p>
<h2 class="card-title">Harvest</h2>
<p class="card-text">Harvests performed so far</p>
<img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2015/10/23/23/04/chardonnay-1003862__340.jpg" alt="..." />
</div>
<div class="card-footer"><a class="btn btn-primary btn-sm" href="#!">More Info</a></div>
<div class="card-footer" align="center"><a class="btn btn-primary btn-sm" th:href="@{/harvest}">Explore</a></div>
</div>
</div>
<div class="col-md-4 mb-5">
<div class="col-md-4 mb-5" th:if='${model.currentUser != null}'>
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Card Three</h2>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem magni quas ex numquam, maxime minus quam molestias corporis quod, ea minima accusamus.</p>
<h2 class="card-title">Reviews</h2>
<p class="card-text">User's reviews on the products</p>
<img class="img-fluid rounded mb-4 mb-lg-0" src="https://cdn.pixabay.com/photo/2020/10/01/08/28/smileys-5617876_960_720.jpg" alt="..." />
</div>
<div class="card-footer"><a class="btn btn-primary btn-sm" href="#!">More Info</a></div>
<div class="card-footer" align="center"><a class="btn btn-primary btn-sm" th:href="@{/productreview}">Explore</a></div>
</div>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment