fix: minor UI issues
This commit is contained in:
@@ -8,9 +8,7 @@
|
|||||||
{{ __('Write a Review') }}
|
{{ __('Write a Review') }}
|
||||||
</Button>
|
</Button>
|
||||||
<div class="flex items-center font-semibold text-2xl">
|
<div class="flex items-center font-semibold text-2xl">
|
||||||
<Star class="h-6 w-6 stroke-1 text-gray-50 fill-orange-500 mr-1" />
|
{{ __('Student Reviews') }}
|
||||||
{{ avg_rating }} {{ __('ratings and ') }} {{ reviews.data.length }}
|
|
||||||
{{ __('reviews') }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-8 mt-10">
|
<div class="grid gap-8 mt-10">
|
||||||
<div v-for="(review, index) in reviews.data">
|
<div v-for="(review, index) in reviews.data">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex rounded px-2 py-2.5 hover:bg-gray-100">
|
<div class="flex rounded p-1 lg:px-2 lg:py-2.5 hover:bg-gray-100">
|
||||||
<div class="flex w-2/5">
|
<div class="flex w-3/5 md:w-2/5">
|
||||||
<img
|
<img
|
||||||
:src="job.company_logo"
|
:src="job.company_logo"
|
||||||
class="w-12 h-12 rounded-lg object-contain mr-4"
|
class="w-12 h-12 rounded-lg object-contain mr-4"
|
||||||
@@ -18,7 +18,9 @@
|
|||||||
<div class="flex justify-end w-1/5 text-gray-700">
|
<div class="flex justify-end w-1/5 text-gray-700">
|
||||||
{{ job.location.replace(',', '').split(' ')[0] }}
|
{{ job.location.replace(',', '').split(' ')[0] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end w-1/5 text-gray-700">
|
<div
|
||||||
|
class="flex justify-end w-1/5 text-gray-700 text-right hidden md:block"
|
||||||
|
>
|
||||||
{{ job.type }}
|
{{ job.type }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end w-1/5 text-sm text-gray-700 text-right">
|
<div class="flex justify-end w-1/5 text-sm text-gray-700 text-right">
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
@click="handleClick(tab)"
|
@click="handleClick(tab)"
|
||||||
>
|
>
|
||||||
<component
|
<component
|
||||||
:is="tab.icon"
|
:is="icons[tab.icon]"
|
||||||
class="h-6 w-6 stroke-1.5"
|
class="h-6 w-6 stroke-1.5"
|
||||||
:class="[isActive(tab) ? 'text-gray-900' : 'text-gray-600']"
|
:class="[isActive(tab) ? 'text-gray-900' : 'text-gray-600']"
|
||||||
/>
|
/>
|
||||||
@@ -32,6 +32,7 @@ import { useRouter } from 'vue-router'
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { sessionStore } from '@/stores/session'
|
import { sessionStore } from '@/stores/session'
|
||||||
import { usersStore } from '@/stores/user'
|
import { usersStore } from '@/stores/user'
|
||||||
|
import * as icons from 'lucide-vue-next'
|
||||||
import { LogOut, LogIn, UserRound } from 'lucide-vue-next'
|
import { LogOut, LogIn, UserRound } from 'lucide-vue-next'
|
||||||
|
|
||||||
const { logout, user } = sessionStore()
|
const { logout, user } = sessionStore()
|
||||||
@@ -45,7 +46,7 @@ const tabs = computed(() => {
|
|||||||
if (user) {
|
if (user) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Profile',
|
label: 'Profile',
|
||||||
icon: UserRound,
|
icon: 'UserRound',
|
||||||
activeFor: [
|
activeFor: [
|
||||||
'Profile',
|
'Profile',
|
||||||
'ProfileAbout',
|
'ProfileAbout',
|
||||||
@@ -56,12 +57,12 @@ const tabs = computed(() => {
|
|||||||
})
|
})
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Log out',
|
label: 'Log out',
|
||||||
icon: LogOut,
|
icon: 'LogOut',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Log in',
|
label: 'Log in',
|
||||||
icon: LogIn,
|
icon: 'LogIn',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return links
|
return links
|
||||||
|
|||||||
@@ -70,11 +70,7 @@
|
|||||||
class="course-description"
|
class="course-description"
|
||||||
></div>
|
></div>
|
||||||
<div class="mt-10">
|
<div class="mt-10">
|
||||||
<CourseOutline
|
<CourseOutline :courseName="course.data.name" :showOutline="true" />
|
||||||
:courseName="course.data.name"
|
|
||||||
:showOutline="true"
|
|
||||||
title="Course Outline"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<CourseReviews
|
<CourseReviews
|
||||||
:courseName="course.data.name"
|
:courseName="course.data.name"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div v-if="jobs.data?.length">
|
<div v-if="jobs.data?.length">
|
||||||
<div class="divide-y w-3/4 mx-auto p-5">
|
<div class="divide-y lg:w-3/4 mx-auto p-5">
|
||||||
<div v-for="job in jobs.data">
|
<div v-for="job in jobs.data">
|
||||||
<router-link
|
<router-link
|
||||||
:to="{
|
:to="{
|
||||||
|
|||||||
Reference in New Issue
Block a user