<style type="text/css" scoped>

	.hero {
		background-size: 50%;
		background-color: #0a2f13;
		background: linear-gradient(270deg, #21ba45, #3710a4);
		background-size: 400% 400%;
		overflow: hidden;

		-webkit-animation: fadeorama 16s ease infinite;
		-moz-animation: fadeorama 16s ease infinite;
		animation: fadeorama 16s ease infinite;
	}
	.lightly-padded {
		margin-top: 10px;
	}
	.massive-text {
		color: white;
		font-size: 4rem;
	}
	.blinking {
		animation:blinkingText 1.5s linear infinite;
	}
	@keyframes blinkingText{
		0%{		opacity: 0.9;	}
		50%{	opacity: 0;	}
		100%{	opacity: 0.9;	}
	}
	.subtext {
		border-bottom: 1px solid white;
		border-right: 1px solid white;
		color: white;
		font-size: 1.5rem;
		padding: 0 0 0 10px;
	}
	.stand-out {
		color: white;
		text-shadow: 
			2px 2px 1px black, 
			-2px -2px 1px black,
			-2px 2px 1px black, 
			2px -2px 1px black;
	}
	h2, h3 {
		font-weight: normal;
	}

	 
	@-webkit-keyframes fadeorama {
	    0%{background-position:0% 50%}
	    50%{background-position:100% 50%}
	    100%{background-position:0% 50%}
	}
	@-moz-keyframes fadeorama {
	    0%{background-position:0% 50%}
	    50%{background-position:100% 50%}
	    100%{background-position:0% 50%}
	}
	@keyframes fadeorama {
	    0%{background-position:0% 50%}
	    50%{background-position:100% 50%}
	    100%{background-position:0% 50%}
	}

	/*safari fix - prevents page from being below the menu */
	.dont-pad-me {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

</style>

<template>
	<div class="lightly-padded">
		<div class="ui centered vertically divided stackable grid">

			<div class="row hero fadeBg" :style="{ 'height':(height+'px') }">

				<!-- All marketing images if you need to review  -->
				<div v-if="false" class="sixteen wide column">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/add.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/gardening.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/growth.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/icecream.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/investing.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/onboarding.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/robot.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/solution.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/watching.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/cloud.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/grandma.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/hamburger.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/idea.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/notebook.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/plan.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/secure.svg" alt="">
					<img loading="lazy" width="10%" src="/api/static/assets/marketing/void.svg" alt="">
				</div>

				<div class="one wide large screen only column"></div>

				<!-- desktop column - large screen only -->
				<div class="seven wide middle aligned left aligned column">
					<h2 class="massive-text">Take Notes, <br>Like Never Before</h2>
					<h3 class="subtext">
						Using an online note application <i class="i cursor icon blinking"></i> 
					</h3>
					<p>Assuming you have never used an note application previously in your life.</p>
					<br>
					<i class="huge inverted chevron circle down icon"></i>
				</div>

				<div class="eight wide middle aligned left aligned column">
					<img loading="lazy" width="90%" src="/api/static/assets/marketing/notebook.svg" alt="The Venus fly laptop about to capture another victim">
				</div>
				
			</div>

			<!-- set -->
			<div class="middle aligned centered row">
				<div class="six wide column">
					<h2>Everyone has knowledge that need to be expressed</h2>
					<h3>Utilize action potential to create notes by encoding raw brainwaves converted to written language</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/idea.svg" alt="Explosion of New Ideas">
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/gardening.svg" alt="Pruning the mind garden">
				</div>
				<div class="six wide column">
					<h2>Dream it, then do it</h2>
					<h3>Easily record your unlimited imagination. Ideas, stories, notes, plays, poems anything, that can reasonably be put into text</h3>
				</div>
			</div>

			<!-- set -->
			<div class="middle aligned centered green row">
				<div class="six wide column">
					<h2>Unbridled Input</h2>
					<h3>Revolutionary technology allows the use of any keyboard with up to 395 keys</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/add.svg" alt="A shpere of newness">
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/solution.svg" alt="Hypercube of Solutions">
				</div>
				<div class="six wide column">
					<h2>Solutions with the Internet</h2>
					<h3>With the power to save any combination of letters, you can easily inscribe thoughts</h3>
				</div>
			</div>

			<!-- set -->
			<div class="middle aligned centered row">
				<div class="six wide column">
					<h2>Search your data</h2>
					<h3>Type in a word and find that same word but somewhere else</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/cloud.svg" alt="Girl falling into the spiral of digital chaos">
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/plan.svg" alt="Scheme for planetary destruction">
				</div>
				<div class="six wide column">
					<h2>Embrace the Void</h2>
					<h3>Remove unnecessary clutter for your brain and save it to the cloud, allowing you to easily embrace the gaping abyss</h3>
				</div>
			</div>

			<!-- set -->
			<div class="middle aligned centered row">
				<div class="six wide column">
					<h2>Space for Growth</h2>
					<h3>Groom a clear path for new expressions and innovations. Elevate your being and lower your cholesterol</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/growth.svg" alt="Endless progress at the cost of sanity and health">
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/onboarding.svg" alt="Shrunken man near giant tablet">
				</div>
				<div class="six wide column">
					<h2>Become your Data</h2>
					<h3>We exist as electrical impulses, no different from data on a computer</h3>
				</div>
			</div>

			<!-- set -->
			<div class="middle aligned centered row">
				<div class="six wide column">
					<h2>Ice Cream</h2>
					<h3>Get excited without all the screaming</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/icecream.svg" alt="Emergence of a 4th dimensional being perceived as a large ice cream ">
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/secure.svg" alt="marketing mumbo jumbo">
				</div>
				<div class="six wide column">
					<h2>Data Backups</h2>
					<h3>Nothing you do will be forgotten.<br>You can never take back what you have done</h3>
				</div>
			</div>

			<div class="middle aligned centered row">
				<div class="six wide column">
					<h2>Freedom to unleash yourself</h2>
					<h3>Imagine an awakening of what could be</h3>
				</div>
				<div class="six wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/grandma.svg" alt="Drinking the blood of the elderly">
				</div>
			</div>

			<!-- final slide  -->
			<div class="middle aligned centered green row">
				<div class="twelve wide center aligned column">
					<br>
					<br>
					<br>
					<br>
					<h2>What are you waiting for?<br>Sign up now.</h2>
					<br>
					<router-link  class="ui huge white labeled icon button" to="/login">
						<i class="plug icon"></i>Sign Me Up!
					</router-link>
					<br>
					<br>
					<br>
					OR
					<br>
					<br>
					<br>
					<span class="ui button" v-on:click="showRealInformation">View real information about this site</span>
				</div>
			</div>

			<div v-if="realInformation" class="middle aligned centered row" ref="real">
				<div class="six wide column">
					<h2 class="ui center aligned">
						What is this really?
					</h2>
					<h3>Its just a little web app for taking notes. This page is mocking the "over the top" marketing sites use to sell their products.</h3>
					<p>
						This App exists because I was tired of all my data being owned by big companies, having it farmed out for marketing, and leaving the contents of my life exposed to corporations.
					</p>
					<p>
						If you want to give it a shot, feel free to make an account. There are no ads. None of this data is shared or public. I don't make any money.
					</p>
					<p>
						If you see anything broken or want to see a feature implemented, I'm open to suggestions. <i class="thumbs up icon"></i>
					</p>
					<p>Hero Slide Photo Credit - <a target="_blank" href="https://unsplash.com/@tkaslik14">https://unsplash.com/@tkaslik14</a></p>
					<p>Generic Marketing Images - <a target="_blank" href="https://undraw.co/">https://unDraw.co/</a></p>
				</div>
				<div class="four wide column">
					<img loading="lazy" width="100%" src="/api/static/assets/marketing/watching.svg" alt="Drinking the blood of the elderly">
				</div>
			</div>


		</div>
	</div>
</template>

<script>
export default {
	name: 'WelcomePage',
	data(){
		return {
			height: null,
			realInformation: false,
		}
	},
	beforeMount(){

		

		//Force HTTPS on prod, always. Dev doesn't have certs
		const isDev = process.env['NODE_ENV'] == 'development'
		if (!isDev && location.protocol != 'https:'){
			window.location.replace('https://www.avidhabit.com')
		}
		
		//Don't change hero banner on mobile
		if(!this.$store.getters.getIsUserOnMobile){
			let windowHeight = window.innerHeight
			this.height = windowHeight - (windowHeight * 0.10)
		}
		
	},
	methods: {
		showRealInformation(){

			
			this.realInformation = !this.realInformation
			if(this.realInformation){

				this.$nextTick(() => {
					this.$refs.real.scrollIntoView({'behavior':'smooth'})
				})
			}
		}
	}
}
</script>