Skip to content

Commit

Permalink
add demo link to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
gantoine committed Dec 17, 2024
1 parent 3be62fb commit e21962c
Showing 1 changed file with 52 additions and 7 deletions.
59 changes: 52 additions & 7 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ import { faGithub, faDiscord } from "@fortawesome/free-brands-svg-icons";
function onGetStarted() {
window.open(
"https://github.com/rommapp/romm?tab=readme-ov-file#installation",
"_blank"
"_blank",
"noopener"
);
}
function onViewDemo() {
window.open("https://demo.romm.app", "_blank");
}
function onJoinDiscord() {
window.open("https://discord.gg/RGPJHNMMwJ", "_blank");
}
Expand All @@ -41,12 +46,21 @@ const menuItems: MenuItem[] = [
url: "https://github.com/rommapp/romm/wiki",
key: "wiki",
target: "_blank",
rel: "noopener",
},
{
label: "Demo",
url: "https://demo.romm.app",
key: "demo",
target: "_blank",
rel: "noopener",
},
{
label: "Contact",
url: "mailto:[email protected]",
key: "contact",
target: "_blank",
rel: "noopener",
},
];
</script>
Expand Down Expand Up @@ -75,6 +89,7 @@ const menuItems: MenuItem[] = [
<a
href="https://github.com/rommapp/romm/releases/latest"
target="_blank"
rel="noopener"
>
<tag value="v3.5.1" severity="primary" class="ml-3 text-xs"></tag>
</a>
Expand All @@ -95,6 +110,7 @@ const menuItems: MenuItem[] = [
<a
href="https://opencollective.com/romm"
target="_blank"
rel="noopener"
class="text-900 hover:text-primary border-l ml-4 pl-6 border-slate-100 dark:border-slate-800"
title="support the project"
>
Expand All @@ -103,6 +119,7 @@ const menuItems: MenuItem[] = [
<a
href="https://github.com/rommapp/romm"
target="_blank"
rel="noopener"
class="text-900 hover:text-primary pl-4"
title="github repository"
>
Expand Down Expand Up @@ -137,11 +154,21 @@ const menuItems: MenuItem[] = [
</div>

<p-button
raised
type="button"
class="mr-3 px-6 p-button-raised md:text-lg"
class="mr-3 px-6 md:text-lg"
v-on:click="onGetStarted"
>Install Now
</p-button>

<p-button
raised
outlined
type="button"
class="px-6 md:text-lg"
v-on:click="onViewDemo"
>View Demo
</p-button>
</section>
</div>
<div>
Expand Down Expand Up @@ -188,7 +215,7 @@ const menuItems: MenuItem[] = [
<a
href="https://www.igdb.com/"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
class="underline hover:text-primary"
>
IGDB</a
Expand All @@ -197,7 +224,7 @@ const menuItems: MenuItem[] = [
<a
href="https://www.mobygames.com/"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
class="underline hover:text-primary"
>
MobyGames</a
Expand Down Expand Up @@ -225,7 +252,7 @@ const menuItems: MenuItem[] = [
<a
href="https://github.com/rommapp/romm/wiki/Supported-Platforms"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
class="underline hover:text-primary"
>
400+</a
Expand Down Expand Up @@ -254,7 +281,7 @@ const menuItems: MenuItem[] = [
<a
href="https://emulatorjs.org/"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
class="underline hover:text-primary"
>
EmulatorJS</a
Expand Down Expand Up @@ -351,7 +378,9 @@ const menuItems: MenuItem[] = [
RomM
</div>
<p-button
class="font-semibold px-5 py-3 p-button-raised p-button-rounded white-space-nowrap"
raised
rounded
class="font-semibold px-5 py-3 white-space-nowrap"
v-on:click="onJoinDiscord"
>
<font-awesome-icon :icon="faDiscord" class="mr-2" />
Expand Down Expand Up @@ -429,6 +458,7 @@ const menuItems: MenuItem[] = [
<a
href="https://github.com/rommapp/marketing-site"
target="_blank"
rel="noopener"
class="text-900 hover:text-primary text-end"
title="github repository"
>
Expand Down Expand Up @@ -463,6 +493,21 @@ body,
border-color: theme("colors.primary.400");
}
}
.p-button-outlined {
background-color: transparent;
color: theme("colors.primary.600");
&:hover {
background-color: transparent;
color: theme("colors.primary.500");
}
&:focus {
background-color: transparent;
color: theme("colors.primary.400");
}
}
</style>

<style scoped>
Expand Down

0 comments on commit e21962c

Please sign in to comment.