Skip to content
Snippets Groups Projects
Commit 41b720fc authored by Aiyar, Tejas (UG - Comp Sci & Elec Eng)'s avatar Aiyar, Tejas (UG - Comp Sci & Elec Eng)
Browse files

Merge branch 'test' into 'main'

Push to Main

See merge request !5
parents 3394492a 319dd2fb
No related branches found
No related tags found
1 merge request!5Push to Main
<script setup>
import TopRatedMovies from '@/components/TopRatedMovies.vue'
</script>
<template>
<TopRatedMovies />
<template>
<div class="nyt-header">
<h1>The Movies We've Loved Since 2000</h1>
<p>
Explore top-rated films using the filters below — by genre and year — and rediscover hidden gems.
</p>
</div>
<div class="filters">
<select v-model="genre">
<option value="">Pick a genre ...</option>
<option v-for="g in genres" :key="g.id" :value="g.id">{{ g.name }}</option>
</select>
<select v-model="year">
<option v-for="y in Array.from({length: 25}, (_, i) => 2000 + i)" :key="y" :value="y">
{{ y }}
</option>
</select>
</div>
<h2 class="section-title">Our favorite movies from {{ year }}</h2>
<div class="movie-grid">
<div v-for="movie in movies" :key="movie.id" class="movie-card">
<img
v-if="movie.poster_path"
:src="'https://image.tmdb.org/t/p/w342' + movie.poster_path"
alt="poster"
/>
<p class="title">{{ movie.title }}</p>
<p class="rating">{{ movie.vote_average }}</p>
</div>
</div>
</template>
</template>
This diff is collapsed.
This diff is collapsed.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue(),
tailwindcss()
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment