diff --git a/13-testimonials-grid-section/build.sbt b/13-testimonials-grid-section/build.sbt index 679b96e..29e616c 100644 --- a/13-testimonials-grid-section/build.sbt +++ b/13-testimonials-grid-section/build.sbt @@ -10,6 +10,6 @@ lazy val root = (project in file(".")) libraryDependencies ++= Seq( "com.lihaoyi" %% "cask" % "0.9.1", "com.lihaoyi" %% "mainargs" % "0.5.0", - "org.thymeleaf" % "thymeleaf" % "3.1.1.RELEASE" + "org.thymeleaf" % "thymeleaf" % "3.1.1.RELEASE", ) ) diff --git a/13-testimonials-grid-section/src/main/java/testimonialsgrid/JTestimonial.java b/13-testimonials-grid-section/src/main/java/testimonialsgrid/JTestimonial.java new file mode 100644 index 0000000..4227b89 --- /dev/null +++ b/13-testimonials-grid-section/src/main/java/testimonialsgrid/JTestimonial.java @@ -0,0 +1,40 @@ +package testimonialsgrid; + +public class JTestimonial { + private String author; + private String text; + private int age; + + // Constructor + public JTestimonial(String author, String text, int age) { + this.author = author; + this.text = text; + this.age = age; + } + + // Getters + public String getAuthor() { + return author; + } + + public String getText() { + return text; + } + + public int getAge() { + return age; + } + + // Setters + public void setAuthor(String author) { + this.author = author; + } + + public void setText(String text) { + this.text = text; + } + + public void setAge(int age) { + this.age = age; + } +} diff --git a/13-testimonials-grid-section/src/main/resources/templates/index.html b/13-testimonials-grid-section/src/main/resources/templates/index.html index 66bdc73..4e8f330 100644 --- a/13-testimonials-grid-section/src/main/resources/templates/index.html +++ b/13-testimonials-grid-section/src/main/resources/templates/index.html @@ -5,8 +5,10 @@ + - + +
Daniel Clifford
+ ++ "Hello" +
+ - “ I was an EMT for many years before I joined the bootcamp. I’ve been looking to make a - transition and have heard some people who had an amazing experience here. I signed up - for the free intro course and found it incredibly fun! I enrolled shortly thereafter. - The next 12 weeks was the best - and most grueling - time of my life. Since completing - the course, I’ve successfully switched careers, working as a Software Engineer at a VR startup. ” +