I modified the banner section on large screens.

This commit is contained in:
PascalMarchesseault
2024-09-09 18:36:21 -04:00
parent 2d9c71be5e
commit 94950a3cba
5 changed files with 247 additions and 56 deletions

View File

@@ -1,63 +1,69 @@
<template>
<div class="relative w-full mb-5">
<div class="rounded-b-2xl"
:style="{ backgroundColor: creator.colors.bannerBottom || '#A30E79' }">
<div class="relative z-20">
<div class="relative w-full">
<div class="rounded-b-2xl pt-2 pb-1"
:style="{ backgroundColor: creator.colors.bannerBottom || '#A30E79', borderBottom: '5px inset' + (creator.colors.menu || '#000') }">
<div class="relative z-20">
<div class="flex flex-row items-center py-2">
<!--Logo & User Info-->
<div>
<div>
<img
class="shadow-2xl rounded-full border-solid border-4 absolute z-20 max-w-[225px] ml-15 -mt-40"
class="shadow-2xl rounded-full border-solid border-4 absolute z-20 max-w-[190px] ml-15 -mt-32"
:src="creator.images.logo ? creator.images.logo : '/images/placeholders/logo.png'"
alt="Profile Picture"
:style="{ borderColor: creator.colors.accent || '#A30E79', height: '225px'}"
:style="{ borderColor: creator.colors.accent || '#A30E79', height: '190px'}"
/>
</div>
</div>
<div class="ml-60 text-white mr-10">
<div class="ml-72 text-white mr-10">
<div>
<p class="capitalize text-3xl font-bold ">{{ creator.name }}</p>
<div>{{ creator.subscriberCount }} {{ $t('banner.subscription') }}</div>
<p class="capitalize text-4xl font-bold ">{{ creator.name }}</p>
<div class="text-2xl text-white flex flex-row align-center">
{{ creator.about.title }}
<creator-about class="px-2" :creator="creator"></creator-about>
</div>
</div>
</div>
<div class="flex items-center">
<subscribe-button :creator="creator"></subscribe-button>
</div>
<div class="flex items-center ml-4">
<donation-button :color-border="creator.colors.menu"
:color-accent="creator.colors.accent"
:creator-id="creator.id"
:creator-name="creator.name"
:creator-logo="creator.images.logo"
iconColorClass="text-white"
></donation-button>
</div>
<div class="flex flex-row ml-auto space-x-2.5">
<donation-button-banner
:color-border="creator.colors.menu"
:color-accent="creator.colors.accent"
:creator-id="creator.id"
:creator-name="creator.name"
:creator-logo="creator.images.logo"
iconColorClass="text-white">
</donation-button-banner>
<div class="flex ml-auto space-x-4 items-center">
<publish-content-button :creator="creator"
@content-posted="addContent"
></publish-content-button>
<div class="text-white">
{{ creator.about.title }}
<div class="flex flex-column">
<subscribe-button :creator="creator"
:color-border="creator.colors.menu"
></subscribe-button>
<div class="font-bold text-white flex justify-end mr-5 py-1.5" >{{ creator.subscriberCount }} {{ $t('banner.subscription') }}</div>
</div>
<creator-about :creator="creator"></creator-about>
</div>
</div>
</div>
</div>
<!-- &lt;!&ndash; a mettre dans le header&ndash;&gt;-->
<!-- <publish-content-button :creator="creator"-->
<!-- @content-posted="addContent"-->
<!-- ></publish-content-button>-->
</div>
</template>
<script setup>
import SubscribeButton from "@/views/creators/SubscribeButton.vue";
import PublishContentButton from "@/views/contents/PublishContentButton.vue";
import DonationButton from "@/views/creators/DonationButton.vue";
import DonationButtonBanner from "@/views/creators/DonationButtonBanner.vue";
import CreatorAbout from "@/views/creators/CreatorAbout.vue";
const props = defineProps({