Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,56 +1,54 @@
<div class="bg-secondary-50 dark:bg-secondary-200 fixed inset-0 flex flex-col">
<!-- Sticky header + breadcrumb wrapper -->
<div class="sticky top-0 z-10">
<!-- Header -->
<section id="jumbo"
class="w-full bg-cover bg-right-bottom pt-8"
style="background-image: url(assets/images/bg_1_shadow.png)">

<div class="pt-8 pb-8 px-4 w-full text-left lg:pt-16 lg:px-12">
<div class="flex flex-row mx-auto max-w-screen-xl justify-between">
<div class="flex flex-col">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl text-white">
<div class="bg-secondary-50 dark:bg-secondary-200 flex min-h-full flex-col">
<section class="w-full bg-[#DDE6F6]">
<div
class="mx-auto w-full max-w-[1440px] px-6 py-10 sm:px-8 md:px-10 md:py-12 lg:px-16 xl:px-[160px]">
<div class="flex flex-row mx-auto max-w-screen-xl justify-between">
<div class="flex flex-col">
<h1
class="text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)] font-extrabold leading-[0.95] tracking-[0.02em] text-[#0B1528]">
{{entry.title}}
</h1>
<p class="text-lg font-normal lg:text-xl text-secondary-50">
Created by
<b class="text-primary-50">
{{entry.author}}
</b>
on {{entry.date | date:'EEEE, dd/MM/yy, HH:mm'}}.
</p>
</div>
</div>
</h1>
<p class="mt-4 text-[clamp(1rem,0.92rem+0.35vw,1.25rem)] leading-[1.6] text-[#4C5A6B]">
Created by
<b class="text-[#2D58A7]">
{{entry.author}}
</b>
on {{entry.date | date:'EEEE, dd/MM/yy, HH:mm'}}.
</p>
</div>
</div>
</section>
</div>
<div class="pb-4">
<nav class="flex px-5 py-3 shadow-lg text-gray-700 border border-gray-200 bg-secondary-50 dark:bg-secondary-100 dark:border-gray-800 dark:text-white">
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
<li class="inline-flex items-center">
<button (click)="goBack()"
class="inline-flex items-center text-sm font-medium text-gray-500 dark:text-white hover:text-primary-100 dark:hover:text-primary-50">
<svg class="w-3 h-3 mr-2 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 1 1 5l4 4m6-8L7 5l4 4"/>
</svg>
Back
</button>
</li>
<li aria-current="page">
<div class="flex items-center">
<svg class="rtl:rotate-180 w-3 h-3 mx-1 text-gray-400 dark:text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
</svg>
<span class="ms-1 text-sm font-medium text-gray-500 dark:text-white md:ms-2">Entry details</span>
</div>
</li>
</ol>
</nav>
</div>
</section>

<!-- Breadcrumb -->
<nav class="flex px-5 py-3 shadow-lg text-gray-700 border border-gray-200 bg-secondary-50 dark:bg-secondary-100 dark:border-gray-800 dark:text-white">
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
<li class="inline-flex items-center">
<button (click)="goBack()" class="inline-flex items-center text-sm font-medium text-gray-500 dark:text-white hover:text-primary-100 dark:hover:text-primary-50">
<svg class="w-3 h-3 mr-2 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 1 1 5l4 4m6-8L7 5l4 4"/>
</svg>
Back
</button>
</li>
<li aria-current="page">
<div class="flex items-center">
<svg class="rtl:rotate-180 w-3 h-3 mx-1 text-gray-400 dark:text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
</svg>
<span class="ms-1 text-sm font-medium text-gray-500 dark:text-white md:ms-2">Entry details</span>
</div>
</li>
</ol>
</nav>
</div>

<!-- Scrollable content -->
<div class="flex-1 overflow-y-auto p-8 lg:pt-8 lg:p-16">
<markdown class="text-gray-700 dark:text-secondary-50 whitespace-pre-line"
[data]="entry.content">
</markdown>
<div class="flex-1 mx-auto w-full max-w-[1440px] p-4 pb-16 sm:px-8 md:px-10 lg:px-16 xl:px-[160px]">
<div
class="mx-auto w-full max-w-screen-xl rounded-lg border border-gray-300 bg-white p-6 shadow-lg dark:border-secondary-300 dark:bg-secondary-100 md:p-8 lg:p-10">
<markdown class="text-gray-700 dark:text-secondary-50 whitespace-pre-line break-words"
[data]="entry.content">
</markdown>
</div>
</div>
</div>
26 changes: 11 additions & 15 deletions src/app/pages/dome-blog/dome-blog.component.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
<!-- Full height app wrapper -->
<div class="bg-secondary-50 dark:bg-secondary-200 fixed inset-0 flex flex-col">
<!-- Sticky header -->
<section id="jumbo"
class="sticky top-0 z-10 w-full bg-cover bg-right-bottom pt-8"
style="background-image: url(assets/images/bg_1_shadow.png)">

