diff --git a/client/src/components/Form/SearchForm.vue b/client/src/components/Form/SearchForm.vue index 3fdd40a..27a4d99 100644 --- a/client/src/components/Form/SearchForm.vue +++ b/client/src/components/Form/SearchForm.vue @@ -2,23 +2,36 @@
+ -
+
{{ selectedRegion }} @@ -30,7 +43,7 @@
-
@@ -108,8 +111,8 @@ export default { computed: { btnClasses() { return { - 'w-8 mr-3': this.size === 'small', - 'w-12': this.size === 'xl' + 'left-0 w-8': this.size === 'small', + 'right-0 w-12': this.size === 'xl' } }, formClasses() { @@ -119,16 +122,24 @@ export default { }, inputClasses() { return { - 'py-2 px-1': this.size === 'small', - 'py-4 px-2': this.size === 'xl', - 'input-color': !this.dropdown, - 'bg-blue-1000': this.dropdown + 'py-2 pl-12 pr-20 bg-transparent text-base border-b-2 border-blue-300 focus:border-white': this.size === 'small', + 'py-4 pl-6 pr-32 focus:bg-blue-1000 rounded-lg': this.size === 'xl', + 'input-color': !this.dropdown && this.size === 'xl', + 'bg-blue-1000': this.dropdown && this.size === 'xl', } }, dropdownClasses() { return { - 'offsetDropDown': this.size === 'small', - 'offsetDropDownXl': this.size === 'xl' + '-mt-1 rounded': this.size === 'small', + 'offsetDropDownXl rounded-b': this.size === 'xl' + } + }, + selectRegionClasses() { + return { + 'px-2 text-base rounded-md': this.size === 'small', + 'px-2 py-1': this.size === 'xl', + 'bg-blue-1000': this.dropdown && this.size === 'small', + 'border-teal-200': this.dropdown && this.size === 'xl', } }, ...mapState({ @@ -136,6 +147,12 @@ export default { }), }, + created() { + if (!this.summoner.length) { + this.summoner = this.$route.params.name + } + }, + mounted() { window.addEventListener('mousedown', this.globalClick) window.addEventListener('blur', this.windowBlur) @@ -149,6 +166,7 @@ export default { methods: { classRegions(index) { return { + 'rounded-t': index === 0, 'rounded-b': index === this.regions.length - 1 } }, @@ -174,11 +192,6 @@ export default {