Submitted 8 months ago
Room Homepage with VueJS and Tailwind CSS
@Heph-zibah
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Being able to make the slider work using vuejs is something worth celebrating.
const currentSlideIndex = ref(0);
const slides = window.innerWidth > 768 ? desktopSlides : mobileSlides;
const currentSlide = computed(() => slides[currentSlideIndex.value]);
currentSlideIndex.value = (currentSlideIndex.value - 1 + slides.length) % slides.length; }; const nextSlide = () => { currentSlideIndex.value = (currentSlideIndex.value + 1) % slides.length; };``` ### What challenges did you encounter, and how did you overcome them? Changing the background image. I later had to create a data for it.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord