Skip to content

Commit

Permalink
Several tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
khang-nd committed Sep 4, 2024
1 parent 9502dea commit f789776
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 30 deletions.
11 changes: 8 additions & 3 deletions src/.vuepress/components/ACommentCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,21 @@ a {
align-items: center;
color: $textColor;
transition: color 0.3s;
margin-right: 10px;
margin-right: 0.5rem;
.is-dark & {
color: $textColorDark;
}
&:hover {
color: $accentColor;
text-decoration: none !important;
}
img {
width: 32px;
height: 32px;
width: 2rem;
height: 2rem;
margin-right: 0.25rem;
}
}
</style>
8 changes: 6 additions & 2 deletions src/.vuepress/components/ASponsorAd.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :id="'127550-' + adUnitId">
<div :class="format" :id="'127550-' + adUnitId">
<component
:is="'script'"
:src="`//ads.themoneytizer.com/s/gen.js?type=${adUnitId}`"
Expand Down Expand Up @@ -29,4 +29,8 @@ export default {
};
</script>

<style lang="stylus" scoped></style>
<style lang="stylus" scoped>
.banner {
margin: 2rem auto;
}
</style>
44 changes: 35 additions & 9 deletions src/.vuepress/components/MAccessLinks.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
<template>
<div class="access">
<a
href="https://play.google.com/store/apps/details?id=com.visnalize.win7simu"
target="_blank"
>
<img src="/assets/access-store.png" alt="Play Store" width="300" />
</a>
<a href="https://win7simu.visnalize.com" target="_blank">
<img src="/assets/access-web.png" alt="Web App" width="300" />
<a v-for="link in links" :key="link" :href="link" target="_blank">
<img v-bind="getImageProps(link)" />
</a>
</div>
</template>

<script>
export default {};
const LinkMap = {
win7simu: [
"https://play.google.com/store/apps/details?id=com.visnalize.win7simu",
"https://win7simu.visnalize.com",
],
brick1100: [
"https://play.google.com/store/apps/details?id=com.visnalize.brick1100",
],
};
export default {
props: {
app: { type: String, required: true },
},
computed: {
links() {
return LinkMap[this.app];
},
},
methods: {
getImageProps(link) {
const props = { width: 300 };
if (link.includes("play.google.com")) {
props.alt = "Play Store";
props.src = "/assets/access-store.png";
} else {
props.alt = "Web App";
props.src = "/assets/access-web.png";
}
return props;
},
},
};
</script>

<style lang="stylus" scoped>
Expand Down
4 changes: 0 additions & 4 deletions src/.vuepress/components/MBlogLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
</template>

<script>
import ACreated from "./ACreated.vue";
import MBlogTagList from "./MBlogTagList.vue";
export default {
components: { ACreated, MBlogTagList },
props: {
blogs: Array,
},
Expand Down
3 changes: 0 additions & 3 deletions src/.vuepress/components/MEmailSender.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
</template>

<script>
import AButton from "./AButton.vue";
export default {
components: { AButton },
data() {
return {
errors: [],
Expand Down
14 changes: 12 additions & 2 deletions src/.vuepress/components/MSocialLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,25 @@ export default {
align-items: center;
justify-content: flex-end;
>>> &-share {
&:hover .social-share-btn {
>>> .social-share {
.is-dark & .social-share-btn {
color: darken($textColorDark, 40%);
}
.social-share-btn:hover {
color: $accentColor;
}
.social-share-btn {
width: 2.5rem;
height: 2.5rem;
font-size: 1.5rem;
> span {
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/.vuepress/theme/layouts/FeaturePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
preferred platform. Simply click a button below to download the
Android app or access directly from your web browser.
</p>
<m-access-links />
<m-access-links app="win7simu" />
</div>
</template>
<template #page-bottom>
Expand Down
6 changes: 1 addition & 5 deletions src/brick1100/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ image: https://image.social/get?url=visnalize.com/brick1100/about.html

**Brick 1100** is a simulation of the Nokia 1100 mobile phone, the best-selling mobile phone of all time worldwide. The simulation aims to bring the users back to the simpler time with the fundamental graphics and features from one of the most durable phones produced by [Nokia](https://en.wikipedia.org/wiki/Nokia), a Finnish based firm.

<div class="access">
<a href="https://play.google.com/store/apps/details?id=com.visnalize.brick1100" target="_blank">
<img src="/assets/access-store.png" alt="Play Store" />
</a>
</div>
<m-access-links app="brick1100" />

## Interesting facts and history

Expand Down
2 changes: 1 addition & 1 deletion src/win7simu/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ image: https://image.social/get?url=visnalize.com/win7simu/about.html

**Win7 Simu** is a recreation of the Windows 7 operating system on the Web/Android platform. It is built out of pure joy and nostalgia for the sake of reliving the good old time with the elegant Aero and Glassy interface.

<m-access-links />
<m-access-links app="win7simu" />

## Features

Expand Down

0 comments on commit f789776

Please sign in to comment.