-
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.
Merge pull request #2 from macromanhq/dev
Production Version Merging from Dev
- Loading branch information
Showing
15 changed files
with
1,487 additions
and
61 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,33 @@ | ||
<template> | ||
<div class="bg-white py-8 sm:py-8"> | ||
<div class="mx-auto max-w-7xl px-6 lg:px-8"> | ||
<div class="mx-auto max-w-2xl lg:text-center"> | ||
<h2 class="text-base font-semibold leading-7 text-indigo-600">Emoji Search</h2> | ||
<p class="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">A simple yet super useful | ||
emoji search.</p> | ||
<p class="mt-6 text-lg leading-8 text-gray-600">Search the emoji you want, click to copy to your | ||
clipboard.<br>Its that simple</p> | ||
</div> | ||
</div> | ||
</div> | ||
<nav class="bg-white"> | ||
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> | ||
<div class="flex h-16 items-center justify-center"> | ||
<div class="flex items-center"> | ||
<div class="md:block"> | ||
<div class="ml-10 flex items-baseline space-x-4"> | ||
Built with ❤ by <a href="https://macromanhq.com" target="_blank" class="p-1 text-gray-800"> | ||
Macroman Solution </a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'FooterBar', | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<template> | ||
<nav class="bg-gray-700"> | ||
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> | ||
<div class="flex h-16 items-center justify-between"> | ||
|
||
<div class="flex text-white"> | ||
Emoji Search | ||
</div> | ||
<div class="flex items-center"> | ||
<div class="md:block"> | ||
<div class="ml-10 flex items-baseline space-x-4"> | ||
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" --> | ||
<a href="#" class="text-white rounded-md px-3 py-2 text-sm font-medium" | ||
aria-current="page"> | ||
<img src="/github.svg" class="inline w-6 h-6 text-white" alt=""> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'NavBar', | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template> | ||
<transition name="fade"> | ||
<div v-if="isVisible" class="fixed bottom-5 right-5 bg-gray-800 text-white px-4 py-2 rounded shadow-lg" @click="hide"> | ||
{{ emoji }} {{ message }} | ||
</div> | ||
</transition> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'NotificationComponent', | ||
props: { | ||
message: String, | ||
emoji: String, | ||
timeout: Number | ||
}, | ||
data() { | ||
return { | ||
isVisible: false | ||
}; | ||
}, | ||
methods: { | ||
show() { | ||
this.isVisible = true; | ||
setTimeout(() => { | ||
this.isVisible = false; | ||
}, this.timeout || 2000); // Default to 2 seconds if no timeout is provided | ||
}, | ||
hide() { | ||
this.isVisible = false; | ||
} | ||
}, | ||
watch: { | ||
emoji(newVal, oldVal) { | ||
if (newVal !== oldVal) { | ||
this.show(); | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.fade-enter-active, .fade-leave-active { | ||
transition: opacity 0.5s; | ||
} | ||
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ { | ||
opacity: 0; | ||
} | ||
</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 |
---|---|---|
@@ -1,31 +1,49 @@ | ||
<template> | ||
<div> | ||
<ul> | ||
<li v-for="emoji in emojis" :key="emoji.index" @click="copyToClipboard(emoji.emoji)"> | ||
{{ emoji.emoji }} - {{ emoji.name }} | ||
</li> | ||
</ul> | ||
<main> | ||
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8"> | ||
<div class="results mt-3"> | ||
<div class="flex justify-normal flex-wrap"> | ||
<div class="cursor-pointer hover:bg-gray-700 p-2 rounded text-xl antialiased" v-for="emoji in emojis" | ||
:key="emoji.index" @click="copyToClipboard(emoji.emoji)"> | ||
{{ emoji.emoji }} | ||
</div> | ||
<NotificationComponent ref="notification" message="Emoji has been copied to clipboard!" :emoji="lastCopiedEmoji" /> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
emojis: Array | ||
}, | ||
methods: { | ||
copyToClipboard(emoji) { | ||
if (navigator.clipboard) { | ||
navigator.clipboard.writeText(emoji).then(() => { | ||
alert('Emoji copied to clipboard!'); | ||
}).catch(err => { | ||
console.error('Failed to copy:', err); | ||
}); | ||
} else { | ||
console.log('Clipboard API not available'); | ||
} | ||
</main> | ||
</template> | ||
|
||
<script> | ||
import NotificationComponent from './NotificationComponent.vue'; | ||
export default { | ||
components: { | ||
NotificationComponent | ||
}, | ||
props: { | ||
emojis: Array | ||
}, | ||
data() { | ||
return { | ||
lastCopiedEmoji: '' | ||
}; | ||
}, | ||
methods: { | ||
copyToClipboard(emoji) { | ||
if(navigator.clipboard){ | ||
navigator.clipboard.writeText(emoji).then(() => { | ||
this.lastCopiedEmoji = emoji; | ||
}, (err) => { | ||
console.error('Failed to copy:', err); | ||
}); | ||
} else { | ||
alert('You may have javascript disabled or on localhost'); | ||
} | ||
} | ||
} | ||
</script> | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
import './assets/style.css'; | ||
|
||
|
||
createApp(App).mount('#app') |
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 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
"./index.html", | ||
"./src/**/*.{vue,js,ts,jsx,tsx}", | ||
], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/forms'), // Add this line if you need form utilities | ||
], | ||
} | ||
|