Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<licenses>
Expand Down
34 changes: 34 additions & 0 deletions src/main/resources/static/resources/css/petclinic.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 42 additions & 6 deletions src/main/resources/templates/welcome.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,52 @@
<!DOCTYPE html>

<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'home')}">
<html xmlns:th="https://www.thymeleaf.org"
th:replace="~{fragments/layout :: layout (~{::body},'home')}">

<body>

<h2 th:text="#{welcome}">Welcome</h2>
<div class="row">
<div class="col-md-12">
<img class="img-responsive" src="../static/resources/images/pets.png" th:src="@{/resources/images/pets.png}" />
<div class="container home-page">

<div class="text-center hero-section">
<h1>🐾Welcome to PetClinic</h1>
<p class="lead">Caring for your pets with love and expertise.</p>
<a th:href="@{/owners/find}" class="btn btn-primary btn-lg">Get Started</a>
</div>

<hr/>

<div class="row text-center services">

<div class="col-md-4 service-box">
<h3>🐶 Pet Owners</h3>
<p>Manage pet owners and their details efficiently.</p>
<a th:href="@{/owners/find}" class="btn btn-default">Explore</a>
</div>

<div class="col-md-4 service-box">
<h3>🐱 Pet Records</h3>
<p>Track pets, breeds, and medical history.</p>
<a th:href="@{/owners/find}" class="btn btn-default">View Pets</a>
</div>

<div class="col-md-4 service-box">
<h3>📅 Vet Visits</h3>
<p>Schedule and manage visits with ease.</p>
<a th:href="@{/owners/find}" class="btn btn-default">Check Visits</a>
</div>

</div>

<hr/>


<div class="text-center">
<img class="img-responsive center-block"
th:src="@{/resources/images/pets.png}" />
</div>

</div>

</body>

</html>
</html>
53 changes: 53 additions & 0 deletions src/main/scss/home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.home-page {

.hero-section {
padding: 40px 0;

h1 {
font-size: 60px;
color: #2c3e50;
font-weight: bold;
}

.lead {
font-size: 18px;
color: #777;
margin: 15px 0;
}

.btn {
margin-top: 10px;
padding: 10px 20px;
border-radius: 8px;
}
}

.services {
margin-top: 30px;

.service-box {
padding: 20px;
border-radius: 10px;
background: #f8f9fa;
transition: 0.3s;
}

.service-box:hover {
background: #eef7f6;
transform: translateY(-5px);
}

h3 {
margin-bottom: 10px;
}

p {
color: #555;
}
}

img {
margin-top: 40px;
max-width: 100%;
}
}
1 change: 1 addition & 0 deletions src/main/scss/petclinic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,4 @@ hr {
@import "typography.scss";
@import "header.scss";
@import "responsive.scss";
@import "home";