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

Finalists voting pages #111

Merged
merged 2 commits into from
Feb 16, 2025
Merged
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
8 changes: 7 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import PageBlog2 from "./pages/PageBlog2.vue"
import PageKasun from "./TechTips/Kasun.vue";
import Semi from "./pages/PageSemiFinalists.vue";
import Footer from "./components/Footer.vue";
import PageVote from "./pages/PageVote.vue";
// import RibbonNotice from "./components/RibbonNotice.vue";
// import ToastButton from "./components/ToastButton.vue";

Expand All @@ -38,7 +39,12 @@ const routes = {
// "/admin": PageAdmin,
"/semi": Semi,
"/rules": PageRules,
// "/blog2": PageBlog2
// "/blog2": PageBlog2,
"/thulasithan": PageVote,
"/aloka" : PageVote,
"/amirthavarshani" : PageVote,
"/neelayadhakshi" : PageVote,
"/afrah" : PageVote
};

export default {
Expand Down
Binary file modified src/assets/images/finalists/afra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/aloka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/ami.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/ami.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/anuja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/harshi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/hemi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/neela.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/nethu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/ranuja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/ravitha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/thulasi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/finalists/unduli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/voting/afra.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/voting/aloka.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/voting/ami.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/voting/neela.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/voting/thulasi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/sponsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@

<script setup>
import { ref } from 'vue'
import combankLogo from '../assets/logos/combanklogo.png'

const sponsors = ref([
{
id: 1,
name: 'Commercial Bank',
imageUrl: "src/assets/logos/combanklogo.png",
imageUrl: combankLogo,
partnershipType: 'Silver'
}
])
Expand Down
4 changes: 2 additions & 2 deletions src/pages/PageSemiFinalists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ export default {
}
}




