Skip to content

Commit 4803992

Browse files
committed
Updates
1 parent 7eef0e6 commit 4803992

31 files changed

+965
-1009
lines changed

components/Languages.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<template>
22
<span class="lang-switcher">
3-
<nuxt-link
3+
<!-- <nuxt-link
44
v-for="(locale, i) in showLocales"
55
:key="i"
66
:to="switchLocalePath(locale.code)"
77
class="font-bold"
88
>
99
i18n: {{ locale.name }}
10-
</nuxt-link>
10+
</nuxt-link> -->
1111
</span>
1212
</template>
1313

1414
<script>
1515
export default {
16-
name: 'Languages',
17-
computed: {
18-
showLocales() {
19-
return this.$i18n.locales.filter(
20-
(locale) => locale.code !== this.$i18n.locale
21-
)
22-
}
23-
}
16+
name: 'Languages'
17+
// computed: {
18+
// showLocales() {
19+
// return this.$i18n.locales.filter(
20+
// (locale) => locale.code !== this.$i18n.locale
21+
// )
22+
// }
23+
// }
2424
}
2525
</script>

components/Logo.vue

+9-30
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
11
<template>
22
<svg
33
xmlns="http://www.w3.org/2000/svg"
4-
width="150"
5-
height="33.863"
6-
viewBox="0 0 150 33.863"
4+
width="38.58"
5+
height="34.008"
6+
viewBox="0 0 38.58 34.008"
77
>
8-
<g
9-
id="Group_11"
10-
data-name="Group 11"
11-
transform="translate(-1037.089 -621.083)"
12-
>
13-
<path
14-
id="Path_7"
15-
data-name="Path 7"
16-
d="M17.584,28.954V13.909a3.844,3.844,0,0,1,3.922-3.766H39.6V8.266A3.829,3.829,0,0,0,35.716,4.5H7.416A3.9,3.9,0,0,0,3.375,8.2V34.659a3.9,3.9,0,0,0,4.041,3.7H149.49a3.823,3.823,0,0,0,3.885-3.766V32.719H21.5A3.842,3.842,0,0,1,17.584,28.954Z"
17-
transform="translate(1033.714 616.583)"
18-
fill="#28a745"
19-
/>
20-
<path
21-
id="Path_8"
22-
data-name="Path 8"
23-
d="M17.227,13.425V26.3A1.476,1.476,0,0,0,18.7,27.773H35.9A1.476,1.476,0,0,0,37.37,26.3V13.425A1.476,1.476,0,0,0,35.9,11.953H18.7A1.476,1.476,0,0,0,17.227,13.425ZM24.318,22.8a2.945,2.945,0,1,1,2.75-2.75A2.945,2.945,0,0,1,24.318,22.8Z"
24-
transform="translate(1037.983 618.045)"
25-
fill="#ffc107"
26-
/>
27-
<path
28-
id="Path_11"
29-
data-name="Path 11"
30-
d="M5.32-55.98h6.385l1.843-9.381c.362-1.679.592-3.357.823-5.069H14.5c.2,1.712.428,3.39.79,5.069l1.942,9.381h6.484L27.5-77.407H22.633L21.185-67.6c-.263,2.205-.56,4.476-.79,6.846h-.132c-.395-2.37-.823-4.674-1.251-6.846L16.84-77.407H12.429L10.191-67.6c-.428,2.238-.856,4.509-1.251,6.846H8.809c-.23-2.337-.494-4.575-.79-6.846L6.669-77.407h-5.2Zm27.121.395a6.846,6.846,0,0,0,4.674-2.041h.132l.362,1.646h4.147v-9.282c0-5.135-2.37-7.472-6.583-7.472a13.31,13.31,0,0,0-7.044,2.139L29.907-67.3a8.75,8.75,0,0,1,4.279-1.382,2.154,2.154,0,0,1,2.5,2.139c-6.451.658-9.117,2.534-9.117,5.99A4.744,4.744,0,0,0,32.441-55.585Zm1.744-3.95c-1.119,0-1.744-.461-1.744-1.415,0-1.152.987-2.041,4.246-2.469v2.6A3.408,3.408,0,0,1,34.186-59.535Zm14.877,3.95a6.783,6.783,0,0,0,2.534-.428l-.592-3.752a2.031,2.031,0,0,1-.592.066c-.395,0-.922-.329-.922-1.382V-78.987H44.422v17.708C44.422-57.856,45.574-55.585,49.063-55.585Zm8.229,0a6.783,6.783,0,0,0,2.534-.428l-.592-3.752a2.031,2.031,0,0,1-.592.066c-.395,0-.922-.329-.922-1.382V-78.987H52.651v17.708C52.651-57.856,53.8-55.585,57.292-55.585Zm10.96,0a10.546,10.546,0,0,0,5.892-1.843L72.5-60.489a7.1,7.1,0,0,1-3.522,1.02,3.764,3.764,0,0,1-4.081-3.16h9.644a11.872,11.872,0,0,0,.2-2.238c0-4.443-2.3-7.867-7.044-7.867-3.917,0-7.735,3.259-7.735,8.558C59.958-58.712,63.578-55.585,68.252-55.585ZM64.829-66.052a3.014,3.014,0,0,1,3-2.831c1.843,0,2.567,1.218,2.567,2.831ZM84.051-55.585a10.546,10.546,0,0,0,5.892-1.843L88.3-60.489a7.1,7.1,0,0,1-3.522,1.02,3.763,3.763,0,0,1-4.081-3.16h9.644a11.872,11.872,0,0,0,.2-2.238c0-4.443-2.3-7.867-7.044-7.867-3.917,0-7.735,3.259-7.735,8.558C75.757-58.712,79.377-55.585,84.051-55.585ZM80.628-66.052a3.014,3.014,0,0,1,3-2.831c1.843,0,2.567,1.218,2.567,2.831ZM91.391-55.98h13.232v-3.983H97.743l6.682-9.644v-2.732H92.181v3.983h5.892l-6.682,9.644Z"
31-
transform="translate(1077.475 701.215)"
32-
fill="#28a745"
33-
/>
34-
</g>
8+
<path
9+
id="Exclusion_3"
10+
data-name="Exclusion 3"
11+
d="M34.753,34.008H4.822a4.773,4.773,0,0,1-3.41-1.423A4.845,4.845,0,0,1,0,29.15V4.858A4.845,4.845,0,0,1,1.412,1.423,4.773,4.773,0,0,1,4.822,0h27.73a3.635,3.635,0,0,1,3.617,3.644,1.211,1.211,0,0,1-1.206,1.214H6.028a1.215,1.215,0,0,0,0,2.429H34.753a3.743,3.743,0,0,1,3.828,3.643V30.364A3.743,3.743,0,0,1,34.753,34.008ZM32.18,25.355a2.429,2.429,0,1,0,2.411,2.429A2.423,2.423,0,0,0,32.18,25.355ZM19.175,16.586h0l2.7,10.088c.218.782.391,1.344.513,1.67a2.119,2.119,0,0,0,.65.878,1.881,1.881,0,0,0,1.242.39,1.852,1.852,0,0,0,1.271-.4,2.251,2.251,0,0,0,.638-.936c.125-.353.284-.919.473-1.682l2.78-11.33a7.273,7.273,0,0,0,.251-1.5,1.476,1.476,0,0,0-.462-1.108,1.569,1.569,0,0,0-1.122-.442,1.379,1.379,0,0,0-1.009.345,1.941,1.941,0,0,0-.49.78,11.837,11.837,0,0,0-.3,1.206L24.12,24.369l-2.473-9.195c-.2-.755-.369-1.3-.49-1.63a2.3,2.3,0,0,0-.655-.912,1.945,1.945,0,0,0-1.328-.419,2.051,2.051,0,0,0-1.333.4,2.33,2.33,0,0,0-.707.953,14.932,14.932,0,0,0-.49,1.607L14.2,24.369l-2.188-9.826a6.8,6.8,0,0,0-.558-1.733,1.282,1.282,0,0,0-1.242-.6,1.553,1.553,0,0,0-1.128.448,1.491,1.491,0,0,0-.456,1.1,6.7,6.7,0,0,0,.251,1.5l2.78,11.33c.085.341.181.709.285,1.1a4.2,4.2,0,0,0,.41,1.022,1.8,1.8,0,0,0,.655.666,2.041,2.041,0,0,0,1.031.235,1.865,1.865,0,0,0,1.242-.4,2.2,2.2,0,0,0,.655-.9c.125-.333.3-.887.507-1.647l2.734-10.088Z"
12+
fill="#28a745"
13+
/>
3514
</svg>
3615
</template>
3716

