Skip to content

Commit

Permalink
Working on About page
Browse files Browse the repository at this point in the history
  • Loading branch information
BhJaipal committed Apr 30, 2024
1 parent bd92912 commit c5cd7e5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 59 deletions.
7 changes: 5 additions & 2 deletions frontend/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
<span class="truncate">{{ item.label }}</span>
<template #trailing>
<UIcon
name="i-heroicons-chevron-right-20-solid"
:name="
open
? 'i-heroicons-x-mark-solid'
: 'i-heroicons-bars-3-20-solid'
"
class="w-5 h-5 ms-auto transform transition-transform duration-200"
:class="[open && 'rotate-90']"
/>
</template>
</UButton>
Expand Down
78 changes: 26 additions & 52 deletions frontend/pages/about/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { definePageMeta } from "#imports";
import tsLogo from "@/assets/ts-logo.png";
import vite from "@/assets/vite.png";
import vue from "@/assets/vue.png";
import tsLogo from "~/assets/ts-logo.png";
import vite from "~/assets/vite.png";
import vue from "~/assets/vue.png";
definePageMeta({
layout: "default"
Expand Down Expand Up @@ -39,7 +39,7 @@ let homeList = ref<pageModule[]>([
img: vite
},
{
name: "tailwindcss",
name: "TailwindCSS",
link: "tailwindcss.com",
img: "https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600"
},
Expand All @@ -62,56 +62,30 @@ let navigation = ref<{ name: string; href: string; active: boolean }[]>([

<h2>Modules used for this project</h2>

<ul class="module-list">
<li v-for="(module, index) in homeList" :key="index" class="item">
<a
v-bind:href="`https://${module.link}`"
target="_blank"
class="goto-sites"
>
<div class="my-5 module-div">
<div class="img">
<img class="logo" v-bind:src="module.img" />
</div>
<div class="name">
<h3>{{ module.name }}</h3>
</div>
</div>
</a>
<ul>
<li
v-for="(module, index) in homeList"
:key="index"
class="flex justify-center my-2.5"
>
<ULink :href="module.link" target="_blank">
<UCard :title="module.name">
<template #header>
<UButtonGroup>
<NuxtImg :src="module.img" class="w-10" />
<UBadge
class="ml-10"
color="yellow"
variant="outline"
size="lg"
>Name: {{ module.name }}</UBadge
>
</UButtonGroup>
</template>
</UCard>
</ULink>
</li>
</ul>
</div>
</template>

<style scoped>
.item {
min-height: 5vh;
margin-left: 40vw;
text-align: right;
}
.item > a > .module-div > .name {
text-align: center;
width: 1vw;
}
.img {
width: auto;
height: 5vh;
float: right;
margin-right: 46vw;
}
.item > a > .module-div > .img > .logo {
box-sizing: border-box;
width: auto;
height: 5vh;
}
.item > a > .module-div > img[src="/"] {
display: none;
}
ul.module-list {
list-style-type: none;
}
.item > a {
text-decoration: none;
color: inherit;
}
</style>
9 changes: 4 additions & 5 deletions frontend/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ onMounted(async function () {
</div>
<div v-else>
<UAccordion :items="LangList">
<template #default="{ item, index, open }">
<template #default="{ item, open }">
<UButton
color="blue"
variant="ghost"
Expand All @@ -111,12 +111,11 @@ onMounted(async function () {
padding: { sm: 'p-3' }
}"
>
<span class="truncate"
>{{ index + 1 }}.
<span class="truncate">
{{
useNuxtApp().$langNamesPrint(item.langName)
}}</span
>
}}
</span>

<template #trailing>
<UIcon
Expand Down

0 comments on commit c5cd7e5

Please sign in to comment.