-
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.
Store for join popup state, added to header and other components
- Loading branch information
Showing
7 changed files
with
130 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<section id="JoinPopup" :class="{ joining: joinStore.joining }"> | ||
<div class="blur" @click="joinStore.toggleJoin"></div> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col full"> | ||
<div class="popup"> | ||
<h2>Join our journey</h2> | ||
<p>We are looking to work with experienced technical writing teams and freelance writers who are interested in improving their workflows and making more money along the way.</p> | ||
<Join id="hero-join" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<script setup> | ||
import { useJoinStore } from '~/stores/useJoin'; | ||
import { storeToRefs } from 'pinia'; | ||
const joinStore = useJoinStore(); | ||
const { joining } = storeToRefs(joinStore); | ||
</script> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
import { defineStore } from 'pinia' | ||
|
||
export const useJoinStore = defineStore({ | ||
id: 'join', | ||
state: () => ({ | ||
joining: false, | ||
}), | ||
actions: { | ||
toggleJoin() { | ||
this.joining = !this.joining | ||
console.log('Joining:', this.joining) | ||
} | ||
}, | ||
}) |