Skip to content

Commit

Permalink
revert + change bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
tufstraka committed Jun 14, 2024
1 parent 48c762d commit 3b7d9e8
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/TrendingMovies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
flex-direction: column;
width: 150px;
gap: 20px;
background: #d4dfc9;
background: #f9f9f9;
border-radius: 12px;
transition: transform 350ms;
margin-left: 30px;
Expand Down
117 changes: 113 additions & 4 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<template>
<!--<template>
<div class="home">
<BlogPost v-if="!user" :post="welcomeScreen" />

<div class="content">
<TrendingMovies />

<!-- Editor's Picks Section -->
<div class="featured-reviews">
<h1>Editor's Picks</h1>
<div class="featured-cards">
Expand All @@ -17,7 +16,6 @@
</div>
</div>

<!-- Recent Reviews Section -->
<div class="recent-reviews">
<h1>Recent Reviews</h1>
<div class="blog-cards">
Expand All @@ -29,7 +27,6 @@
</div>
</div>

<!-- Top Reviewers Section -->
<div class="top-reviewers">
<h1>Top Reviewers</h1>
<div class="reviewer-cards">
Expand Down Expand Up @@ -155,4 +152,116 @@ export default {
}
}
}
</style>-->

<template>
<div class="home">
<BlogPost v-if="!user" :post="welcomeScreen" />

<div>
<TrendingMovies />
<!--<BlogPost :post="post" v-for="(post, index) in blogPostsFeed" :key="index" />-->

<div class="blog-card-wrap">
<h1 style="text-align:center;">Recent Reviews</h1>
<div class="blog-cards">
<BlogCards :post="post" v-for="(post, index) in blogPostsCards" :key="index" />
</div>
</div>
</div>
</div>
</template>

<script>
import BlogPost from '../components/BlogPost.vue';
import BlogCards from '../components/BlogCard.vue';
import TrendingMovies from '../components/TrendingMovies.vue';


export default {
name: "Home",
components: { BlogPost, BlogCards, TrendingMovies },
data() {
return {
welcomeScreen: {
title: "Niaje",
blogPost: "Do you like watching movies and TV shows? Do you always feel like you want to rant or just express your opinions? Welcome to BFR.",
welcomeScreen: true,
photo: "movie1"
}
};
},
computed: {
blogPostsCards() {
return this.$store.getters.blogPostsCards;
},
blogPostsFeed() {
return this.$store.getters.blogPostsFeed;
},
user() {
return this.$store.state.user;
}
}
};
</script>

<style lang="scss" scoped>
.home {
background: #f9f9f9;
}

.vue {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.blog-card-wrap {
//background: linear-gradient(to bottom left, #625643, #eae3b8);

h1 {
font-weight: 800;
font-size: 21px;
margin-bottom: 12px;
color: black;
}
}

.updates {
.container {
padding: 100px 25px;
display: flex;
flex-direction: column;
align-items: center;
@media (min-width: 800px) {
padding: 125px 25px;
flex-direction: row;
}

.router-button {
display: flex;
font-size: 14px;
text-decoration: none;

@media (min-width: 800px) {
margin-left: auto;
}
}

h2 {
font-weight: 300;
font-size: 32px;
max-width: 725px;
width: 100%;
text-align: center;
text-transform: uppercase;

@media (min-width: 800px) {
font-size: 40px;
}
}
}
}
</style>

0 comments on commit 3b7d9e8

Please sign in to comment.