File renamed without changes.

components/Topics.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<template>
22
<section v-if="items && items.length && items.length > 0">
3-
<h3 class="font-black text-2xl uppercase text-left mb-6">
4-
{{ $t('label.topics') }}
5-
</h3>
3+
<h3 class="font-black text-2xl uppercase text-left mb-6">Topics</h3>
64
<nav>
75
<ul class="flex flex-wrap md:mb-4 text-left">
86
<li
@@ -19,7 +17,12 @@
1917
border-l-2 border-gray-300
2018
"
2119
>
22-
<NuxtLink :to="`/article/tag/${item.slug}`">
20+
<NuxtLink
21+
:to="{
22+
name: 'article-tag-slug',
23+
params: { slug: item.slug }
24+
}"
25+
>
2326
<p
2427
class="text-gray-500 uppercase tracking-wider font-medium text-ss"
2528
>

components/cards/Article.vue

+25-26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
>
99
<div class="boxed-bottom-content xl:space-y-6" :rel="`card-${index}`">
1010
<div class="inline-block">
11-
<span
11+
<Nuxt-Link
12+
:to="{
13+
name: 'article-category-slug',
14+
params: { slug: item.category }
15+
}"
1216
class="
1317
px-3
1418
py-1
@@ -21,16 +25,15 @@
2125
uppercase
2226
text-xs
2327
"
24-
>{{ item.category }}</span
2528
>
29+
{{ item.category }}
30+
</Nuxt-Link>
2631
</div>
2732
<Nuxt-Link
28-
:to="
29-
localePath({
30-
name: 'article-slug',
31-
params: { slug: item.slug }
32-
})
33-
"
33+
:to="{
34+
name: 'article-slug',
35+
params: { slug: item.slug }
36+
}"
3437
>
3538
<img
3639
:src="item.img"
@@ -48,12 +51,10 @@
4851

