Skip to content

Commit

Permalink
add a hero for the index page with a wave at the bottom
Browse files Browse the repository at this point in the history
needs a bit of work to ensure scrolling isn't annoying
  • Loading branch information
ahmedhamidawan committed Dec 17, 2024
1 parent efd2cba commit 9999dfb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 12 deletions.
27 changes: 15 additions & 12 deletions website/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ const hasRightSidebar = computed(() => {
});
</script>
<template>
<div class="flex w-full">
<!-- Left sidebar -->
<div v-if="hasLeftSidebar" class="w-1/4 p-4 overflow-y-auto">
<slot name="leftSidebar"></slot>
</div>
<!-- Left side content -->
<div class="flex-1 p-4 overflow-y-auto">
<slot name="content"></slot>
</div>
<!-- Right sidebar -->
<div v-if="hasRightSidebar" class="w-1/4 p-4 overflow-y-auto">
<slot name="rightSidebar"></slot>
<div class="overflow-y-auto">
<slot name="hero"></slot>
<div class="flex w-full h-full">
<!-- Left sidebar -->
<div v-if="hasLeftSidebar" class="w-1/4 p-4 overflow-y-auto">
<slot name="leftSidebar"></slot>
</div>
<!-- Left side content -->
<div class="flex-1 p-4 overflow-y-auto">
<slot name="content"></slot>
</div>
<!-- Right sidebar -->
<div v-if="hasRightSidebar" class="w-1/4 p-4 overflow-y-auto">
<slot name="rightSidebar"></slot>
</div>
</div>
</div>
</template>
21 changes: 21 additions & 0 deletions website/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ function selectWorkflow(workflow: Workflow) {

<template>
<NuxtLayout>
<template #hero>
<div class="container-fluid text-white text-center bg-ebony-clay p-8 space-y-6">
<h1 class="text-6xl mx-8" :style="{ 'font-weight': 700 }">
Discover and run vetted analysis pipelines on Galaxy
</h1>
<h3 class="text-xl mx-8" :style="{ 'font-weight': 600 }">
Ready-to-use, open-source pipelines with sample data and training materials
to make progress quickly and reliably.
</h3>
</div>
<div class="overflow-hidden p-0">
<svg
viewBox="14 0 100 40"
preserveAspectRatio="none"
height="100"
class="fill-ebony-clay w-full"
:style="{ transform: 'rotate(180deg)' }">
<use xlink:href="/waveNounProject.svg#path" />
</svg>
</div>
</template>
<template #leftSidebar>
<div class="sticky top-4 h-16">
<input
Expand Down
4 changes: 4 additions & 0 deletions website/public/waveNounProject.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9999dfb

Please sign in to comment.