-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added FOSS header to the landing page.
- Loading branch information
1 parent
2d1bce4
commit 6769e3a
Showing
2 changed files
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<div :class="!view.atTopOfPage?'hidden':''"> | ||
<div class="h-8 bg-blue-700 flex justify-center items-center"> | ||
<p class="font-bold text-gray-200 text-sm">We love open source. Star this <a href="https://github.com/AndronixApp/andronix-website-base" class="underline">website</a> and other projects @ <a | ||
href="https://git.andronix.app" class="underline">Github</a></p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "landingHeader", | ||
beforeMount() { | ||
window.addEventListener('scroll', this.handleScroll) | ||
}, | ||
methods: { | ||
// the function to call when the user scrolls, added as a method | ||
handleScroll() { | ||
// when the user scrolls, check the pageYOffset | ||
if (window.pageYOffset > 0) { | ||
// user is scrolled | ||
if (this.view.atTopOfPage) { | ||
this.view.atTopOfPage = false | ||
} | ||
} else { | ||
// user is at top of page | ||
if (!this.view.atTopOfPage) { | ||
this.view.atTopOfPage = true | ||
} | ||
} | ||
} | ||
}, | ||
data: function () { | ||
return { | ||
view: { | ||
atTopOfPage: true | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</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
6769e3a
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.
🎉 Published on https://andronix.app as production
🚀 Deployed on https://6169c643a35dfd39c717523b--andronix.netlify.app