Skip to content

Commit 1fe62ea

Browse files
committed
update
1 parent 1178564 commit 1fe62ea

File tree

21 files changed

+291
-154
lines changed

21 files changed

+291
-154
lines changed

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ gem "jekyll", "~> 4.3.0"
44
gem "jekyll-sass-converter", "~> 3.0"
55
gem "jekyll-paginate", "~> 1.1"
66
gem 'jekyll-feed'
7-
gem 'jekyll-sitemap'
7+
gem 'jekyll-sitemap'
8+
gem 'csv'
9+
gem 'base64'
10+
gem 'wdm', '>= 0.1.0'

Gemfile.lock

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
base64 (0.2.0)
7+
bigdecimal (3.1.9)
8+
colorator (1.1.0)
9+
concurrent-ruby (1.3.5)
10+
csv (3.3.3)
11+
em-websocket (0.5.3)
12+
eventmachine (>= 0.12.9)
13+
http_parser.rb (~> 0)
14+
eventmachine (1.2.7)
15+
ffi (1.17.1-x64-mingw-ucrt)
16+
forwardable-extended (2.6.0)
17+
google-protobuf (4.30.1-x64-mingw-ucrt)
18+
bigdecimal
19+
rake (>= 13)
20+
http_parser.rb (0.8.0)
21+
i18n (1.14.7)
22+
concurrent-ruby (~> 1.0)
23+
jekyll (4.3.4)
24+
addressable (~> 2.4)
25+
colorator (~> 1.0)
26+
em-websocket (~> 0.5)
27+
i18n (~> 1.0)
28+
jekyll-sass-converter (>= 2.0, < 4.0)
29+
jekyll-watch (~> 2.0)
30+
kramdown (~> 2.3, >= 2.3.1)
31+
kramdown-parser-gfm (~> 1.0)
32+
liquid (~> 4.0)
33+
mercenary (>= 0.3.6, < 0.5)
34+
pathutil (~> 0.9)
35+
rouge (>= 3.0, < 5.0)
36+
safe_yaml (~> 1.0)
37+
terminal-table (>= 1.8, < 4.0)
38+
webrick (~> 1.7)
39+
jekyll-feed (0.17.0)
40+
jekyll (>= 3.7, < 5.0)
41+
jekyll-paginate (1.1.0)
42+
jekyll-sass-converter (3.1.0)
43+
sass-embedded (~> 1.75)
44+
jekyll-sitemap (1.4.0)
45+
jekyll (>= 3.7, < 5.0)
46+
jekyll-watch (2.2.1)
47+
listen (~> 3.0)
48+
kramdown (2.5.1)
49+
rexml (>= 3.3.9)
50+
kramdown-parser-gfm (1.1.0)
51+
kramdown (~> 2.0)
52+
liquid (4.0.4)
53+
listen (3.9.0)
54+
rb-fsevent (~> 0.10, >= 0.10.3)
55+
rb-inotify (~> 0.9, >= 0.9.10)
56+
mercenary (0.4.0)
57+
pathutil (0.16.2)
58+
forwardable-extended (~> 2.6)
59+
public_suffix (6.0.1)
60+
rake (13.2.1)
61+
rb-fsevent (0.11.2)
62+
rb-inotify (0.11.1)
63+
ffi (~> 1.0)
64+
rexml (3.4.1)
65+
rouge (4.5.1)
66+
safe_yaml (1.0.5)
67+
sass-embedded (1.86.0-x64-mingw-ucrt)
68+
google-protobuf (~> 4.30)
69+
terminal-table (3.0.2)
70+
unicode-display_width (>= 1.1.1, < 3)
71+
unicode-display_width (2.6.0)
72+
webrick (1.9.1)
73+
74+
PLATFORMS
75+
x64-mingw-ucrt
76+
77+
DEPENDENCIES
78+
base64
79+
csv
80+
jekyll (~> 4.3.0)
81+
jekyll-feed
82+
jekyll-paginate (~> 1.1)
83+
jekyll-sass-converter (~> 3.0)
84+
jekyll-sitemap
85+
86+
BUNDLED WITH
87+
2.6.6