<div class="pt-8 pb-8 px-4 w-full text-left lg:pt-16 lg:px-12">
<div class="flex flex-row mx-auto max-w-screen-xl justify-between">
<div class="bg-secondary-50 dark:bg-secondary-200 flex min-h-full flex-col">
<section class="w-full bg-[#DDE6F6]">
<div
class="mx-auto flex w-full max-w-[1440px] flex-col gap-6 px-6 py-10 sm:px-8 md:px-10 md:py-12 lg:px-16 xl:px-[160px]">
<div class="flex flex-row items-start justify-between gap-4">
<div class="flex flex-col">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl text-white">
<h1
class="text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)] font-extrabold leading-[0.95] tracking-[0.02em] text-[#0B1528]">
Blog
</h1>
<!--<p class="text-lg font-normal lg:text-xl text-secondary-50">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor
</p>-->
</div>
@if(checkAdmin){
<button type="button" data-cy="newBlogEntry" (click)="goToCreate()" class="ml-2 mr-8 mb-4 text-white max-h-12 bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle me-2">
<button type="button" data-cy="newBlogEntry" (click)="goToCreate()"
class="h-fit text-white bg-[#2D58A7] hover:bg-[#244A8D] focus:ring-4 focus:outline-none focus:ring-[#2D58A733] font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle">
<p class="pl-2 pr-2">Add a new entry</p>
<svg class="w-[18px] h-[18px] text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7 7V5"/>
Expand All @@ -28,9 +24,9 @@ <h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl t
</section>

<!-- Only this area scrolls -->
<div class="flex-1 overflow-y-auto p-4 pb-16">
<div class="flex-1 mx-auto w-full max-w-[1440px] px-6 pb-16 pt-4 sm:px-8 md:px-10 lg:px-16 xl:px-[160px]">
@for(entry of entries; track entry){
<div class="flex flex-col m-4 mx-auto max-w-screen-xl w-full border border-gray-300 dark:border-secondary-300 bg-white dark:bg-secondary-100 rounded-lg shadow-lg p-8">
<div class="mb-8 flex w-full flex-col border border-gray-300 bg-white p-8 shadow-lg rounded-lg dark:border-secondary-300 dark:bg-secondary-100">
<div class="flex inline-flex justify-between">
<h2 class="text-2xl font-bold mb-4 dark:text-white break-words">{{ entry.title }}</h2>
@if(entry.partyId == partyId){
Expand Down
112 changes: 56 additions & 56 deletions src/app/pages/dome-blog/entry-form/entry-form.component.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
<!-- Full height app wrapper -->
<div class="bg-secondary-50 dark:bg-secondary-200 fixed inset-0 flex flex-col">
<!-- Sticky header -->
<section id="jumbo"
class="sticky top-0 z-10 w-full bg-cover bg-right-bottom pt-8"
style="background-image: url(assets/images/bg_1_shadow.png)">

<div class="pt-8 pb-8 px-4 w-full text-left lg:pt-16 lg:px-12">
<div class="bg-secondary-50 dark:bg-secondary-200 flex min-h-full flex-col">
<section class="w-full bg-[#DDE6F6]">
<div
class="mx-auto w-full max-w-[1440px] px-6 py-10 sm:px-8 md:px-10 md:py-12 lg:px-16 xl:px-[160px]">
<div class="flex flex-row mx-auto max-w-screen-xl justify-between">
<div class="flex flex-col">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl text-white">
<h1
class="text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)] font-extrabold leading-[0.95] tracking-[0.02em] text-[#0B1528]">
Create a new entry
</h1>
</div>
</div>
</div>
</section>
<!-- Breadcrumb -->
<div class="pb-4">
<nav class="flex px-5 py-3 shadow-lg text-gray-700 border border-gray-200 bg-secondary-50 dark:bg-secondary-100 dark:border-gray-800 dark:text-white" aria-label="Breadcrumb">
<div class="pb-4">
<nav class="flex px-5 py-3 shadow-lg text-gray-700 border border-gray-200 bg-secondary-50 dark:bg-secondary-100 dark:border-gray-800 dark:text-white"
aria-label="Breadcrumb">
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
<li class="inline-flex items-center">
<button (click)="goBack()" class="inline-flex items-center text-sm font-medium text-gray-500 dark:text-white hover:text-primary-100 dark:hover:text-primary-50">
<button (click)="goBack()"
class="inline-flex items-center text-sm font-medium text-gray-500 dark:text-white hover:text-primary-100 dark:hover:text-primary-50">
<svg class="w-3 h-3 mr-2 text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 1 1 5l4 4m6-8L7 5l4 4"/>
</svg>
Expand All @@ -37,50 +35,52 @@ <h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl t
</li>
</ol>
</nav>
</div>
<!-- End Breadcrumb -->
</div>
</section>

<div class="flex-1 overflow-y-auto p-4 pb-16">
@if(loading){
<div role="status" class="w-full h-full flex justify-center align-middle">
<svg aria-hidden="true" class="w-12 h-12 text-gray-200 animate-spin dark:text-gray-600 fill-secondary-400" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/>
</svg>
<span class="sr-only">Loading...</span>
</div>
} @else {
<!-- Stepper -->
<form [formGroup]="entryForm">

<form class="md:p-8" [formGroup]="entryForm">
<label for="title" class="font-bold text-lg dark:text-white">Title</label>
<input data-cy="blogEntryTitle" id="title" type="text" formControlName="title"
class="mb-2 bg-gray-50 dark:bg-secondary-300 border border-gray-300 dark:border-gray-800 dark:text-white text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"/>

<label class="font-bold text-lg col-span-2 dark:text-white">Content</label>
<app-markdown-textarea class="h-[500px]" formControlName="content"></app-markdown-textarea>
</form>
<!-- Navigation Buttons -->
@if(blogId){
<div class="flex justify-end mt-6 space-x-4">

<button data-cy="blogEntryCreate" (click)="update()" [disabled]="entryForm.invalid"
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50">
Update entry
</button>
</div>
} @else {
<div class="flex justify-end mt-6 space-x-4">

<button data-cy="blogEntryCreate" (click)="create()" [disabled]="entryForm.invalid"
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50">
Create entry
</button>
<div class="flex-1 mx-auto w-full max-w-[1440px] p-4 pb-16 sm:px-8 md:px-10 lg:px-16 xl:px-[160px]">
<div class="mx-auto w-full max-w-screen-xl rounded-lg border border-gray-300 bg-white p-6 shadow-lg dark:border-secondary-300 dark:bg-secondary-100 md:p-8">
@if(loading){
<div role="status" class="flex min-h-[300px] w-full items-center justify-center">
<svg aria-hidden="true" class="w-12 h-12 text-gray-200 animate-spin dark:text-gray-600 fill-secondary-400" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/>
</svg>
<span class="sr-only">Loading...</span>
</div>
}
</form>
}
} @else {
<!-- Stepper -->
<form [formGroup]="entryForm">

<form class="md:p-8" [formGroup]="entryForm">
<label for="title" class="font-bold text-lg dark:text-white">Title</label>
<input data-cy="blogEntryTitle" id="title" type="text" formControlName="title"
class="mb-2 bg-gray-50 dark:bg-secondary-300 border border-gray-300 dark:border-gray-800 dark:text-white text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"/>

<label class="font-bold text-lg col-span-2 dark:text-white">Content</label>
<app-markdown-textarea class="h-[500px]" formControlName="content"></app-markdown-textarea>
</form>
<!-- Navigation Buttons -->
@if(blogId){
<div class="flex justify-end mt-6 space-x-4">

<button data-cy="blogEntryCreate" (click)="update()" [disabled]="entryForm.invalid"
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50">
Update entry
</button>
</div>
} @else {
<div class="flex justify-end mt-6 space-x-4">

<button data-cy="blogEntryCreate" (click)="create()" [disabled]="entryForm.invalid"
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50">
Create entry
</button>
</div>
}
</form>
}
</div>
</div>

</div>
Expand All @@ -98,4 +98,4 @@ <h3 class="text-lg font-medium">Error</h3>
</div>
</div>
</div>
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component } from "@angular/core";
import { environment } from "src/environments/environment";
import { LandingCustomersBuyOptionsComponent } from './landing-customers-buy-options/landing-customers-buy-options.component';
import { LandingCustomersFaqsComponent } from './landing-customers-faqs/landing-customers-faqs.component';
import { LandingCustomersFinalCtaComponent } from './landing-customers-finalCta/landing-customers-finalCta.component';
Expand All @@ -16,5 +17,5 @@ import { LandingpageCustomersWhyJoinComponent } from "./landing-customers-whyJoi
styleUrl: "./landing-page-customers.component.css"
})
export class LandingPageCustomersComponent {
ONBOARDING_CUSTOMERS_LINK = "https://onboard.sbx.evidenceledger.eu/register-customer";
ONBOARDING_CUSTOMERS_LINK = environment.DOME_CUSTOMER_REGISTER_LINK;
}
Loading
Loading