.gradient-border {
border-image: linear-gradient(to bottom right, rgba(132,106,0,1), rgba(132,0,30,1));
border-image-slice: 1;
Expand Down Expand Up @@ -361,7 +361,7 @@ export default {
text-align: center;
display: inline-block;
font-weight: bold; /* Making sure the font is bold */
font-size: 24px; /* Adjust font size as needed */
font-size: 20px; /* Adjust font size as needed */
animation: typing 2s steps(20, end) ;
}

Expand Down
122 changes: 122 additions & 0 deletions src/pages/PageVote.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<template>
<div v-if="current_data.length > 0" class="px-8 py-10 w-[90%] sm:w-[80%] md:w-[60%] h-auto mx-auto my-10 bg-gradient-to-br rounded-xl from-[#282828] to-[#EDC00111]">
<div class="w-[100%] max-w-[400px] mx-auto h-auto rounded-md overflow-hidden">
<img :src="current_data[0].image" class="w-full h-auto object-contain rounded-md">
</div>
<div class="grid grid-cols-2 gap-4 mt-4">
<a :href="current_data[0].igLink" class="w-full h-10 flex items-center justify-center hover:shadow-md hover:shadow-[#edc00155] hover:text-gray-100 bg-gray-700 bg-gradient-to-br transition-all duration-500 from-[#EDC001aa] via-[#EDC001] to-[#EDC001aa] rounded-lg">
<font-awesome-icon :icon="faInstagram" class="pl-4 sm:pl-0 sm:mr-2 text-black"/>
<p class="text-center font-bold text-black text-xs sm:text-sm md:text-md">Vote on Instagram</p>
</a>
<a :href="current_data[0].fbLink" class="w-full h-10 flex items-center justify-center hover:shadow-md hover:shadow-[#edc00155] hover:text-gray-100 bg-gray-700 bg-gradient-to-br transition-all duration-500 from-[#EDC001aa] via-[#EDC001] to-[#EDC001aa] rounded-lg">
<font-awesome-icon :icon="faFacebook" class="pl-4 sm:pl-0 sm:mr-2 text-black"/>
<p class="text-center font-bold text-black text-xs sm:text-sm md:text-md">Vote on Facebook</p>
</a>
</div>
<!-- <div class="text-gray-300 leading-6 text-left text-md sm:text-lg font-thin mt-8">
After an intense competition, this remarkable speaker has earned their spot in the grand Finale! With every word {{ current_data[0].name }} transforms the ordinary into the extraordinary. ✨
</div>
<div class="text-gray-300 leading-6 text-left text-md sm:text-lg font-thin mt-4">
Vote {{ current_data[0].gender ? "her" : "him" }} as the Most Popular Speaker and help crown the audience favorite! 🏆
</div> -->
<div class="text-gray-300 leading-6 text-left text-md sm:text-lg mt-4 font-normal">
Place your like now through Facebook and Instagram before 19th of February! 🗳✨
</div>
<ul class="list-disc pl-6 mt-2 space-y-1" style="list-style-type: circle;">
<li class="text-gray-300 p-1 font-semibold">1 like = 1 point</li>
<li class="text-gray-300 p-1 font-semibold">1 share = 2 points</li>
</ul>
<div class="text-gray-300 leading-6 text-left text-md sm:text-lg font-normal mt-4">
(Only the likes and shares of the original post will be considered.)
</div>
<div class="text-gray-300 leading-6 text-left text-md sm:text-lg font-bold mt-4">
Vote for them on the Grand Finale!
</div>
<div class="text-gray-300 leading-6 text-left text-md sm:text-lg font-bold">
A physical vote registered at the Grand Finale = 5 points
</div>
</div>
</template>

<script setup>
import { ref, onMounted } from "vue"
import thulasi from "../assets/images/voting/thulasi.jpg"
import ami from "../assets/images/voting/ami.jpg"
import neela from "../assets/images/voting/neela.jpg"
import aloka from "../assets/images/voting/aloka.jpg"
import afra from "../assets/images/voting/afra.jpg"

import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import {
faFacebook,
faInstagram,
} from "@fortawesome/free-brands-svg-icons";
// TODO: Check svg core bundle size
library.add(faInstagram, faFacebook);

const current_data = ref({})

const data = [
{
name: "Thulasithan Gnanenthiram",
hash : "#thulasithan",
gender : 0,
image: thulasi,
igLink: "https://www.instagram.com/p/DGBI7SbSJAO/?igsh=MWlhd3F1djNybzlscw==",
fbLink: "https://www.facebook.com/share/p/15qL8sRhvS/?mibextid=oFDknk"
},
{
name : "Amirthavarshani Ananthan",
hash: "#amirthavarshani",
gender : 1,
image: ami,
igLink: "https://www.instagram.com/p/DGBIl6rSC_y/?igsh=ZXh0Z3dib2JpbTY0",
fbLink: "https://www.facebook.com/share/p/1J8omuhXbd/?mibextid=oFDknk"
},
{
name: "Neelayadhakshi Priyadhakshan",
hash : "#neelayadhakshi",
gender : 1,
image: neela,
igLink: "https://www.instagram.com/p/DGBI1t2SKIh/?igsh=MTkxMXZiZWhwbTh0Mg==",
fbLink: "https://www.facebook.com/share/p/1A4LswJeeu/?mibextid=oFDknk"
},
{
name: "Aloka Fernando",
hash : "#aloka",
gender : 0,
image: aloka,
igLink: "https://www.instagram.com/p/DGBIvUGSMXk/?igsh=dzF6ZjI5cWEyMHJp",
fbLink: "https://www.facebook.com/share/p/16Azar2UYx/?mibextid=oFDknk"
},
{
name : "Afrah Rumie",
hash : "#afrah",
gender : 1,
image : afra,
igLink : "https://www.instagram.com/p/DGBIEhSysGC/?igsh=MXR4YmRia2dlYmpzeA==",
fbLink : "https://www.facebook.com/share/p/1CqidZF34L/?mibextid=oFDknk"
}
]

onMounted(() => {
const hash = window.location.hash;
current_data.value = data.filter(x => x.hash === hash);

window.onhashchange = () => {
const newHash = window.location.hash;
current_data.value = data.filter(x => x.hash === newHash);
};
});

</script>

<style scoped>
ul {
list-style-type: disc;
}
li {
border-style: none;
}
</style>