Skip to content
Snippets Groups Projects
Commit 4031a037 authored by Alexandre Pantiez's avatar Alexandre Pantiez
Browse files

fix css on footer and update G1Crowdfunding

parent de0cb0f9
No related branches found
No related tags found
1 merge request!6fix css on footer and update G1Crowdfunding
<template> <template>
<div class="overflow-hidden whitespace-nowrap relative"> <div class="lg:flex-nowrap flex-wrap justify-between relative">
<slot <slot
name="stats" name="stats"
:node="node" :node="node"
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:issuers="issuers" :issuers="issuers"
:graph="graph" :graph="graph"
> >
<div class="mr-8 pt-2 leading-5"> <div class="leading-5 px-2 lg:px-0">
<div v-if="unit === 'DU'"> <div v-if="unit === 'DU'">
<span v-if="total && dividend" class="text-xl font-bold"> <span v-if="total && dividend" class="text-xl font-bold">
{{ {{
...@@ -28,31 +28,36 @@ ...@@ -28,31 +28,36 @@
</span> </span>
{{ ' Ğ1' }} {{ ' Ğ1' }}
</div> </div>
<div class="font-extralight"> <div class="text-xl font-extralight">
{{ `Montant collecté en ${months} mois` }} {{ `Montant collecté en ${months} mois` }}
</div> </div>
</div> </div>
<div class="mr-8 pt-2 leading-5"> <div class="leading-5 px-2 lg:px-0">
<div class="text-xl font-bold">{{ issuers.length }}</div> <div class="text-xl font-bold">{{ issuers.length }}</div>
<div class="font-extralight">{{ 'Donneurs' }}</div> <div class="text-xl font-extralight">{{ 'Donneurs' }}</div>
</div> </div>
</slot> </slot>
<div class="flex items-center pt-2"> <div
<slot name="button" :on-click="onClick"> class="flex items-center w-full lg:w-max justify-center px-2 lg:px-0"
<t-button :text="buttonText" @click="onClick" /> v-if="!isKeyCopied"
>
<slot name="button" class="w-full lg:w-max" :on-click="onClick">
<t-button class="w-full lg:w-max" @click="onClick">
{{ buttonText }}
</t-button>
</slot> </slot>
</div> </div>
<div class="absolute"> <div
<t-alert variant="success" :show="isKeyCopied"> class="flex items-center w-full lg:w-max justify-center px-2 lg:px-0"
<div class="flex items-center"> v-if="isKeyCopied"
<div>Clé copiée :</div> >
<div class="ml-2 select-all text-xs" v-text="pubkey" /> <t-button variant="success" class="w-full lg:w-max" @click="onClick">
</div> <fa icon="check" />
<div>Ouvrez Césium pour faire votre don. Merci !</div> Clé copiée
</t-alert> </t-button>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
class="flex" class="flex"
> >
<template #button="{ onClick }"> <template #button="{ onClick }">
<t-button @click="onClick"> <t-button @click="onClick" class="w-full lg:w-max">
<fa icon="heart"></fa><span class="ml-2">Je participe !</span> <fa icon="heart"></fa><span class="ml-2">Je participe !</span>
</t-button> </t-button>
</template> </template>
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
</div> </div>
</div> </div>
<div class="w-full sm:w-1/2 md:w-1/2 pl-8 flex justify-between"> <div
class="w-full flex flex-col pl-0 sm:w-1/2 sm:items-start sm:pl-8 md:justify-around md:flex-row"
>
<div> <div>
<h3 class="text-3xl py-4">Sections</h3> <h3 class="text-3xl py-4">Sections</h3>
<ul> <ul>
......
...@@ -78,6 +78,7 @@ export default { ...@@ -78,6 +78,7 @@ export default {
'faHeart', 'faHeart',
'faInfoCircle', 'faInfoCircle',
'faCheckCircle', 'faCheckCircle',
'faCheck',
'faExclamationCircle', 'faExclamationCircle',
'faExclamationTriangle', 'faExclamationTriangle',
'faExternalLinkAlt', 'faExternalLinkAlt',
......
...@@ -50,6 +50,8 @@ const settings = { ...@@ -50,6 +50,8 @@ const settings = {
'block px-4 py-2 transition duration-100 ease-in-out rounded hover:shadow-sm hover:underline hover:bg-white hover:bg-opacity-50 focus:ring-2 focus:ring-blue-500 focus:outline-none focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed', 'block px-4 py-2 transition duration-100 ease-in-out rounded hover:shadow-sm hover:underline hover:bg-white hover:bg-opacity-50 focus:ring-2 focus:ring-blue-500 focus:outline-none focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed',
custom: custom:
'block px-4 py-2 text-white transition duration-100 ease-in-out border border-transparent rounded shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed', 'block px-4 py-2 text-white transition duration-100 ease-in-out border border-transparent rounded shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed',
success:
'text-white bg-green-500 border border-transparent shadow-sm rounded hover:bg-green-600 block px-4 py-2 transition duration-100 ease-in-out focus:border-green-500 focus:ring-2 focus:ring-green-500 focus:outline-none focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed',
}, },
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment