-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #929 from sgfost/feat/launch-date-signups
feat: track + notify user signups
- Loading branch information
Showing
22 changed files
with
727 additions
and
69 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,58 @@ | ||
<template> | ||
<input v-bind="$attrs" v-on="$listeners" type="checkbox" class="toggle-input" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue } from "vue-property-decorator"; | ||
@Component({ | ||
inheritAttrs: false, | ||
}) | ||
export default class Toggle extends Vue {} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.switch.square label .lever { | ||
width: 54px; | ||
height: 34px; | ||
border-radius: 0px; | ||
} | ||
.switch.square label .lever:after { | ||
width: 26px; | ||
height: 26px; | ||
border-radius: 0px; | ||
left: 4px; | ||
top: 4px; | ||
} | ||
.toggle-input { | ||
position: relative; | ||
appearance: none; | ||
width: 45px; /* Adjust the width as needed */ | ||
height: 25px; /* Adjust the height as needed */ | ||
background-color: #a49ca6; /* Background color when the toggle is off */ | ||
border-radius: 2px; /* Square corners */ | ||
cursor: pointer; | ||
outline: none; | ||
} | ||
.toggle-input:checked { | ||
background-color: rgb(95, 141, 75); /* Background color when the toggle is on */ | ||
} | ||
.toggle-input::before { | ||
content: ""; | ||
position: absolute; | ||
width: 20px; /* Width of the toggle button */ | ||
height: 20px; /* Height of the toggle button */ | ||
background-color: #fff; /* Color of the toggle button */ | ||
border-radius: 5%; /* Make it a rounded square*/ | ||
top: 3px; /* Adjust the vertical position */ | ||
left: 3px; /* Adjust the horizontal position */ | ||
transition: 0.3s; /* Transition for smooth animation */ | ||
} | ||
.toggle-input:checked::before { | ||
transform: translateX(20px); /* Move the toggle button to the right when checked */ | ||
} | ||
</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
Oops, something went wrong.