-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Redesign start page #30
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
660b09a
updated versions of all packages
zoey-kaiser e3d626b
updated index vue file
zoey-kaiser b0f2fdc
made new welcome page
zoey-kaiser c6c79c2
fixed some components
zoey-kaiser 538759a
fixed template lintings
zoey-kaiser b603e96
last linting fixes
zoey-kaiser d494a91
download nuxt auth to 0.5.0
zoey-kaiser 7926ee9
removed isPeer
zoey-kaiser d68d532
increased timer from ci
zoey-kaiser da9ede7
Merge branch 'main' into update-design
zoey-kaiser b8eee50
Merge branch 'main' into update-design
zoey-kaiser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
export function generateModuleHTMLComponent ( | ||
title: string, | ||
description: string, | ||
documentationLink: string, | ||
demo: string, | ||
actions: string | ||
): {html: string} { | ||
const html = `<div class="layout"> | ||
<div class="group"> | ||
<h1 class="heading"> | ||
${title} | ||
</h1> | ||
<p class="description"> | ||
${description} | ||
</p> | ||
</div> | ||
<div class="group"> | ||
${demo} | ||
<div class="actions"> | ||
<WelcomeButtonLink href="${documentationLink}" :blank="true"> | ||
Documentation | ||
</WelcomeButtonLink> | ||
${actions} | ||
</div> | ||
</div> | ||
</div>` | ||
return { | ||
html, | ||
} | ||
} | ||
|
||
export function generateModuleHTMLSnippet (componentName: string) { | ||
const html = ` <div class="card"> | ||
<${componentName} /> | ||
</div>` | ||
return { | ||
html, | ||
} | ||
} | ||
|
||
export const buttonLink = `<script setup lang="ts"> | ||
defineProps({ | ||
blank: { | ||
type: Boolean, | ||
required: false, | ||
default: false | ||
}, | ||
href: { | ||
type: String, | ||
default: '' | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<NuxtLink class="ButtonLink" :to="href" :target="blank ? '_blank' : undefined"> | ||
<slot /> | ||
</NuxtLink> | ||
</template> | ||
|
||
<style scoped> | ||
.ButtonLink { | ||
position: relative; | ||
padding: 5px 15px; | ||
color: white; | ||
background-image: linear-gradient(160deg, #059669, #059669); | ||
border-radius: 0.3rem; | ||
cursor: pointer; | ||
user-select: none; | ||
transition: box-shadow 0.6s; | ||
} | ||
.ButtonLink:hover { | ||
box-shadow: 0 0 60px 2px #059669, 0.5rem 0.5rem 30px #059669; | ||
} | ||
.ButtonLink:after { | ||
content: ''; | ||
position: absolute; | ||
top: 2px; | ||
right: 2px; | ||
bottom: 2px; | ||
left: 2px; | ||
border-radius: 0.75rem; | ||
pointer-events: none; | ||
} | ||
</style> | ||
` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to moving all the demos to the start page, I had to increase the
sleep
timer here to ensure all the data could load, before thecurl
was performed.Note: This did happen sometimes before, where the
curl
was run before the page had finished starting up. See https://github.com/sidebase/create-sidebase/actions/runs/6500004358/job/17654497392?pr=30 where we pushed #29 to main.