_includes/.gitkeep

Whitespace-only changes.

_includes/ion-grid.html

Lines changed: 5 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<ion-grid>
2-
<ion-row>
3-
<ion-col size="6" size-md="4" size-lg="2">
1+
<div class="grid_content">
42
<ion-card>
53
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
4+
<ion-card-absolute>
65
<ion-card-header>
76
<ion-card-title>Card Title</ion-card-title>
87
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
@@ -11,9 +10,8 @@
1110
<ion-card-content>
1211
Here's a small text description for the card content. Nothing more, nothing less.
1312
</ion-card-content>
13+
</ion-card-absolute>
1414
</ion-card>
15-
</ion-col>
16-
<ion-col size="6" size-md="4" size-lg="2">
1715
<ion-card>
1816
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
1917
<ion-card-header>
@@ -25,63 +23,9 @@
2523
Here's a small text description for the card content. Nothing more, nothing less.
2624
</ion-card-content>
2725
</ion-card>
28-
</ion-col>
29-
<ion-col size="6" size-md="4" size-lg="2">
30-
<ion-card>
31-
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
32-
<ion-card-header>
33-
<ion-card-title>Card Title</ion-card-title>
34-
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
35-
</ion-card-header>
36-
37-
<ion-card-content>
38-
Here's a small text description for the card content. Nothing more, nothing less.
39-
</ion-card-content>
40-
</ion-card>
41-
</ion-col>
42-
<ion-col size="6" size-md="4" size-lg="2">
43-
<ion-card>
44-
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
45-
<ion-card-header>
46-
<ion-card-title>Card Title</ion-card-title>
47-
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
48-
</ion-card-header>
49-
50-
<ion-card-content>
51-
Here's a small text description for the card content. Nothing more, nothing less.
52-
</ion-card-content>
53-
</ion-card>
54-
</ion-col>
55-
<ion-col size="6" size-md="4" size-lg="2">
56-
<ion-card>
57-
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
58-
<ion-card-header>
59-
<ion-card-title>Card Title</ion-card-title>
60-
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
61-
</ion-card-header>
62-
63-
<ion-card-content>
64-
Here's a small text description for the card content. Nothing more, nothing less.
65-
</ion-card-content>
66-
</ion-card>
67-
</ion-col>
68-
<ion-col size="6" size-md="4" size-lg="2">
69-
<ion-card>
70-
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
71-
<ion-card-header>
72-
<ion-card-title>Card Title</ion-card-title>
73-
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
74-
</ion-card-header>
75-
76-
<ion-card-content>
77-
Here's a small text description for the card content. Nothing more, nothing less.
78-
</ion-card-content>
79-
</ion-card>
80-
</ion-col>
81-
</ion-row>
82-
</ion-grid>
26+
</div>
8327
<style>
84-
ion-col {
28+
ion-card {
8529
background-color: #135d54;
8630
border: solid 1px #fff;
8731
color: #fff;

_includes/ion-header.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
window.location.href = "{{site.baseurl}}/login";
1616
});
1717
</script>
18-
{% elsif page.url == "/login" %}{% elsif page.url == "/dashboard/tambah" %}
18+
{% elsif page.url == "/login" %}{% elsif page.url == "/dashboard/tambah" %}
1919
<ion-buttons slot="end">
20-
<ion-button id="myblog">
20+
<ion-button id="myBlog">
2121
<ion-icon size="large" name="newspaper-outline"></ion-icon>
2222
</ion-button>
2323
</ion-buttons>
24+
<script>
25+
document.getElementById("myBlog").addEventListener("click", function () {
26+
window.location.href = "{{site.baseurl}}/";
27+
});
28+
</script>
2429
{% elsif page.url == "/dashboard/post" %}
2530
<ion-buttons slot="end">
2631
<ion-button id="editblog">
2732
<ion-icon size="large" name="add-circle-outline"></ion-icon>
2833
</ion-button>
2934
</ion-buttons>
30-
<script>
31-
document.getElementById("myblog").addEventListener("click", function () {
32-
window.location.href = "{{site.baseurl}}/";
33-
});
34-
</script>
3535
<script>
3636
document.getElementById("editblog").addEventListener("click", function () {
3737
window.location.href = "{{site.baseurl}}/dashboard/tambah";

_includes/ion-listMenu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ion-label>Admin</ion-label>
1313
</ion-item>
1414
<ion-item href="{{site.baseurl}}/about" class="nav-item">
15-
<ion-icon aria-hidden="true" name="person" slot="start"></ion-icon>
15+
<ion-icon aria-hidden="true" name="information-circle" slot="start"></ion-icon>
1616
<ion-label>About</ion-label>
1717
</ion-item>
1818
</ion-list>

_includes/moduleBlogpost.html

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<ion-text><h1 class="mb-3">${post.title}</h1></ion-text>
5454
<ion-note class="text-muted"><sub>Dipublikasikan pada ${post.timestamp ? post.timestamp.toDate().toLocaleDateString() : "Tanggal tidak tersedia"}</sub></ion-note>
5555
<p class="">
56-
<img src="${post.image || 'https://ionicframework.com/docs/img/demos/card-media.png'}"class="img-thumb"alt="${post.title}"style="max-width:640px;width:100%;height:380px;">
56+
<img src="${post.image || 'https://ionicframework.com/docs/img/demos/card-media.png'}"class="img-thumb"alt="${post.title}">
5757
<div class='card p-3 mb-2'>
5858
<ion-text class="text-start">${post.content}</ion-text>
5959
</div>
@@ -69,29 +69,4 @@
6969
}
7070

7171
fetchPost();
72-
</script>
73-
74-
<style type="text/css">
75-
.img-thumb {
76-
object-fit: cover;
77-
background-size: cover;
78-
background-position: center center;
79-
}
80-
.flex_center {
81-
display: flex;
82-
flex-wrap: wrap;
83-
align-items: center;
84-
justify-content: center;
85-
height: 100%;
86-
}
87-
#loading-spinner {
88-
position: fixed;
89-
top: 50%;
90-
left: 50%;
91-
transform: translate(-50%, -50%);
92-
z-index: 1000;
93-
display: none; /* Default tersembunyi */
94-
align-items: center;
95-
justify-content: center;
96-
}
97-
</style>
72+
</script>