4952
<h4 class="headline text-muted leading-tight">
5053
<Nuxt-Link
51-
:to="
52-
localePath({
53-
name: 'article-slug',
54-
params: { slug: item.slug }
55-
})
56-
"
54+
:to="{
55+
name: 'article-slug',
56+
params: { slug: item.slug }
57+
}"
5758
>{{ item.title }}</Nuxt-Link
5859
>
5960
</h4>
@@ -88,12 +89,10 @@
8889
</div> -->
8990
<div>
9091
<Nuxt-Link
91-
:to="
92-
localePath({
93-
name: 'article-slug',
94-
params: { slug: item.slug }
95-
})
96-
"
92+
:to="{
93+
name: 'article-slug',
94+
params: { slug: item.slug }
95+
}"
9796
class="btn btn-sm btn-default btn-hidden text-muted"
9897
><span class="underline hover:no-underline">read more</span>
9998
<span>
@@ -109,16 +108,16 @@
109108
</template>
110109

111110
<script>
112-
import { fas } from '@fortawesome/free-solid-svg-icons'
111+
// import { fas } from '@fortawesome/free-solid-svg-icons'
113112
114113
export default {
115114
props: {
116115
items: { type: Array, required: true, default: () => [] }
117-
},
118-
computed: {
119-
fas() {
120-
return fas
121-
}
122116
}
117+
// computed: {
118+
// fas() {
119+
// return fas
120+
// }
121+
// }
123122
}
124123
</script>

components/cards/ArticleHeadline.vue

