Skip to content

Commit

Permalink
Update homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-charlesm committed Jan 20, 2023
1 parent 908ba34 commit f20539c
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 16 deletions.
38 changes: 29 additions & 9 deletions components/TitleBody.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
<template>
<div>
<!-- NOTE PASS IN A TAG USING :tag WHEN IMPORTING THE COMPONENT -->
<div v-if="heroText != null && tag != null" class="text-white">
<h2>{{ heroText.title }}</h2>
<div v-html="heroText.html" />
<div v-if="heroTexts != null && tag != null">
<div v-for="heroText in heroTexts" :key="heroText.id">
<div class="flex flex-row">
<div>
<img
:src="heroText.feature_image"
:alt="feature_image_alt"
:class="img_css"
/>
</div>
<div class="flex-col">
<h2>{{ heroText.title }}</h2>
<div v-html="heroText.html" />
</div>
</div>
</div>
</div>
<div v-else-if="title != null && body != null">
<h2
class="text-2xl font-white"
>
<h2 class="text-2xl font-white">
{{ title }}
</h2>
<div class="text-lg" v-html="body" />
</div>
<div v-else-if="title != null && body == null">
<h2 class="text-2xl font-white">
{{ title }}
</h2>
</div>
</div>
</template>

Expand Down Expand Up @@ -43,17 +59,21 @@ export default Vue.extend({
type: String,
required: false,
},
img_css: {
type: String,
required: false,
},
},
data() {
return {
heroText: null,
heroTexts: null,
}
},
async created() {
// NOTE Get the post using the tag passed as prop
const heroText = await getPosts(this.tag)
const heroTexts = await getPosts(this.tag)
// NOTE Assign the post to heroText
this.heroText = heroText[0]
this.heroTexts = heroTexts
},
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion components/homepage/APDFLLinks.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="grid grid-cols-4 gap-x-10 w-full">
<div v-for="link in links" :key="link.id" class="">
<div class="btn rounded">
<div class="btn rounded-full">
<i class="icon icon-4691586_nuget_icon"></i>{{ link.name }}
</div>
</div>
Expand Down
74 changes: 74 additions & 0 deletions components/homepage/Endorsements.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<template lang="">
<div class="grid grid-cols-7 gap-x-12 gap-y-20">
<div v-for="company in companys" :key="company.id">
<img :src="company.logo" :alt="company.name" class="h-24 w-auto" />
</div>
</div>
</template>
<script>
export default {
data() {
return {
companys: [
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
{
name: 'company-name',
logo: 'https://www.datalogics.com/wp-content/uploads/2022/12/callas_b.png',
},
],
}
},
}
</script>
<style lang=""></style>
30 changes: 24 additions & 6 deletions pages/homepage.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<!-- Content Box -->
<div class="space-y-10">
<div class="flex flex-col space-y-24">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/[email protected]/devicon.min.css"></link>

<div class="hero min-h-screen bg-base-200 mb-12">
<div class="hero min-h-screen bg-base-200 mb-20">
<div class="hero-content text-center min-w-full">
<div class="flex lg:flex-row w-full justify-center">
<div>
Expand All @@ -14,7 +14,7 @@
Take Control of <span class="text-accent">PDF</span> Workflows
</h1>
</div>
<TitleBody :tag="'hash-homeherotext'" class="prose" />
<TitleBody :tag="'hash-homeherotext'" class="prose text-white" />
<SupportedPlatforms />
</div>
<CircleNav class="w-1/4" />
Expand All @@ -25,22 +25,40 @@


<div class="hero h-20">
<APDFLLinks class="hero-content"/>
<APDFLLinks class="hero-content place-content-center"/>
</div>
<div class="flex lg:flex-row w-fit mx-auto space-x-6 mb-12">
<div class="flex flex-col lg:flex-row w-fit mx-auto space-x-6 mb-12">
<FeaturesBox :featuresContentTagList="firstFeatureBoxTags" />
<FeaturesBox :featuresContentTagList="secondFeatureBoxTags" />
<FeaturesBox :featuresContentTagList="thirdFeatureBoxTags" />
</div>

<div class="hero min-h-80 bg-base-content py-10">
<div class=" hero-content min-w-full">
<Endorsements class=""/>
</div>
</div>

<div class="min-h-screen w-1/2 mx-auto">
<LowCodeTools />
</div>

<div class="text-center bg-primary font-bold py-2">
<TitleBody :title="'Companion SDKs & Publishing Tools'"/>
</div>

<div class="hero">
<div class="hero-content min-w-full">
<TitleBody :tag="'hash-hp-sdk-pub'" class="prose text-primary-content w-3/4" :img_css="'max-h-44 max-w-sm'" />
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue'
import CircleNav from '~/components/CircleNav.vue'
import APDFLLinks from '~/components/homepage/APDFLLinks.vue'
import Endorsements from '~/components/homepage/Endorsements.vue'
import LowCodeTools from '~/components/homepage/LowCodeTools.vue'
export default Vue.extend({
name: 'homepage',
Expand All @@ -59,6 +77,6 @@ export default Vue.extend({
],
}
},
components: { CircleNav, LowCodeTools, APDFLLinks },
components: { CircleNav, LowCodeTools, APDFLLinks, Endorsements },
})
</script>
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {
success: '#36D399',
warning: '#F2D424',
error: '#F23924',
'primary-focus': '#063573',
'base-content': '#021733',
'primary-content': '#A8CDFB',
},
},
],
Expand Down

0 comments on commit f20539c

Please sign in to comment.