-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding spline-viewer and main button
- Loading branch information
Showing
7 changed files
with
104 additions
and
3 deletions.
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,90 @@ | ||
<template> | ||
<section class="home-hero"> | ||
<div class="home-hero-content"> | ||
<section class="hero-text"> | ||
<h1>Unleash the full power of your writing team</h1> | ||
<p class="hero-description">Reduce your project’s timelines by leveraging our structured workflows, a modern writing experience, and built-in stakeholder review and approval.</p> | ||
<section class="hero-button"> | ||
<nuxt-link to="/articles"><spline-viewer class="spline-viewer" url="https://prod.spline.design/LAtGJGEkHL1GjOCb/scene.splinecode"></spline-viewer></nuxt-link> | ||
<!-- <button class="primary large">Get started</button> --> | ||
<p>Free for beta users. Limited to 1 project. No credit card required.</p> | ||
</section> | ||
</section> | ||
<section class="hero-image"> | ||
<img src="/public/images/hero-preview.png" alt="Vewrite" /> | ||
</section> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
@use 'assets/variables' as *; | ||
.home-hero { | ||
width: 100%; | ||
.home-hero-content { | ||
max-width: $max-width; | ||
margin: 0 auto; | ||
padding: $spacing-lg $spacing-md; | ||
min-height: 400px; | ||
display: flex; | ||
flex-direction: column; | ||
.hero-text { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
text-align: center; | ||
padding: 0 $spacing-md $spacing-lg; | ||
h1 { | ||
font-size: 5vw; | ||
font-weight: 600; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
line-height: 1; | ||
padding: $spacing-md 0; | ||
background: linear-gradient(to right, #4D70E7 60%, #3F5CBE 100%); | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
display: inline-block; | ||
} | ||
p.hero-description { | ||
max-width: 600px; | ||
margin: 0 auto; | ||
padding: 0 0 $spacing-md; | ||
} | ||
.hero-button { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: $spacing-xs; | ||
.spline-viewer { | ||
height: 120px; | ||
} | ||
} | ||
} | ||
.hero-image { | ||
position: relative; | ||
border: $border; | ||
border-radius: $br-lg; | ||
overflow: hidden; | ||
img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
object-position: center; | ||
} | ||
} | ||
} | ||
} | ||
</style> |
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,8 @@ | ||
export default defineNuxtPlugin(() => { | ||
if (process.client) { | ||
const script = document.createElement('script'); | ||
script.src = 'https://unpkg.com/@splinetool/viewer/build/spline-viewer.js'; | ||
script.type = 'module'; | ||
document.body.appendChild(script); | ||
} | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.