11<!-- Full height app wrapper -->
2- < div class ="bg-secondary-50 dark:bg-secondary-200 fixed inset-0 flex flex-col ">
3- <!-- Sticky header -->
4- < section id ="jumbo "
5- class ="sticky top-0 z-10 w-full bg-cover bg-right-bottom pt-8 "
6- style ="background-image: url(assets/images/bg_1_shadow.png) ">
7-
8- < div class ="pt-8 pb-8 px-4 w-full text-left lg:pt-16 lg:px-12 ">
2+ < div class ="bg-secondary-50 dark:bg-secondary-200 flex min-h-full flex-col ">
3+ < section class ="w-full bg-[#DDE6F6] ">
4+ < div
5+ 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] ">
96 < div class ="flex flex-row mx-auto max-w-screen-xl justify-between ">
107 < div class ="flex flex-col ">
11- < h1 class ="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl text-white ">
8+ < h1
9+ class ="text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)] font-extrabold leading-[0.95] tracking-[0.02em] text-[#0B1528] ">
1210 Create a new entry
1311 </ h1 >
1412 </ div >
1513 </ div >
1614 </ div >
17- </ section >
18- <!-- Breadcrumb -->
19- < div class ="pb-4 ">
20- < 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 ">
15+ < div class ="pb-4 ">
16+ < 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 "
17+ aria-label ="Breadcrumb ">
2118 < ol class ="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse ">
2219 < li class ="inline-flex items-center ">
23- < 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 ">
20+ < button (click) ="goBack() "
21+ class ="inline-flex items-center text-sm font-medium text-gray-500 dark:text-white hover:text-primary-100 dark:hover:text-primary-50 ">
2422 < 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 ">
2523 < path stroke ="currentColor " stroke-linecap ="round " stroke-linejoin ="round " stroke-width ="2.5 " d ="M5 1 1 5l4 4m6-8L7 5l4 4 "/>
2624 </ svg >
@@ -37,50 +35,52 @@ <h1 class="mb-4 text-4xl font-extrabold tracking-tight md:text-5xl lg:text-6xl t
3735 </ li >
3836 </ ol >
3937 </ nav >
40- </ div >
41- <!-- End Breadcrumb -- >
38+ </ div >
39+ </ section >
4240
43- < div class ="flex-1 overflow-y-auto p-4 pb-16 ">
44- @if(loading){
45- < div role ="status " class ="w-full h-full flex justify-center align-middle ">
46- < 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 ">
47- < 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 "/>
48- < 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 "/>
49- </ svg >
50- < span class ="sr-only "> Loading...</ span >
51- </ div >
52- } @else {
53- <!-- Stepper -->
54- < form [formGroup] ="entryForm ">
55-
56- < form class ="md:p-8 " [formGroup] ="entryForm ">
57- < label for ="title " class ="font-bold text-lg dark:text-white "> Title</ label >
58- < input data-cy ="blogEntryTitle " id ="title " type ="text " formControlName ="title "
59- 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 "/>
60-
61- < label class ="font-bold text-lg col-span-2 dark:text-white "> Content</ label >
62- < app-markdown-textarea class ="h-[500px] " formControlName ="content "> </ app-markdown-textarea >
63- </ form >
64- <!-- Navigation Buttons -->
65- @if(blogId){
66- < div class ="flex justify-end mt-6 space-x-4 ">
67-
68- < button data-cy ="blogEntryCreate " (click) ="update() " [disabled] ="entryForm.invalid "
69- class ="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50 ">
70- Update entry
71- </ button >
72- </ div >
73- } @else {
74- < div class ="flex justify-end mt-6 space-x-4 ">
75-
76- < button data-cy ="blogEntryCreate " (click) ="create() " [disabled] ="entryForm.invalid "
77- class ="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50 ">
78- Create entry
79- </ button >
41+ < 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] ">
42+ < 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 ">
43+ @if(loading){
44+ < div role ="status " class ="flex min-h-[300px] w-full items-center justify-center ">
45+ < 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 ">
46+ < 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 "/>
47+ < 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 "/>
48+ </ svg >
49+ < span class ="sr-only "> Loading...</ span >
8050 </ div >
81- }
82- </ form >
83- }
51+ } @else {
52+ <!-- Stepper -->
53+ < form [formGroup] ="entryForm ">
54+
55+ < form class ="md:p-8 " [formGroup] ="entryForm ">
56+ < label for ="title " class ="font-bold text-lg dark:text-white "> Title</ label >
57+ < input data-cy ="blogEntryTitle " id ="title " type ="text " formControlName ="title "
58+ 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 "/>
59+
60+ < label class ="font-bold text-lg col-span-2 dark:text-white "> Content</ label >
61+ < app-markdown-textarea class ="h-[500px] " formControlName ="content "> </ app-markdown-textarea >
62+ </ form >
63+ <!-- Navigation Buttons -->
64+ @if(blogId){
65+ < div class ="flex justify-end mt-6 space-x-4 ">
66+
67+ < button data-cy ="blogEntryCreate " (click) ="update() " [disabled] ="entryForm.invalid "
68+ class ="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50 ">
69+ Update entry
70+ </ button >
71+ </ div >
72+ } @else {
73+ < div class ="flex justify-end mt-6 space-x-4 ">
74+
75+ < button data-cy ="blogEntryCreate " (click) ="create() " [disabled] ="entryForm.invalid "
76+ class ="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100 disabled:opacity-50 ">
77+ Create entry
78+ </ button >
79+ </ div >
80+ }
81+ </ form >
82+ }
83+ </ div >
8484 </ div >
8585
8686 </ div >
@@ -98,4 +98,4 @@ <h3 class="text-lg font-medium">Error</h3>
9898 </ div >
9999 </ div >
100100 </ div >
101- }
101+ }
0 commit comments