Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deployToIonos button to starters #613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/assets/images/logo-deploy-to-ionos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 14 additions & 3 deletions src/templates/Starter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@
</code>
</div>
<hr />
<div class="deploy-buttons flex">
<div class="deploy-buttons flex flex_space-between">
<a class="button button--small" :href="codeSandboxUrl">
<CodeSandboxLogo alt="CodeSandbox" height="16" /> Open in CodeSandbox
</a>
<a class="button button--small" :href="netlifyDeployUrl">
<NetlifyLogo alt="Netlify" /> Deploy to Netlify
</a>
<a class="button button--small" :href="ionosDeployUrl">
<DeployToIonosLogo alt="Deploy To Ionos" /> Deploy to IONOS
</a>
</div>
</div>
</Popover>
Expand Down Expand Up @@ -97,6 +100,7 @@ import Skeleton from '~/components/Skeleton.vue'
import ClipboardIcon from '~/assets/images/icon-clipboard.svg'
import GithubIcon from '~/assets/images/github-logo.svg'
import NetlifyLogo from '~/assets/images/logo-netlify-small.svg'
import DeployToIonosLogo from '~/assets/images/logo-deploy-to-ionos.svg'
import CodeSandboxLogo from '~/assets/images/logo-codesandbox.svg'
import Popover from 'vue-popover'

Expand All @@ -108,6 +112,7 @@ export default {
Skeleton,
ClipboardIcon,
NetlifyLogo,
DeployToIonosLogo,
CodeSandboxLogo,
Popover,
GithubIcon
Expand All @@ -132,6 +137,9 @@ export default {
},
codeSandboxUrl () {
return `https://codesandbox.io/s/github/${this.$page.starter.repo}`
},
ionosDeployUrl () {
return `https://ionos.space/setup?repo=https://github.com/${this.$page.starter.repo}`
}
},

Expand Down Expand Up @@ -236,10 +244,13 @@ query ($id: ID!) {
}
}

.flex_space-between {
justify-content: space-between;
}

.deploy-buttons {
.button {
margin-bottom: 0;
margin-right: 1rem;
svg {
width: 20px;
height: 20px;
Expand All @@ -254,7 +265,7 @@ query ($id: ID!) {
top: 87%;
right: -15px;
z-index: 999;
width: 500px;
width: 660px;
padding: var(--space);
background-color: var(--bg);
box-shadow: var(--glow);
Expand Down