+12-43
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,13 @@
5555
>
5656
{{ item.description }}
5757
</p>
58-
<figcaption class="font-medium">
58+
<figcaption
59+
v-if="item.author && item.author.length > 0"
60+
class="font-medium"
61+
>
5962
<div class="text-gray-500 text-sm flex flex-initial">
6063
<span class="flex-1"
6164
>By:
62-
<!-- <Nuxt-Link
63-
:to="
64-
localePath({
65-
name: 'article-author',
66-
params: { slug: item.author.name }
67-
})
68-
"
69-
> -->
7065
<Nuxt-Link :to="`/article/author/${item.author.name}`">
7166
{{ item.author.name }}</Nuxt-Link
7267
></span
@@ -78,35 +73,11 @@
7873
</div>
7974
</figcaption>
8075
<div class="relative flex flex-col sm:flex-row sm:space-x-4">
81-
<!-- <Nuxt-Link
82-
:to="
83-
localePath({
84-
name: 'article-slug',
85-
params: { slug: item.slug }
86-
})
87-
"
88-
class="
89-
flex
90-
items-center
91-
w-full
92-
px-5
93-
py-2
94-
mb-3
95-
text-lg text-white
96-
bg-indigo-600
97-
rounded-md
98-
sm:mb-0
99-
hover:bg-indigo-700
100-
sm:w-auto
101-
"
102-
> -->
10376
<Nuxt-Link
104-
:to="
105-
localePath({
106-
name: 'article-slug',
107-
params: { slug: item.slug }
108-
})
109-
"
77+
:to="{
78+
name: 'article-slug',
79+
params: { slug: item.slug }
80+
}"
11081
class="
11182
flex
11283
items-center
@@ -152,12 +123,10 @@
152123
"
153124
>
154125
<Nuxt-Link
155-
:to="
156-
localePath({
157-
name: 'article-slug',
158-
params: { slug: item.slug }
159-
})
160-
"
126+
:to="{
127+
name: 'article-slug',
128+
params: { slug: item.slug }
129+
}"
161130
>
162131
<img
163132
:src="item.img"

components/footer/Footer.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<div class="nav-content">
2424
<nav class="flex flex-row justify-end">
2525
<a href="#facebook" title="Facebook" class="w-6">
26-
<span class="sr-only">Facebook</span
27-
><font-awesome-icon :icon="['fab', 'facebook']" />
26+
<span class="sr-only">Facebook</span>
27+
<font-awesome-icon :icon="['fab', 'facebook']" />
2828
</a>
2929
<a href="#twitter" title="Twitter" class="w-6">
3030
<span class="sr-only">Twitter</span>

components/navigation/Bottom.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</div>
66
<div class="block container mx-auto">
77
<ColorMode />
8-
<Languages class="my-3 block" />
8+
<!-- <Languages class="my-3 block" /> -->
99
</div>
1010
</div>
1111
</template>

components/navigation/Top.vue

+5-17
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,13 @@
1111
</div>
1212
<div v-if="items && items.length > 0" class="hidden md:block">
1313
<div class="ml-10 flex items-baseline">
14-
<!-- <NuxtLink
15-
v-for="(item, index) in items"
16-
:key="item.slug"
17-
:to="{ name: 'page-slug', params: { slug: item.slug } }"
18-
:rel="`rel-${index}`"
19-
:class="`${
20-
index === 0
21-
? `px-3 py-2 text-white bg-gray-900 focus:outline-none focus:text-white`
22-
: `ml-4 px-3 py-2 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white`
23-
} btn`"
24-
> -->
2514
<NuxtLink
2615
v-for="(item, index) in items"
2716
:key="item.slug"
28-
:to="
29-
localePath({
30-
name: 'page-slug',
31-
params: { slug: item.slug }
32-
})
33-
"
17+
:to="{
18+
name: 'page-slug',
19+
params: { slug: item.slug }
20+
}"
3421
:rel="`rel-${index}`"
3522
:class="`${`ml-4 px-3 py-2 text-gray-400 hover:text-gray-500 focus:text-white capitalize font-bold text-sm`}`"
3623
>
@@ -83,6 +70,7 @@
8370
w-48
8471
rounded-md
8572
shadow-lg
73+
z-10
8674
"
8775
>
8876
<div

config/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ROUTES from './routes'
22
import CONSTANTS from './constants'
3-
import I18N from './i18n'
3+
// import I18N from './i18n'
44

5-
export { ROUTES, CONSTANTS, I18N }
5+
export { ROUTES, CONSTANTS /* I18N */ }

content/articles/at-vero-eos-et-accusamus-et-iusto-odio-dignissimos-ducimus-qui.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author:
77
name: CodeRoad
88
bio: Web Developer and Tech Writer
99
img: ../img/logo.jpg
10-
category: StartUp
10+
category: startup
1111
tags:
1212
- web development
1313
- vuejs

content/articles/id/aturan-offside-dalam-sepak-bola.md

-21
This file was deleted.

content/articles/id/pemain-dan-peralatan.md

-21
This file was deleted.

0 commit comments

Comments
 (0)