Skip to content

Commit cec4acf

Browse files
committed
feat(profile-layout): create dummy layout skeleton
1 parent 316820d commit cec4acf

3 files changed

Lines changed: 43 additions & 3 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup lang="ts"></script>
2+
3+
<template>
4+
<div class="bg-accent/10 h-[460px]">
5+
<h1 class="p-4 text-2xl font-bold"></h1>
6+
</div>
7+
</template>

app/pages/profile/index.vue

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
1-
<script lang="ts" setup></script>
1+
<script lang="ts" setup>
2+
import ProfileDetails from '~/components/profile/ProfileDetails.vue';
3+
import Tabs from '@/components/ui/Tabs.vue';
4+
import Tab from '@/components/ui/Tab.vue';
5+
</script>
26

37
<template>
48
<div>
5-
<h1 class="p-4 text-2xl font-bold">{{ $t('leftsidebar.nav.profile') }}</h1>
6-
<!-- Profile content will go here -->
9+
<ProfileDetails />
10+
<Tabs>
11+
<Tab
12+
:label="$t('profile.tabs.posts')"
13+
route="/home"
14+
:is-active="$route.path === '/profile'"
15+
/>
16+
<Tab
17+
:label="$t('profile.tabs.replies')"
18+
route="/home"
19+
:is-active="$route.path !== '/profile'"
20+
/>
21+
<Tab
22+
:label="$t('profile.tabs.media')"
23+
route="/home"
24+
:is-active="$route.path !== '/profile'"
25+
/>
26+
<Tab
27+
:label="$t('profile.tabs.likes')"
28+
route="/home"
29+
:is-active="$route.path !== '/profile'"
30+
/>
31+
</Tabs>
732
</div>
833
</template>

i18n/locales/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
"homepage": {
3838
"tweets": "Tweets"
3939
},
40+
"profile": {
41+
"tabs": {
42+
"posts": "Posts",
43+
"replies": "Replies",
44+
"media": "Media",
45+
"likes": "Likes"
46+
}
47+
},
4048
"playground": {
4149
"dialog": {
4250
"title": "Create your account",

0 commit comments

Comments
 (0)