-
Notifications
You must be signed in to change notification settings - Fork 2
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 #18 from MartinsOnuoha/FEAT-filter
✨ feat(appsidepanel): add samples for community
- Loading branch information
Showing
20 changed files
with
464 additions
and
36 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
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,34 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const showInput = ref(false) | ||
const input = ref() | ||
const toggleShowInput = () => { | ||
showInput.value = !showInput.value | ||
input.value.focus() | ||
} | ||
</script> | ||
<template> | ||
<div class="AppAddUrl font--fira"> | ||
<button @click="toggleShowInput">{{ showInput ? 'Cancel' : 'Add Inspiration ✨' }}</button> | ||
<input | ||
ref="input" | ||
:class="[showInput ? 'visible opacity-100' : 'invisible opacity-0']" | ||
placeholder="https://dribbble.com/shots..." | ||
type="text" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss"> | ||
.AppAddUrl { | ||
@apply flex mb-5 text-sm items-baseline; | ||
input { | ||
@apply ml-3 p-3 rounded-lg border transition-all; | ||
max-height: 43px; | ||
} | ||
button { | ||
@apply p-3 bg-black text-white mt-3 rounded-lg w-44; | ||
} | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts" setup> | ||
import MdiDribbble from '@/components/Icons/MdiDribbble.vue' | ||
import { computed, type PropType } from 'vue' | ||
const props = defineProps({ | ||
link: { type: Object as PropType<{ url: string }>, required: true } | ||
}) | ||
const formattedLink = computed(() => props.link.url.replace('https://', '')) | ||
</script> | ||
|
||
<template> | ||
<a :href="link.url" target="_blank" :title="link.url" class="AppLink"> | ||
<component class="AppLink__icon" :is="MdiDribbble" /> | ||
<div class="AppLink__url"> | ||
{{ formattedLink }} | ||
</div> | ||
</a> | ||
</template> | ||
|
||
<style lang="scss"> | ||
.AppLink { | ||
font-family: 'Fira Mono', serif; | ||
@apply pl-3 pr-3 rounded-lg flex items-center; | ||
background: linear-gradient( | ||
89.84deg, | ||
rgba(230, 36, 174, 0.15) 0.34%, | ||
rgba(94, 58, 255, 0.15) 16.96%, | ||
rgba(10, 136, 255, 0.15) 34.66%, | ||
rgba(75, 191, 80, 0.15) 50.12%, | ||
rgba(137, 206, 0, 0.15) 66.22%, | ||
rgba(239, 183, 0, 0.15) 82%, | ||
rgba(246, 73, 0, 0.15) 99.9% | ||
); | ||
border: 1px solid #d9e1ec; | ||
&__url { | ||
@apply text-xs truncate text-ellipsis ml-2; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.