_includes/modulePost.html

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -108,31 +108,4 @@
108108

109109
// Ambil data awal
110110
fetchPosts();
111-
</script>
112-
113-
<style>
114-
.flex_center {
115-
display: flex;
116-
flex-wrap: wrap;
117-
align-items: center;
118-
justify-content: center;
119-
height: 100%;
120-
}
121-
.loading-spinner {
122-
position: fixed;
123-
top: 50%;
124-
left: 50%;
125-
transform: translate(-50%, -50%);
126-
z-index: 1000;
127-
display: flex;
128-
align-items: center;
129-
justify-content: center;
130-
}
131-
.pagination-controls {
132-
display: flex;
133-
align-item: center;
134-
justify-content: space-between;
135-
margin-top: 20px;
136-
padding: 0 20px;
137-
}
138-
</style>
111+
</script>

_layouts/.gitkeep

Whitespace-only changes.

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% include ion-menu.html %}
88
<div class="ion-page" id="main-content">
99
{% include ion-header.html %}
10-
<ion-content [fullscreen]="true" {% if page.url == '/product' %} class="ion-no-padding"{% elsif page.url == '/blog/post.html' %} class="ion-padding"{% endif %}>
10+
<ion-content [fullscreen]="true" {% if page.url == '/product' %} class="ion-no-padding"{% elsif page.url == '/blog/post.html' or page.url == '/about' %} class="ion-padding"{% endif %}>
1111
{{content}}
1212
</ion-content>
1313
{% include ion-footer.html %}

0 commit comments

Comments
 (0)