-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b20e89
commit ddb9983
Showing
8 changed files
with
381 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
$font-family-poppins: "Poppins", sans-serif; | ||
$background-color-primary: #7378c5; | ||
$hover-color: #ff8623; | ||
$link-color: white; | ||
$link-hover-color: #f509d9; | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap'); | ||
|
||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
background: url("../../images/universe-1.png") no-repeat center center fixed; | ||
background-size: cover; | ||
font-family: $font-family-poppins; | ||
margin: 0; | ||
align-content: center; | ||
overflow-x: hidden; | ||
min-height: 100vh; | ||
overflow-y: auto; | ||
} | ||
|
||
%button-style { | ||
background-color: $background-color-primary; | ||
color: black; | ||
border-radius: 8px; | ||
border: none; | ||
cursor: pointer; | ||
font: inherit; | ||
&:hover { | ||
background-color: $hover-color; | ||
transition: 0.3s ease-in; | ||
} | ||
} | ||
|
||
#movie-match-btn { | ||
@extend %button-style; | ||
position: fixed; | ||
bottom: 220px; | ||
right: 20px; | ||
} | ||
|
||
#submit-comment { | ||
@extend %button-style; | ||
padding: 10px 15px; | ||
} | ||
|
||
%link-style { | ||
color: $link-color; | ||
text-decoration: underline; | ||
&:hover { | ||
color: $link-hover-color; | ||
} | ||
} | ||
|
||
#cast-info, #similar-tv, #director-link { | ||
@extend %link-style; | ||
} | ||
|
||
@mixin modal-style { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 0 10px; | ||
margin-top: 5px; | ||
} | ||
|
||
.modal-header { | ||
@include modal-style; | ||
} | ||
|
||
.comments-controls { | ||
display: flex; | ||
align-items: center; | ||
button:disabled { | ||
cursor: not-allowed; | ||
} | ||
&.justify-start { | ||
justify-content: start; | ||
} | ||
&.justify-center { | ||
justify-content: center; | ||
gap: 10px; | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
$breakpoint-mobile: 480px; | ||
$breakpoint-tablet: 768px; | ||
$breakpoint-desktop: 1024px; | ||
|
||
$navbar-background-color: #333; | ||
$navbar-text-color: #fff; | ||
$navbar-hover-color: #555; | ||
$mobile-menu-background-color: #222; | ||
|
||
@mixin responsive-visibility { | ||
@media (max-width: $breakpoint-mobile) { | ||
display: none; | ||
} | ||
} | ||
|
||
.navbar { | ||
background-color: $navbar-background-color; | ||
color: $navbar-text-color; | ||
padding: 1em; | ||
|
||
.logo { | ||
float: left; | ||
font-size: 1.5em; | ||
margin-right: 15px; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
float: right; | ||
|
||
li { | ||
display: inline; | ||
margin-left: 15px; | ||
|
||
a { | ||
text-decoration: none; | ||
color: $navbar-text-color; | ||
|
||
&:hover { | ||
color: $navbar-hover-color; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: $breakpoint-tablet) { | ||
ul { | ||
float: none; | ||
text-align: center; | ||
|
||
li { | ||
display: block; | ||
margin-top: 0.5em; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.mobile-menu-btn { | ||
@include responsive-visibility; | ||
|
||
display: inline-block; | ||
background-color: $mobile-menu-background-color; | ||
color: $navbar-text-color; | ||
padding: 10px; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
|
||
.mobile-menu { | ||
display: none; | ||
|
||
&.active { | ||
display: block; | ||
padding: 10px; | ||
background-color: $mobile-menu-background-color; | ||
|
||
ul { | ||
text-align: center; | ||
|
||
li { | ||
margin-top: 10px; | ||
|
||
a { | ||
display: block; | ||
color: $navbar-text-color; | ||
|
||
&:hover { | ||
background-color: $navbar-hover-color; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
MovieVerse-Mobile/www/MovieVerse-Frontend/css/profile.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
$primary-color: #4A90E2; | ||
$secondary-color: #50E3C2; | ||
$text-color: #4A4A4A; | ||
$background-color: #F5F7FA; | ||
$padding-standard: 15px; | ||
$border-radius-standard: 5px; | ||
|
||
@mixin flex-center { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
@mixin card-style { | ||
background-color: white; | ||
border-radius: $border-radius-standard; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | ||
padding: $padding-standard; | ||
} | ||
|
||
body { | ||
font-family: 'Poppins', sans-serif; | ||
color: $text-color; | ||
background-color: $background-color; | ||
} | ||
|
||
a { | ||
color: $primary-color; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.profile-container { | ||
@include flex-center; | ||
flex-direction: column; | ||
} | ||
|
||
.profile-header { | ||
@include flex-center; | ||
flex-direction: column; | ||
margin-bottom: 20px; | ||
|
||
.profile-image { | ||
border-radius: 50%; | ||
width: 100px; | ||
height: 100px; | ||
margin-bottom: $padding-standard; | ||
} | ||
|
||
.profile-name { | ||
font-size: 20px; | ||
font-weight: bold; | ||
} | ||
|
||
.profile-bio { | ||
text-align: center; | ||
margin-top: $padding-standard; | ||
} | ||
} | ||
|
||
.profile-content { | ||
@include card-style; | ||
margin: 20px auto; | ||
width: 90%; | ||
max-width: 600px; | ||
|
||
.section { | ||
&:not(:last-child) { | ||
margin-bottom: 20px; | ||
} | ||
|
||
h2 { | ||
border-bottom: 2px solid $primary-color; | ||
padding-bottom: $padding-standard / 2; | ||
} | ||
|
||
p, ul { | ||
margin-top: $padding-standard / 2; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
MovieVerse-Mobile/www/MovieVerse-Frontend/html/article.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{article.title}}</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>{{article.title}}</h1> | ||
<p>Written by: {{article.author}}</p> | ||
</header> | ||
<article> | ||
<p>{{article.content}}</p> | ||
</article> | ||
</body> | ||
</html> |
35 changes: 35 additions & 0 deletions
35
MovieVerse-Mobile/www/MovieVerse-Frontend/html/movies-list.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Movies List</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
} | ||
.movie { | ||
margin-bottom: 20px; | ||
} | ||
.movie-title { | ||
font-weight: bold; | ||
} | ||
.movie-year { | ||
font-style: italic; | ||
} | ||
.movie-description { | ||
margin-top: 5px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Movies List</h1> | ||
{{#each movies}} | ||
<div class="movie"> | ||
<div class="movie-title">{{this.title}}</div> | ||
<div class="movie-year">Released in: {{this.year}}</div> | ||
<div class="movie-description">{{this.description}}</div> | ||
</div> | ||
{{/each}} | ||
</body> | ||
</html> |
59 changes: 59 additions & 0 deletions
59
MovieVerse-Mobile/www/MovieVerse-Frontend/html/profile.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>User Profile</title> | ||
<link rel="stylesheet" href="../css/style.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<nav> | ||
<ul> | ||
<li><a href="/">Home</a></li> | ||
<li><a href="/profile">Profile</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
<main> | ||
<section class="profile-container"> | ||
<h1>User Profile</h1> | ||
<% if (user) { %> | ||
<div class="profile-info"> | ||
<img src="<%= user.avatar %>" alt="Profile Avatar" class="profile-avatar"> | ||
<h2><%= user.name %></h2> | ||
<p>Email: <%= user.email %></p> | ||
<p>Location: <%= user.location %></p> | ||
<p>Member since: <%= user.createdAt %></p> | ||
<p>Favorite Movies:</p> | ||
<ul> | ||
<% user.favoriteMovies.forEach(movie => { %> | ||
<li><%= movie.title %></li> | ||
<% }) %> | ||
</ul> | ||
<p>Favorite Genres:</p> | ||
<ul> | ||
<% user.favoriteGenres.forEach(genre => { %> | ||
<li><%= genre %></li> | ||
<% }) %> | ||
</ul> | ||
<p>Favorite Actors:</p> | ||
<ul> | ||
<% user.favoriteActors.forEach(actor => { %> | ||
<li><%= actor.name %></li> | ||
<% }) %> | ||
</ul> | ||
<p> | ||
<a href="/profile/edit">Edit Profile</a> | ||
</p> | ||
</div> | ||
<% } else { %> | ||
<p>User not found.</p> | ||
<% } %> | ||
</section> | ||
</main> | ||
<footer> | ||
<p>© 2024 The MovieVerse. All rights reserved.</p> | ||
</footer> | ||
</body> | ||
</html> |
Oops, something went wrong.