Skip to content
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
66 changes: 43 additions & 23 deletions src/components/ChatBot.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,53 @@
<template>
<NavBar></NavBar>
<div id="chat-container-wrapper">
<h1>Sundarbans AI Chatbot</h1>
<div id="chat-container" ref="chatContainer">
<div id="output" ref="output"></div>
</div>
<form @submit.prevent="handleSubmit" id="inputForm">
<input
type="text"
id="textInput"
v-model="question"
placeholder="Enter your question"
required
/>
<button type="submit" id="submitButton">Submit</button>
<button type="button" id="stopButton" @click="handleStop">Stop</button>
</form>
<NavBar />
<div id="chat-container-wrapper">
<h1>Sundarbans AI Chatbot</h1>
<div
id="chat-container"
ref="chatContainer"
>
<div
id="output"
ref="output"
/>
</div>
</template>
<form
id="inputForm"
@submit.prevent="handleSubmit"
>
<input
id="textInput"
v-model="question"
type="text"
placeholder="Enter your question"
required
>
<button
id="submitButton"
type="submit"
>
Submit
</button>
<button
id="stopButton"
type="button"
@click="handleStop"
>
Stop
</button>
</form>
</div>
</template>

<script>
import { marked } from 'marked';
import NavBar from './NavBar.vue';

