diff --git a/sql/shema.sql b/sql/shema.sql index 0c3238c7550c2774557d851a29ee1bb65bd46684..e80ef6c3a10d6a932762e5fb6dee24f37ff2c350 100644 --- a/sql/shema.sql +++ b/sql/shema.sql @@ -50,7 +50,7 @@ INSERT INTO Web_user (username, email, password, status_user) VALUES ('Axel', 'axel@ldnr.fr', '123', 'admin'), ('Adrien', 'adrien@ldnr.fr', '123', 'admin'), ('Sophie', 'sophie@adrar.fr', '123', 'user'), -('KickflipKing', 'maxime@skate.fr', 'password123', 'admin'), +('KickflipKing', 'maxime@skate.fr', 'password123', 'user'), ('SkateGirl31', 'chloe@skate.fr', 'password123', 'user'), ('OllieMaster', 'leo@skate.fr', 'password123', 'user'); diff --git a/src/main/webapp/WEB-INF/jspf/header.jspf b/src/main/webapp/WEB-INF/jspf/header.jspf index 7c2c64c7983e2738693910e52674bc338abe7552..7e85cc39a153335d6ad2e66362d7edfb0137e5bd 100644 --- a/src/main/webapp/WEB-INF/jspf/header.jspf +++ b/src/main/webapp/WEB-INF/jspf/header.jspf @@ -5,11 +5,30 @@ Logo \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/profile.jsp b/src/main/webapp/WEB-INF/profile.jsp new file mode 100644 index 0000000000000000000000000000000000000000..3c6dce8b3c213ddf3865734cb7544a98916b591c --- /dev/null +++ b/src/main/webapp/WEB-INF/profile.jsp @@ -0,0 +1,97 @@ +<%-- + Document : profile + Created on : 13 oct. 2026, 14:41:46 + Author : Julien +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + Profil + + + + <%@include file="jspf/header.jspf" %> + + <
+ + + +
+

Mes vidéos

+ + +

${requestScope.errorMessage}

+
+ + +

Tu n'as pas encore posté de vidéos !!!

+
+ +
+ +
+
+ Video thumbnail +
+
+
+
+ Votes +

0

+
+
+ Comments +

0

+
+
+
+ Regarder +
+ + +
+
+
+
+
+
+ + +
+

Ajouter une vidéo

+
> +
+ + " size="20" maxlength="60" /> + ${requestScope.form.errors.videoUrl} +
+ + " size="20" maxlength="60" /> + ${requestScope.form.errors.title} +
+ + " size="20" maxlength="60" /> + ${requestScope.form.errors.description} +
+ + +

${requestScope.errorMessage}

+
+
+ +
+ +
+

Mes informations

+
+ + + +
+ <%@include file="jspf/footer.jspf" %> + + diff --git a/src/main/webapp/assets/css/style.css b/src/main/webapp/assets/css/style.css index ddbd8709c9cafeb0ef2deab147d614ae58fad979..96e318781eb07e7d9f859176b8f0d5aabefe92a2 100644 --- a/src/main/webapp/assets/css/style.css +++ b/src/main/webapp/assets/css/style.css @@ -48,9 +48,9 @@ nav > img { height: 65px; object-fit: contain; flex-shrink: 0; - height: 190px; + height: 110px; position: relative; - top: 51px; + top: 20px; transform: rotate(20deg); filter: drop-shadow(3px 4px 2px rgba(250, 138, 41, 0.25)) @@ -202,6 +202,8 @@ nav > img { } /* Hover effects */ +.watchButton, +.deleteButton, .blueButton:hover, .pinkButton:hover { transform: translateY(-2px); @@ -269,6 +271,7 @@ h2 { .video h5 { margin: 12px 0; font-size: 18px; + height: 40px; } /* Vote and comment statistics */ @@ -335,6 +338,16 @@ footer p { object-fit: contain; } +/*------------------- CURSOR ------------ */ + +body { + cursor: url('../img/cursor.png'), auto; +} + +a, button, input[type="submit"], input[type="button"] { + cursor: url('../img/cursor.png'), pointer; +} + /*------------------- JSP REGISTER / LOGIN ------------ */ .textRegister, .textLogin{ @@ -343,11 +356,11 @@ footer p { font-size: 20px; } -.mainRegister, .mainLogin{ +.mainRegister, .mainLogin, .mainProfile{ margin: 20px 70px 20px 70px; } -.register-container, .login-container { +.register-container, .login-container, .addPost-container { background-color: black; padding: 50px; border-radius: 24px; @@ -363,7 +376,7 @@ footer p { height: auto; } -.formRegister, .formLogin{ +.formRegister, .formLogin, .formAddPost{ color: white; flex: 1; @@ -383,7 +396,7 @@ footer p { } -.labelRegister, .labelLogin{ +.labelRegister, .labelLogin, .labelAddPost{ display:inline-block; width: 250px; margin-bottom: 10px; @@ -402,3 +415,63 @@ footer p { .success{ color:#DBFA19 } + +/*------------------- JSP Profile ------------ */ +.profile-videos-container { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 20px; + +} + +.userVideos{ + margin: 50px; +} + +.emptyMessage{ + color: #FB3FA6; +} + +.button-container-profile{ + display: flex; + align-items: center; + justify-content: center; + gap: 20px; +} + +.watchButton{ + padding: 12px 24px; + background-color: #DBFA19; + color: #222; + font-family: 'Permanent Marker', cursive; + text-decoration: none; + font-weight: bold; + font-size: 25px; + border-radius: 45px; + border: 2px solid #fff176; + box-shadow: + 0 0 5px #ffeb3b, + 0 0 10px #ffd500, + 0 0 20px rgba(255, 213, 0, 0.7); + +} + +.deleteButton{ + padding: 12px 24px; + background-color: #FA3FA6; + color: #222; + font-family: 'Permanent Marker', cursive; + text-decoration: none; + font-weight: bold; + font-size: 25px; + border-radius: 45px; + cursor: url('../img/cursor.png'), pointer; + border-color: #ff9ed0; + box-shadow: + 0 0 8px #ff9ed0, + 0 0 10px #e84393, + 0 0 10px #e84393, + 0 0 10px rgba(232, 67, 147, 0.8); +} + + diff --git a/src/main/webapp/assets/img/cursor.png b/src/main/webapp/assets/img/cursor.png new file mode 100644 index 0000000000000000000000000000000000000000..ccba05caa8863cd557d86291bbbac7b872ed3454 Binary files /dev/null and b/src/main/webapp/assets/img/cursor.png differ diff --git a/src/main/webapp/assets/img/guest.png b/src/main/webapp/assets/img/guest.png new file mode 100644 index 0000000000000000000000000000000000000000..5dee29f44effcd7bbda5a189fe5eb062c348aba3 Binary files /dev/null and b/src/main/webapp/assets/img/guest.png differ