Add partnership
This commit is contained in:
@@ -1,6 +1,158 @@
|
||||
<template>
|
||||
<div
|
||||
class="max-w-screen-xl mx-auto py-12 px-4 text-center sm:px-6 lg:px-8 lg:py-0"
|
||||
v-if="id == 'home'"
|
||||
class="
|
||||
max-w-screen-xl
|
||||
mx-auto
|
||||
py-12
|
||||
px-4
|
||||
text-center
|
||||
sm:px-6
|
||||
lg:px-8
|
||||
lg:py-0
|
||||
"
|
||||
>
|
||||
<div class="space-y-12">
|
||||
<div
|
||||
class="space-y-5 sm:mx-auto sm:max-w-xl sm:space-y-4 lg:max-w-5xl"
|
||||
v-if="main"
|
||||
>
|
||||
<h2
|
||||
class="text-4xl leading-tight mb-6 font-bold font-heading uppercase"
|
||||
>
|
||||
{{ main.title }} <span class="font-extrabold">{{ main.slogan }}</span>
|
||||
</h2>
|
||||
<div class="mt-3 text-gray-700 sm:mt-4" v-html="main.content"></div>
|
||||
</div>
|
||||
<div
|
||||
class="
|
||||
mx-auto
|
||||
grid-cols-2
|
||||
sm:grid sm:grid-cols-1
|
||||
lg:grid-cols-2
|
||||
lg:max-w-5xl
|
||||
"
|
||||
>
|
||||
<div
|
||||
class="my-5 mx-5 pt-10 bg-gray"
|
||||
v-for="partnership in partnerships"
|
||||
:key="partnership.id"
|
||||
>
|
||||
<div class="space-y-2">
|
||||
<div class="text-lg font-medium space-y-1">
|
||||
<h2 class="font-light leading-none">
|
||||
{{ partnership.title }}
|
||||
<span class="block font-bold"> {{ partnership.subtitle }}</span>
|
||||
</h2>
|
||||
<div
|
||||
class="text-base px-5 mb-5 text-gray-800"
|
||||
v-html="partnership.content"
|
||||
></div>
|
||||
</div>
|
||||
<div v-if="partnership.button">
|
||||
<a
|
||||
v-if="partnership.link.includes('http')"
|
||||
target="_blank"
|
||||
:href="partnership.link"
|
||||
class="
|
||||
inline-block
|
||||
text-lg
|
||||
learn-button
|
||||
hover:bg-gray-400
|
||||
px-12
|
||||
py-1
|
||||
mr-5
|
||||
my-10
|
||||
border-2
|
||||
shadow
|
||||
border-black
|
||||
"
|
||||
>{{ partnership.button }}</a
|
||||
>
|
||||
<a
|
||||
v-else
|
||||
:href="partnership.link"
|
||||
class="
|
||||
inline-block
|
||||
text-lg
|
||||
learn-button
|
||||
hover:bg-gray-400
|
||||
px-12
|
||||
py-1
|
||||
mr-5
|
||||
my-10
|
||||
border-2
|
||||
shadow
|
||||
border-black
|
||||
"
|
||||
>{{ partnership.button }}</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<g-image
|
||||
class="mx-auto"
|
||||
:src="partnership.img.src"
|
||||
:alt="partnership.id"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div v-if="button">
|
||||
<a
|
||||
v-if="link.includes('http')"
|
||||
target="_blank"
|
||||
:href="link"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
"
|
||||
>{{ button }}</a
|
||||
>
|
||||
<a
|
||||
v-else
|
||||
:href="link"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
"
|
||||
>{{ button }}</a
|
||||
>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else
|
||||
class="
|
||||
max-w-screen-xl
|
||||
mx-auto
|
||||
py-12
|
||||
px-4
|
||||
text-center
|
||||
sm:px-6
|
||||
lg:px-8
|
||||
lg:py-0
|
||||
"
|
||||
>
|
||||
<div class="space-y-12">
|
||||
<div class="space-y-5 sm:mx-auto sm:max-w-xl sm:space-y-4 lg:max-w-5xl">
|
||||
@@ -13,7 +165,13 @@
|
||||
</div>
|
||||
<div
|
||||
v-if="id == 'home'"
|
||||
class="mx-auto grid-cols-2 sm:grid sm:grid-cols-1 lg:grid-cols-2 lg:max-w-5xl"
|
||||
class="
|
||||
mx-auto
|
||||
grid-cols-2
|
||||
sm:grid sm:grid-cols-1
|
||||
lg:grid-cols-2
|
||||
lg:max-w-5xl
|
||||
"
|
||||
>
|
||||
<div
|
||||
class="my-5 mx-5"
|
||||
@@ -39,7 +197,13 @@
|
||||
|
||||
<div
|
||||
v-else
|
||||
class="mx-auto grid-cols-2 sm:grid sm:grid-cols-1 lg:grid-cols-2 lg:max-w-5xl"
|
||||
class="
|
||||
mx-auto
|
||||
grid-cols-2
|
||||
sm:grid sm:grid-cols-1
|
||||
lg:grid-cols-2
|
||||
lg:max-w-5xl
|
||||
"
|
||||
>
|
||||
<div
|
||||
class="my-5 mx-5"
|
||||
@@ -67,13 +231,41 @@
|
||||
v-if="main.link.includes('http')"
|
||||
target="_blank"
|
||||
:href="main.link"
|
||||
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
rounded-full
|
||||
"
|
||||
>{{ main.button }}</a
|
||||
>
|
||||
<a
|
||||
v-else
|
||||
:href="main.link"
|
||||
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
rounded-full
|
||||
"
|
||||
>{{ main.button }}</a
|
||||
>
|
||||
|
||||
@@ -81,13 +273,41 @@
|
||||
v-if="main.link2.includes('http')"
|
||||
target="_blank"
|
||||
:href="main.link2"
|
||||
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
rounded-full
|
||||
"
|
||||
>{{ main.button2 }}</a
|
||||
>
|
||||
<a
|
||||
v-else
|
||||
:href="main.link2"
|
||||
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
class="
|
||||
inline-block
|
||||
bg-blue-900
|
||||
text-sm
|
||||
learn-button
|
||||
hover:bg-blue-800
|
||||
text-gray-100
|
||||
px-12
|
||||
py-2
|
||||
mr-5
|
||||
mb-4
|
||||
rounded
|
||||
shadow
|
||||
rounded-full
|
||||
"
|
||||
>{{ main.button2 }}</a
|
||||
>
|
||||
</div>
|
||||
@@ -99,4 +319,10 @@
|
||||
export default {
|
||||
props: ["id", "partnerships", "main"],
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.bg-gray {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user