Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SceneIt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Advanced Web Group 8
SceneIt
Commits
bdda8fcb
Commit
bdda8fcb
authored
1 month ago
by
Miah, Nunu (UG - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
Movie Cards for watchlist directs to movie details when clicked
parent
8bc6c0b3
No related branches found
No related tags found
2 merge requests
!5
Push to Main
,
!2
Merging Top-Rated to Test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
movie-group-8/src/components/MovieCard.vue
+22
-7
22 additions, 7 deletions
movie-group-8/src/components/MovieCard.vue
with
22 additions
and
7 deletions
movie-group-8/src/components/MovieCard.vue
+
22
−
7
View file @
bdda8fcb
<
template
>
<div
class=
"bg-white dark:bg-neutral-800 border dark:border-neutral-700 rounded-lg p-4 flex gap-4 items-start"
>
<img
v-if=
"movie.poster_path"
:src=
"'https://image.tmdb.org/t/p/w154' + movie.poster_path"
alt=
"Poster"
class=
"w-24 h-36 object-cover rounded"
/>
<!-- Clickable poster -->
<router-link
:to=
"`/films/$
{movie.id}`"
class="shrink-0 hover:opacity-90 transition"
>
<img
v-if=
"movie.poster_path"
:src=
"'https://image.tmdb.org/t/p/w154' + movie.poster_path"
alt=
"Poster"
class=
"w-24 h-36 object-cover rounded"
/>
</router-link>
<div
class=
"flex-1"
>
<p
class=
"text-lg font-semibold text-gray-800 dark:text-white"
>
{{
movie
.
title
}}
</p>
<!-- Clickable title -->
<router-link
:to=
"`/films/$
{movie.id}`"
class="text-lg font-semibold text-gray-800 dark:text-white hover:underline block"
>
{{
movie
.
title
}}
</router-link>
<p
class=
"text-sm text-gray-600 dark:text-neutral-400"
>
⭐
{{
movie
.
vote_average
}}
</p>
<!-- Interactive status dropdown -->
<label
class=
"text-xs text-gray-500 dark:text-gray-400 block mt-2"
>
Status:
<select
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment