Browse Source

done article view

staging
AzriIchik 2 months ago
parent
commit
a11098ace5

+ 10
- 0
content/collections/article.yaml View File

@@ -1,5 +1,15 @@
1 1
 title: Article
2
+template: article/show
3
+layout: layout
2 4
 revisions: false
5
+route: '/article/{slug}'
6
+date: true
7
+sort_dir: asc
3 8
 date_behavior:
4 9
   past: public
5 10
   future: private
11
+preview_targets:
12
+  -
13
+    label: Entry
14
+    url: '{permalink}'
15
+    refresh: true

+ 18
- 0
content/collections/article/2024-03-14.the-bola-1.md View File

@@ -0,0 +1,18 @@
1
+---
2
+id: f1c71af9-e3fc-459e-8cda-e4a4be1b10f3
3
+blueprint: article
4
+title: 'The Bola 1'
5
+author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
+updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
+updated_at: 1710555199
8
+date_field: '2024-03-13 08:50'
9
+image: group-6775.jpg
10
+---
11
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae dicta commodi ad
12
+
13
+nobisillum accusamus molestias aliquid nostrum adipisci totam labore nihil facilis delectus soluta ratione, exercitationem perferendis architecto sequi consectetur optio? Molestiae 
14
+repudiandae quae vitae vero cupiditate 
15
+
16
+deleniti corporis culpa quos repellat. Praesentium iste consequuntur maxime qui sequi totam, ipsam, labore quo nisi at aspernatur saepe harum perspiciatis 
17
+
18
+ullam aliquam, molestias quisquam corrupti expedita nostrum numquam nobis alias vel?

+ 12
- 0
content/collections/article/2024-03-14.the-bola-2.md View File

@@ -0,0 +1,12 @@
1
+---
2
+id: 5adec921-111f-41b1-ab60-f29e0ffd2f58
3
+blueprint: article
4
+title: 'The Bola 2'
5
+author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
+updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
+updated_at: 1710555146
8
+duplicated_from: f1c71af9-e3fc-459e-8cda-e4a4be1b10f3
9
+date_field: '2024-03-13 08:50'
10
+image: group-6774.jpg
11
+---
12
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae dicta commodi ad nobis illum accusamus molestias aliquid nostrum adipisci totam labore nihil facilis delectus soluta ratione, exercitationem perferendis architecto sequi consectetur optio? Molestiae repudiandae quae vitae vero cupiditate deleniti corporis culpa quos repellat. Praesentium iste consequuntur maxime qui sequi totam, ipsam, labore quo nisi at aspernatur saepe harum perspiciatis ullam aliquam, molestias quisquam corrupti expedita nostrum numquam nobis alias vel?

+ 12
- 0
content/collections/article/2024-03-14.the-bola-3.md View File

@@ -0,0 +1,12 @@
1
+---
2
+id: e41505ec-bbe3-456c-9bbd-36dcc0950727
3
+blueprint: article
4
+title: 'The Bola 3'
5
+author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
+updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
+updated_at: 1710555151
8
+duplicated_from: 5adec921-111f-41b1-ab60-f29e0ffd2f58
9
+date_field: '2024-03-13 08:50'
10
+image: group-6773.jpg
11
+---
12
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae dicta commodi ad nobis illum accusamus molestias aliquid nostrum adipisci totam labore nihil facilis delectus soluta ratione, exercitationem perferendis architecto sequi consectetur optio? Molestiae repudiandae quae vitae vero cupiditate deleniti corporis culpa quos repellat. Praesentium iste consequuntur maxime qui sequi totam, ipsam, labore quo nisi at aspernatur saepe harum perspiciatis ullam aliquam, molestias quisquam corrupti expedita nostrum numquam nobis alias vel?

+ 0
- 11
content/collections/article/the-bola-1.md View File

@@ -1,11 +0,0 @@
1
----
2
-id: f1c71af9-e3fc-459e-8cda-e4a4be1b10f3
3
-blueprint: article
4
-title: 'The Bola 1'
5
-author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
-updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
-updated_at: 1710380861
8
-date_field: '2024-03-13 08:50'
9
-image: group-6775.jpg
10
----
11
-Something Something

+ 0
- 12
content/collections/article/the-bola-2.md View File

@@ -1,12 +0,0 @@
1
----
2
-id: 5adec921-111f-41b1-ab60-f29e0ffd2f58
3
-blueprint: article
4
-title: 'The Bola 2'
5
-author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
-updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
-updated_at: 1710380884
8
-duplicated_from: f1c71af9-e3fc-459e-8cda-e4a4be1b10f3
9
-date_field: '2024-03-13 08:50'
10
-image: group-6774.jpg
11
----
12
-Something Something 2

+ 0
- 12
content/collections/article/the-bola-3.md View File

@@ -1,12 +0,0 @@
1
----
2
-id: e41505ec-bbe3-456c-9bbd-36dcc0950727
3
-blueprint: article
4
-title: 'The Bola 3'
5
-author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
-updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
7
-updated_at: 1710380897
8
-duplicated_from: 5adec921-111f-41b1-ab60-f29e0ffd2f58
9
-date_field: '2024-03-13 08:50'
10
-image: group-6773.jpg
11
----
12
-Something Something 3

+ 2
- 2
content/collections/pages/news.md View File

@@ -3,7 +3,7 @@ id: 80e50847-bb80-4980-a9df-5ffbc9b8dc86
3 3
 blueprint: page
4 4
 title: News
5 5
 author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6
-template: news
6
+template: article/index
7 7
 updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
8
-updated_at: 1710468060
8
+updated_at: 1710550926
9 9
 ---

+ 5
- 0
content/collections/test.yaml View File

@@ -0,0 +1,5 @@
1
+title: test
2
+revisions: false
3
+date_behavior:
4
+  past: public
5
+  future: private

+ 7
- 0
resources/blueprints/collections/article/article.yaml View File

@@ -60,3 +60,10 @@ sections:
60 60
         field:
61 61
           type: slug
62 62
           localizable: true
63
+      -
64
+        handle: date
65
+        field:
66
+          type: date
67
+          required: true
68
+          validate:
69
+            - required

resources/views/news.antlers.html → resources/views/article/index.antlers.html View File

@@ -10,13 +10,11 @@
10 10
     <div class="text-light section-5 py-7">
11 11
 
12 12
         <div class="row g-0 article-container">
13
-            <p class="text-highlight db-h5 fw-bold ps-3"> More News </p>
14 13
 
15 14
             {{ collection:article }}
16 15
                 {{ partial:partials/articlecard }}
17 16
             {{ /collection:article }}
18 17
 
19 18
         </div>
20
-        <button class="nav-link db-btn mx-auto d-none d-lg-block" style="font-size: clamp(18px,1vw,23px);font-weight: 500;padding: 0.5rem 3rem">See More</button>
21 19
     </div>
22 20
 </section>

+ 30
- 0
resources/views/article/partialArticle.antlers.html View File

@@ -0,0 +1,30 @@
1
+<a
2
+    class="grid grid-rows-[max-content_1fr] items-start rounded overflow-hidden"
3
+    data-aos="zoom-in"
4
+    href="{{ url }}"
5
+>
6
+    <img
7
+        class="row-[1_/_2] col-[1_/_3] w-full h-60 object-fill"
8
+        src="{{ article_pagearticle_image:url }}"
9
+        alt="{{ article_pagearticle_image:alt }}"
10
+    />
11
+    <div
12
+        class="grid grid-cols-[max-content] row-[1_/_2] col-[1_/_3] gap-4 my-4"
13
+    >
14
+        {{ article_pagearticle_taggable }}
15
+        <span class="bg-primary text-white text-center p-2">{{ value }}</span>
16
+        {{ /article_pagearticle_taggable }}
17
+    </div>
18
+    <div class="px-6 py-4">
19
+        <h1 class="font-bold text-3xl text-center my-5">{{ title }}</h1>
20
+        <div
21
+            class="grid grid-cols-[max-content_max-content] gap-4 items-center justify-center"
22
+        >
23
+            <i class="material-icons text-primary">calendar_today</i>
24
+            <span class="text-primary text-lg">
25
+                {{ article_pagearticle_date iso_format="DD, MMMM YYYY" }}
26
+            </span>
27
+        </div>
28
+        <p class="text-justify mt-5">{{ article_pagearticle_sub_heading }}</p>
29
+    </div>
30
+</a>

+ 15
- 0
resources/views/article/show.antlers.html View File

@@ -0,0 +1,15 @@
1
+
2
+<section>
3
+    <div class="text-md-center text-light py-5" style="background-image: url(/assets/image/dbparticle2.png);">
4
+        <div class="container-fluid p-0 m-0" data-aos="zoom-in" >
5
+            <p class="db-h3 text-highlight">{{ title }}</p>
6
+        </div>
7
+    </div>
8
+
9
+    <div class="text-white article-container py-5">
10
+        <img class="img-fluid rounded" src="{{ image }}" />
11
+        <p class="d-block text-db fw-bolder db-h5 py-2">{{ date_field }}</p>
12
+        <p>{{ content }}</p>
13
+    </div>
14
+
15
+</section>

+ 1
- 1
resources/views/partials/_footer.antlers.html View File

@@ -1,7 +1,7 @@
1 1
 <footer>
2 2
     <div class="row g-0 text-light py-5 footer-container">
3 3
         <div class="col-lg-3 text-center">
4
-            <img class="footer-logo" src="./assets/image/dblogo.png"/>
4
+            <img class="footer-logo" src="/assets/image/dblogo.png"/>
5 5
         </div>
6 6
         <div class="col-lg-3 px-5 px-lg-0">
7 7
             <p class="text-db footer-details-heading">Address</p>

+ 2
- 2
resources/views/partials/_navbar.antlers.html View File

@@ -3,7 +3,7 @@
3 3
         <div class="container-fluid d-flex flex-wrap justify-between p-0">
4 4
 
5 5
             <div class="d-none d-lg-block mx-auto mx-xxl-0">
6
-                <a style="text-decoration: none;" href="/"><img src="assets/logo_1.png" class="nav-logo-desktop">
6
+                <a style="text-decoration: none;" href="/"><img src="/assets/logo_1.png" class="nav-logo-desktop">
7 7
                     <span class="text-light text-highlight my-auto nav-logo-text">THEBOLA</span>
8 8
                 </img></a>
9 9
 
@@ -16,7 +16,7 @@
16 16
                         <i class="text-light fa-solid fa-bars fa-xl"></i>
17 17
                     </button>
18 18
                     <div class="d-inline d-lg-none mx-auto">
19
-                        <img src="assets/logo_1.png" class="img-fluid" style="width:60px;">
19
+                        <img src="/assets/logo_1.png" class="img-fluid" style="width:60px;">
20 20
                             <span class="text-light text-highlight my-auto" style="font-size:20px;padding-left: 1rem;vertical-align:middle">THEBOLA</span>
21 21
                         </img>
22 22
                     </div>

Loading…
Cancel
Save