Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Section #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/icons/account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions components/Admin/Footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div class="flex items-center justify-center w-full py-2 text-sm font-medium text-gray-400 border-t border-gray-200">
&copy; 2024 Blockchain Society IIT Roorkee
</div>
</template>
14 changes: 14 additions & 0 deletions components/Admin/Header.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<div
class="flex flex-row items-center justify-between w-full h-20 px-10 py-4 bg-slate-100"
>
<div class="text-2xl font-semibold">Overview</div>
<div class="flex flex-row">
<SvgoProfileMale class="text-gray-400 w-14 h-14" />
<div class="flex flex-col items-start justify-center gap-0.5">
<div class="text-sm font-semibold">Samarendra Gouda</div>
<div class="text-xs font-medium">Superuser</div>
</div>
</div>
</div>
</template>
25 changes: 25 additions & 0 deletions components/Admin/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div class="flex flex-col justify-between items-start bg-zinc-900 h-[100svh] w-[18%] text-white">
<div
class="flex flex-row items-start justify-start w-full px-6 py-4"
>
<SvgoLogo class="w-20 h-16" />
<div class="flex flex-col mt-1">
<h2 class="text-sm font-semibold">Blockchain Society</h2>
<h3 class="text-xs">Indian Institute of Technology Roorkee</h3>
</div>
</div>

<div class="flex flex-col w-full h-full gap-2 mt-10">
<div class="px-6 py-2 text-black cursor-pointer bg-slate-100">Overview</div>
<div class="px-6 py-2 cursor-pointer">Projects</div>
<div class="px-6 py-2 cursor-pointer">Achievements</div>
<div class="px-6 py-2 cursor-pointer">Team</div>
<div class="px-6 py-2 text-red-500 transition-all cursor-pointer hover:bg-red-500 hover:bg-opacity-10 ">Superuser</div>
</div>
<div class="flex flex-row items-center justify-start gap-1 px-6 py-4 text-sm cursor-pointer hover:underline">
<SvgoLogout class="w-4 h-4" />
Logout
</div>
</div>
</template>
10 changes: 10 additions & 0 deletions layouts/admin.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<main class="fixed flex flex-row justify-start w-full h-screen">
<AdminSidebar />
<div class="w-[82%] h-full flex flex-col justify-between items-center">
<AdminHeader />
<slot />
<AdminFooter />
</div>
</main>
</template>
9 changes: 9 additions & 0 deletions pages/admin.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
definePageMeta({
layout: 'admin',
})
</script>

<template>
<div />
</template>