diff --git a/src/main/java/servlet/HomeServlet.java b/src/main/java/servlet/HomeServlet.java index 6554e34308a327d980f71a525997ed8088c0f06b..d17a43d5a62d6b529fb556573b5cdd85b8f6fa56 100644 --- a/src/main/java/servlet/HomeServlet.java +++ b/src/main/java/servlet/HomeServlet.java @@ -11,7 +11,7 @@ import java.io.IOException; * * @author Axel L. */ -@WebServlet(name = "Home", urlPatterns = ("/")) +@WebServlet(name = "Home", urlPatterns = {"/home"}) public class HomeServlet extends HttpServlet { @Override diff --git a/src/main/webapp/WEB-INF/home.jsp b/src/main/webapp/WEB-INF/home.jsp index 2f5a8df969dcc51d0ff05d80a48e91084caee470..b9f593e04517c5d08c8bc153d9c11984b160436e 100644 --- a/src/main/webapp/WEB-INF/home.jsp +++ b/src/main/webapp/WEB-INF/home.jsp @@ -10,8 +10,170 @@ My Latest Tricks + -

My Latest Tricks

+ <%@include file="jspf/header.jspf" %> +
+
+

MONTRE-NOUS TON MEILLEUR TRICK

+

La référence des tricks de skate, partagés par la communauté.

+ +
+
+

Le podium de la semaine

+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+
+

Les dernières vidéos

+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+
+ <%@include file="jspf/footer.jspf" %> diff --git a/src/main/webapp/WEB-INF/jspf/footer.jspf b/src/main/webapp/WEB-INF/jspf/footer.jspf index 31aa64251bcb9f08e05b5661e280c54364efe659..83b2491b6b9e8d6809ab5840ba1af23362c13275 100644 --- a/src/main/webapp/WEB-INF/jspf/footer.jspf +++ b/src/main/webapp/WEB-INF/jspf/footer.jspf @@ -1,3 +1,8 @@ <%-- any content can be specified here e.g.: --%> <%@ page pageEncoding="UTF-8" %> -

Footer

+ diff --git a/src/main/webapp/WEB-INF/jspf/header.jspf b/src/main/webapp/WEB-INF/jspf/header.jspf index efcc7a0eaeb2b63edc92b62161bf1cfc2a52bb50..039c58d8b30144dd2341957d0b4628a82bbc6dbd 100644 --- a/src/main/webapp/WEB-INF/jspf/header.jspf +++ b/src/main/webapp/WEB-INF/jspf/header.jspf @@ -1,3 +1,15 @@ <%-- any content can be specified here e.g.: --%> <%@ page pageEncoding="UTF-8" %> -

Header

+
+ +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 1ddb93da8328b542fc6e58bd4263627df033eeae..efc4d3380b9d64da77cc776fff2ee07acd033976 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -10,6 +10,6 @@ - home.jsp + home diff --git a/src/main/webapp/assets/css/style.css b/src/main/webapp/assets/css/style.css index bd5be7ac10a2a9e879aecf7b802b3e4817d686fb..4a836de005069a945617bbf19dd444c36804411c 100644 --- a/src/main/webapp/assets/css/style.css +++ b/src/main/webapp/assets/css/style.css @@ -7,3 +7,292 @@ Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css Author : Axel L. */ +@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap'); + +html, +body { + margin: 0; + min-height: 100%; +} + +body { + margin: 0; + min-height: 100vh; + display: flex; + flex-direction: column; + background-color: #222528; + background-image: url("../img/background.png"); + background-size: 100% auto; + background-repeat: repeat-y; + background-position: top center; + +} + +main { + flex: 1; +} + +/* Main navbar */ +nav { + height: 80px; + box-sizing: border-box; + background-color: #222528; + display: flex; + align-items: center; + padding: 5px 100px; + gap: 30px; +} + +/* Logo on the left */ +nav > img { + height: 65px; + object-fit: contain; + flex-shrink: 0; +} + +/* Large div filling the remaining space */ +.nav-content { + display: flex; + align-items: center; + justify-content: space-around; + width: fit-content; + margin-left: auto; + height: 60px; + padding: 0 20px; + box-sizing: border-box; + background-color: black; + border-radius: 50px; + gap: 15px; +} + +/* Navigation links */ +.nav-content a { + text-decoration: none; + color: white; + font-family: Inter; + transition: color 0.2s ease; +} + +.nav-content a:hover { + color: #00F3FB; +} + +.nav-content h3 { + margin: 0 20px; + font-weight: bold; + font-size: 22px; +} + +/* Avatar on the right */ +.nav-content img { + width: 42px; + height: 42px; + object-fit: cover; + border-radius: 50%; + flex-shrink: 0; + + .avatar-link { + display: flex; + align-items: center; + flex-shrink: 0; + } + + .avatar-link img { + width: 42px; + height: 42px; + object-fit: cover; + border-radius: 50%; + } +} + +.calltoaction { + background-image: url("../img/calltoaction.png"); + padding: 40px; + color: white; + font-size: 20px; + font-weight: bold; +} + +.calltoaction h4 { + margin-top: 0; + font-family: 'Permanent Marker', cursive; + font-size: 45px; +} + +/* Container for both buttons */ +.button-container { + display: flex; + align-items: center; + justify-content: center; + gap: 150px; + flex-wrap: wrap; + margin-top: 50px; + margin-bottom: 20px; +} + +/* Shared button styling */ +.blueButton, +.pinkButton { + display: inline-flex; + align-items: center; + justify-content: center; + font-family: 'Permanent Marker', cursive; + padding: 14px 28px; + border-radius: 30px; + text-decoration: none; + font-size: 25px; + font-weight: 600; + border: 2px solid transparent; + transition: all 0.3s ease; +} + +/* Blue button */ +.blueButton { + background-color: #167ac6; + color: black; + border-color: #62c5ff; + box-shadow: + 0 0 8px #62c5ff, + 0 0 18px #3498db, + 0 0 35px #3498db, + 0 0 55px rgba(52, 152, 219, 0.8); +} + +/* Pink button */ +.pinkButton { + background-color: #d9297d; + color: black; + border-color: #ff9ed0; + box-shadow: + 0 0 8px #ff9ed0, + 0 0 18px #e84393, + 0 0 35px #e84393, + 0 0 55px rgba(232, 67, 147, 0.8); +} + +/* Hover effects */ +.blueButton:hover, +.pinkButton:hover { + transform: translateY(-2px); + opacity: 0.9; +} + +h2 { + font-size: 30px; + margin: 20px; + color: white; + font-family: 'Permanent Marker', cursive; +} + +.videos-container { + display: flex; + flex-wrap: wrap; + gap: 30px; + width: 100%; + padding: 0 30px; + margin-bottom: 40px; + box-sizing: border-box; + align-items: flex-start; +} + +.video { + flex: 0 0 calc((100% - 60px) / 3); + padding: 10px; + min-width: 0; + box-sizing: border-box; + border-radius: 12px; + overflow: visible; + color: white; + background-color: black; + /* Blue neon glow */ + border: 2px solid #62c5ff; + box-shadow: + 0 0 5px #62c5ff, + 0 0 10px #3498db, + 0 0 18px rgba(52, 152, 219, 0.6); +} + +/* YouTube video */ +.video-player { + width: 100%; + aspect-ratio: 16 / 9; + border-radius: 12px; + overflow: hidden; +} + +.video-player iframe { + display: block; + width: 100%; + height: 100%; + border: 0; +} + +/* Title */ +.video h5 { + margin: 12px 0; + font-size: 18px; +} + +/* Vote and comment statistics */ +.video-stats { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +} + +.stat { + display: flex; + align-items: center; + gap: 8px; +} + +.stat img { + width: 24px; + height: 24px; + object-fit: contain; +} + +.stat p { + margin: 0; +} + +/* STATS VIDEO */ +.stat img { + width: 24px; + height: 24px; + object-fit: contain; +} + +.stat p { + margin: 0; + color: white; + font-size: 16px; +} + + +footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 15px 50px; + margin-top: auto; + min-height: 60px; + box-sizing: border-box; + background-color: #222528; + color: white; +} + +footer p { + margin: 0; + font-size: 14px; +} + +.footer-link { + display: flex; + align-items: center; +} + +.footer-link img { + object-fit: contain; +} diff --git a/src/main/webapp/assets/img/avatar.png b/src/main/webapp/assets/img/avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..2bcf445e3c4acf99c4ae05928233d1ee92692447 Binary files /dev/null and b/src/main/webapp/assets/img/avatar.png differ diff --git a/src/main/webapp/assets/img/background.png b/src/main/webapp/assets/img/background.png new file mode 100644 index 0000000000000000000000000000000000000000..a746a7b255b3dbf5800cdc5b35774f8ce4213fa6 Binary files /dev/null and b/src/main/webapp/assets/img/background.png differ diff --git a/src/main/webapp/assets/img/bubble.png b/src/main/webapp/assets/img/bubble.png new file mode 100644 index 0000000000000000000000000000000000000000..fccc150e1dd97ea81c28430ff2674bc77ca79b78 Binary files /dev/null and b/src/main/webapp/assets/img/bubble.png differ diff --git a/src/main/webapp/assets/img/buttons.png b/src/main/webapp/assets/img/buttons.png new file mode 100644 index 0000000000000000000000000000000000000000..31b70a17f7f4eb2b88cd1fd4182f6af44dc2b590 Binary files /dev/null and b/src/main/webapp/assets/img/buttons.png differ diff --git a/src/main/webapp/assets/img/calltoaction.png b/src/main/webapp/assets/img/calltoaction.png new file mode 100644 index 0000000000000000000000000000000000000000..cc31381c225265a231b828d97e98a0092956b8a0 Binary files /dev/null and b/src/main/webapp/assets/img/calltoaction.png differ diff --git a/src/main/webapp/assets/img/heart.png b/src/main/webapp/assets/img/heart.png new file mode 100644 index 0000000000000000000000000000000000000000..e5a62b24623483f1bb04921c31067b37ff7af973 Binary files /dev/null and b/src/main/webapp/assets/img/heart.png differ diff --git a/src/main/webapp/assets/img/logo.png b/src/main/webapp/assets/img/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..d49df9242c8379163f2c4f889e59277aca28b06a Binary files /dev/null and b/src/main/webapp/assets/img/logo.png differ diff --git a/target/MyLatestTricks-1.0-SNAPSHOT.war b/target/MyLatestTricks-1.0-SNAPSHOT.war index ee10bf9a4ed2dfbe0b6095d809febf13f0ec773e..dbbb10822aa322593e70c11ca310f45f7e3f6dba 100644 Binary files a/target/MyLatestTricks-1.0-SNAPSHOT.war and b/target/MyLatestTricks-1.0-SNAPSHOT.war differ diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/classes/servlet/HomeServlet.class b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/classes/servlet/HomeServlet.class index bbd180e5fe868a877bac30044be6383d76e35c7a..9c2446ae81dd58b1499abc7d6413b6d2fb1d4bbb 100644 Binary files a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/classes/servlet/HomeServlet.class and b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/classes/servlet/HomeServlet.class differ diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/home.jsp b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/home.jsp index 2f5a8df969dcc51d0ff05d80a48e91084caee470..b9f593e04517c5d08c8bc153d9c11984b160436e 100644 --- a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/home.jsp +++ b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/home.jsp @@ -10,8 +10,170 @@ My Latest Tricks + -

My Latest Tricks

+ <%@include file="jspf/header.jspf" %> +
+
+

MONTRE-NOUS TON MEILLEUR TRICK

+

La référence des tricks de skate, partagés par la communauté.

+ +
+
+

Le podium de la semaine

+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+
+

Les dernières vidéos

+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+ +
+
360 flip
+
+
+ Votes +

50

+
+
+ Comments +

7

+
+
+
+
+
+
+ <%@include file="jspf/footer.jspf" %> diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/footer.jspf b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/footer.jspf index 31aa64251bcb9f08e05b5661e280c54364efe659..83b2491b6b9e8d6809ab5840ba1af23362c13275 100644 --- a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/footer.jspf +++ b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/footer.jspf @@ -1,3 +1,8 @@ <%-- any content can be specified here e.g.: --%> <%@ page pageEncoding="UTF-8" %> -

Footer

+ diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/header.jspf b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/header.jspf index efcc7a0eaeb2b63edc92b62161bf1cfc2a52bb50..039c58d8b30144dd2341957d0b4628a82bbc6dbd 100644 --- a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/header.jspf +++ b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/jspf/header.jspf @@ -1,3 +1,15 @@ <%-- any content can be specified here e.g.: --%> <%@ page pageEncoding="UTF-8" %> -

Header

+
+ +
\ No newline at end of file diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/web.xml b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/web.xml index 1ddb93da8328b542fc6e58bd4263627df033eeae..efc4d3380b9d64da77cc776fff2ee07acd033976 100644 --- a/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/web.xml +++ b/target/MyLatestTricks-1.0-SNAPSHOT/WEB-INF/web.xml @@ -10,6 +10,6 @@ - home.jsp + home diff --git a/target/MyLatestTricks-1.0-SNAPSHOT/assets/css/style.css b/target/MyLatestTricks-1.0-SNAPSHOT/assets/css/style.css index bd5be7ac10a2a9e879aecf7b802b3e4817d686fb..4a836de005069a945617bbf19dd444c36804411c 100644 --- a/target/MyLatestTricks-1.0-SNAPSHOT/assets/css/style.css +++ b/target/MyLatestTricks-1.0-SNAPSHOT/assets/css/style.css @@ -7,3 +7,292 @@ Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css Author : Axel L. */ +@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap'); + +html, +body { + margin: 0; + min-height: 100%; +} + +body { + margin: 0; + min-height: 100vh; + display: flex; + flex-direction: column; + background-color: #222528; + background-image: url("../img/background.png"); + background-size: 100% auto; + background-repeat: repeat-y; + background-position: top center; + +} + +main { + flex: 1; +} + +/* Main navbar */ +nav { + height: 80px; + box-sizing: border-box; + background-color: #222528; + display: flex; + align-items: center; + padding: 5px 100px; + gap: 30px; +} + +/* Logo on the left */ +nav > img { + height: 65px; + object-fit: contain; + flex-shrink: 0; +} + +/* Large div filling the remaining space */ +.nav-content { + display: flex; + align-items: center; + justify-content: space-around; + width: fit-content; + margin-left: auto; + height: 60px; + padding: 0 20px; + box-sizing: border-box; + background-color: black; + border-radius: 50px; + gap: 15px; +} + +/* Navigation links */ +.nav-content a { + text-decoration: none; + color: white; + font-family: Inter; + transition: color 0.2s ease; +} + +.nav-content a:hover { + color: #00F3FB; +} + +.nav-content h3 { + margin: 0 20px; + font-weight: bold; + font-size: 22px; +} + +/* Avatar on the right */ +.nav-content img { + width: 42px; + height: 42px; + object-fit: cover; + border-radius: 50%; + flex-shrink: 0; + + .avatar-link { + display: flex; + align-items: center; + flex-shrink: 0; + } + + .avatar-link img { + width: 42px; + height: 42px; + object-fit: cover; + border-radius: 50%; + } +} + +.calltoaction { + background-image: url("../img/calltoaction.png"); + padding: 40px; + color: white; + font-size: 20px; + font-weight: bold; +} + +.calltoaction h4 { + margin-top: 0; + font-family: 'Permanent Marker', cursive; + font-size: 45px; +} + +/* Container for both buttons */ +.button-container { + display: flex; + align-items: center; + justify-content: center; + gap: 150px; + flex-wrap: wrap; + margin-top: 50px; + margin-bottom: 20px; +} + +/* Shared button styling */ +.blueButton, +.pinkButton { + display: inline-flex; + align-items: center; + justify-content: center; + font-family: 'Permanent Marker', cursive; + padding: 14px 28px; + border-radius: 30px; + text-decoration: none; + font-size: 25px; + font-weight: 600; + border: 2px solid transparent; + transition: all 0.3s ease; +} + +/* Blue button */ +.blueButton { + background-color: #167ac6; + color: black; + border-color: #62c5ff; + box-shadow: + 0 0 8px #62c5ff, + 0 0 18px #3498db, + 0 0 35px #3498db, + 0 0 55px rgba(52, 152, 219, 0.8); +} + +/* Pink button */ +.pinkButton { + background-color: #d9297d; + color: black; + border-color: #ff9ed0; + box-shadow: + 0 0 8px #ff9ed0, + 0 0 18px #e84393, + 0 0 35px #e84393, + 0 0 55px rgba(232, 67, 147, 0.8); +} + +/* Hover effects */ +.blueButton:hover, +.pinkButton:hover { + transform: translateY(-2px); + opacity: 0.9; +} + +h2 { + font-size: 30px; + margin: 20px; + color: white; + font-family: 'Permanent Marker', cursive; +} + +.videos-container { + display: flex; + flex-wrap: wrap; + gap: 30px; + width: 100%; + padding: 0 30px; + margin-bottom: 40px; + box-sizing: border-box; + align-items: flex-start; +} + +.video { + flex: 0 0 calc((100% - 60px) / 3); + padding: 10px; + min-width: 0; + box-sizing: border-box; + border-radius: 12px; + overflow: visible; + color: white; + background-color: black; + /* Blue neon glow */ + border: 2px solid #62c5ff; + box-shadow: + 0 0 5px #62c5ff, + 0 0 10px #3498db, + 0 0 18px rgba(52, 152, 219, 0.6); +} + +/* YouTube video */ +.video-player { + width: 100%; + aspect-ratio: 16 / 9; + border-radius: 12px; + overflow: hidden; +} + +.video-player iframe { + display: block; + width: 100%; + height: 100%; + border: 0; +} + +/* Title */ +.video h5 { + margin: 12px 0; + font-size: 18px; +} + +/* Vote and comment statistics */ +.video-stats { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +} + +.stat { + display: flex; + align-items: center; + gap: 8px; +} + +.stat img { + width: 24px; + height: 24px; + object-fit: contain; +} + +.stat p { + margin: 0; +} + +/* STATS VIDEO */ +.stat img { + width: 24px; + height: 24px; + object-fit: contain; +} + +.stat p { + margin: 0; + color: white; + font-size: 16px; +} + + +footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 15px 50px; + margin-top: auto; + min-height: 60px; + box-sizing: border-box; + background-color: #222528; + color: white; +} + +footer p { + margin: 0; + font-size: 14px; +} + +.footer-link { + display: flex; + align-items: center; +} + +.footer-link img { + object-fit: contain; +} diff --git a/target/classes/servlet/HomeServlet.class b/target/classes/servlet/HomeServlet.class index bbd180e5fe868a877bac30044be6383d76e35c7a..9c2446ae81dd58b1499abc7d6413b6d2fb1d4bbb 100644 Binary files a/target/classes/servlet/HomeServlet.class and b/target/classes/servlet/HomeServlet.class differ diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000