export default {
name: 'ChatBot',
components: {
NavBar
},
data() {
return {
question: '',
Expand All @@ -34,8 +57,8 @@
messageHistory: []
};
},
components: {
NavBar
mounted() {
// Optional: You can load any external scripts or setup initial states here
},
methods: {
async handleSubmit() {
Expand Down Expand Up @@ -108,9 +131,6 @@
document.getElementById('submitButton').style.display = 'inline';
document.getElementById('stopButton').style.display = 'none';
}
},
mounted() {
// Optional: You can load any external scripts or setup initial states here
}
};
</script>
Expand Down
13 changes: 10 additions & 3 deletions src/components/ClubPageNoBackend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@
<!-- Friendly placeholder while clubs page is getting a fresh face -->
<div class="p-12 text-center">
<div class="mx-auto max-w-xl">
<h1 class="text-3xl font-extrabold text-gray-900 dark:text-white mb-4">We're giving this page a glow-up ✨</h1>
<p class="text-gray-700 dark:text-gray-300 mb-6">Club directory is getting a fresh face — sleeker layout, better join flows, and shiny new links. Come back soon to see the new look!</p>
<h1 class="text-3xl font-extrabold text-gray-900 dark:text-white mb-4">
We're giving this page a glow-up ✨
</h1>
<p class="text-gray-700 dark:text-gray-300 mb-6">
Club directory is getting a fresh face — sleeker layout, better join flows, and shiny new links. Come back soon to see the new look!
</p>
<div class="inline-flex items-center gap-x-3">
<span class="inline-block rounded-full bg-indigo-50 text-indigo-700 px-3 py-1 text-sm font-semibold">Under construction</span>
<span class="text-sm text-gray-500 dark:text-gray-400">(We're brewing something awesome)</span>
</div>
<div class="mt-8">
<a href="/" class="inline-flex items-center gap-x-2 text-indigo-600 hover:text-indigo-500 dark:text-indigo-300">Return home</a>
<a
href="/"
class="inline-flex items-center gap-x-2 text-indigo-600 hover:text-indigo-500 dark:text-indigo-300"
>Return home</a>
</div>
</div>
</div>
Expand Down
115 changes: 78 additions & 37 deletions src/components/Council2425.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
<!-- Section: Design Block -->
<section class="mb-20">
<!-- Jumbotron -->
<div class="relative overflow-hidden bg-cover bg-no-repeat" style="
<div
class="relative overflow-hidden bg-cover bg-no-repeat"
style="
background-position: 50%;
background-image: url('https://images.unsplash.com/photo-1556484687-30636164638b?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
height: 500px;
">
"
>
<div
class="absolute top-0 right-0 bottom-0 left-0 h-full w-full overflow-hidden bg-[hsla(0,0%,0%,0.75)] bg-fixed">
class="absolute top-0 right-0 bottom-0 left-0 h-full w-full overflow-hidden bg-[hsla(0,0%,0%,0.75)] bg-fixed"
>
<div class="flex h-full items-center justify-center">
<div class="px-6 text-center text-white md:px-12">
<h1 class="mt-8 mb-5 text-5xl font-bold tracking-tight md:text-6xl xl:text-7xl">
Expand All @@ -36,7 +40,10 @@
<div class="container px-5 py-10 mx-auto">
<div class="flex flex-wrap -m-4">
<div class="container px-5 py-10 mx-auto">
<div id="adminsContainer" class="flex flex-wrap -m-4 upperCouncil">
<div
id="adminsContainer"
class="flex flex-wrap -m-4 upperCouncil"
>
<!-- First Admin -->
<div class="p-4 mx-auto md:w-1/4">
<div
Expand Down Expand Up @@ -102,10 +109,20 @@
</h1>

<div class="">
<div id="adminsContainer" class="grid grid-cols-1 gap-8 mt-8 xl:mt-16 md:grid-cols-2 xl:grid-cols-4">
<div v-for="g_l in group_leaders" :key="g_l.name"
class="flex-grow flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent">
<img class="object-cover w-full h-56" :src="prependBackendLink(g_l.image)" alt="avatar">
<div
id="adminsContainer"
class="grid grid-cols-1 gap-8 mt-8 xl:mt-16 md:grid-cols-2 xl:grid-cols-4"
>
<div
v-for="g_l in group_leaders"
:key="g_l.name"
class="flex-grow flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent"
>
<img
class="object-cover w-full h-56"
:src="prependBackendLink(g_l.image)"
alt="avatar"
>

<h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize dark:text-white group-hover:text-white">
{{ g_l.name }}
Expand All @@ -132,10 +149,16 @@
</p>

<div class="grid grid-cols-1 gap-8 mt-8 xl:mt-16 md:grid-cols-2 xl:grid-cols-4">
<div v-for="wops in webops" :key="wops.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent">
<img class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300" :src="prependBackendLink(wops.image)"
alt="avatar">
<div
v-for="wops in webops"
:key="wops.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent"
>
<img
class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300"
:src="prependBackendLink(wops.image)"
alt="avatar"
>

<h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize dark:text-white group-hover:text-white">
{{ wops.name }}
Expand All @@ -145,7 +168,10 @@
</div>
</section>

<section v-if="graphics" class="bg-white dark:bg-black mt-10 mb-20 pt-20 pb-20">
<section
v-if="graphics"
class="bg-white dark:bg-black mt-10 mb-20 pt-20 pb-20"
>
<div class="container px-6 py-10 mx-auto ">
<h1 class="text-2xl font-semibold text-center text-gray-800 capitalize lg:text-3xl dark:text-white">
Sundarbans Graphics Team
Expand All @@ -156,10 +182,16 @@
</p>

<div class="grid grid-cols-1 gap-8 mt-8 xl:mt-16 md:grid-cols-2 xl:grid-cols-4">
<div v-for="designer in graphics" :key="designer.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent">
<img class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300"
:src="prependBackendLink(designer.image)" alt="avatar">
<div
v-for="designer in graphics"
:key="designer.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent"
>
<img
class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300"
:src="prependBackendLink(designer.image)"
alt="avatar"
>

<h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize dark:text-white group-hover:text-white">
{{ designer.name }}
Expand All @@ -168,7 +200,10 @@
</div>
</div>
</section>
<section v-if="prteam" class="bg-white dark:bg-black mb-20">
<section
v-if="prteam"
class="bg-white dark:bg-black mb-20"
>
<div class="container px-6 py-10 mx-auto">
<h1 class="text-2xl font-semibold text-center text-gray-800 capitalize lg:text-3xl dark:text-white">
Sundarbans PR & Marketing Team
Expand All @@ -179,10 +214,16 @@
</p>

<div class="grid grid-cols-1 gap-8 mt-8 xl:mt-16 md:grid-cols-2 xl:grid-cols-4">
<div v-for="pr in prteam" :key="pr.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent">
<img class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300" :src="prependBackendLink(pr.image)"
alt="avatar">
<div
v-for="pr in prteam"
:key="pr.name"
class="flex flex-col items-center p-8 transition-colors duration-300 transform border cursor-pointer rounded-xl hover:border-transparent group hover:bg-blue-600 dark:border-gray-700 dark:hover:border-transparent"
>
<img
class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300"
:src="prependBackendLink(pr.image)"
alt="avatar"
>

<h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize dark:text-white group-hover:text-white">
{{ pr.name }}
Expand All @@ -193,13 +234,6 @@
</section>
</body>
</template>
<style scoped>
.upperCouncil {
img {
border-radius: 0%;
}
}
</style>
<script>
import axios from 'axios';
import NavBar from './NavBar.vue';
Expand Down Expand Up @@ -234,14 +268,6 @@ export default {
api_url: '',
};
},
methods: {
prependBackendLink(url) {
if (url == "/media/profile-icon-design-free-vector.jpg") {
return 'https://cdn.pixabay.com/photo/2018/11/13/21/43/avatar-3814049_1280.png'
}
return this.api_url + url;
},
},
async mounted() {
try {
this.api_url = this.$globalData.backendUrl;
Expand Down Expand Up @@ -275,6 +301,21 @@ export default {
console.error('Error fetching data:', error);
}
},
methods: {
prependBackendLink(url) {
if (url == "/media/profile-icon-design-free-vector.jpg") {
return 'https://cdn.pixabay.com/photo/2018/11/13/21/43/avatar-3814049_1280.png'
}
return this.api_url + url;
},
},

};
</script>
<style scoped>
.upperCouncil {
img {
border-radius: 0%;
}
}
</style>
20 changes: 7 additions & 13 deletions src/components/CouncilPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
<section class="mb-20">
<!-- Jumbotron -->
<div
class="relative overflow-hidden bg-cover bg-no-repeat"
style="
background-position: 50%;
background-image: url('https://images.unsplash.com/photo-1556484687-30636164638b?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
height: 500px;
"
class="relative overflow-hidden bg-[url('https://images.unsplash.com/photo-1556484687-30636164638b?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')] bg-cover bg-no-repeat bg-[50%] h-[500px]"
>
<div
class="absolute top-0 right-0 bottom-0 left-0 h-full w-full overflow-hidden bg-[hsla(0,0%,0%,0.75)] bg-fixed"
Expand Down Expand Up @@ -188,8 +183,7 @@

<section
v-if="graphics"
class="bg-white dark:bg-black mt-10 mb-20 pt-20 pb-20"

class="bg-white dark:bg-black mt-10 mb-20 pt-20 pb-20"
>
<div class="container px-6 py-10 mx-auto ">
<h1
Expand Down Expand Up @@ -292,11 +286,6 @@ export default {
api_url : '',
};
},
methods:{
prependBackendLink(url) {
return this.api_url + url;
},
},
async mounted() {
try {
this.api_url = this.$globalData.backendUrl;
Expand All @@ -313,6 +302,11 @@ export default {
console.error('Error fetching data:', error);
}
},
methods:{
prependBackendLink(url) {
return this.api_url + url;
},
},
};
</script>

Loading