File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,19 +75,21 @@ defineOgImageComponent('Default', {
7575 /
7676 </span >
7777
78- <InputBase
79- id =" home-search"
80- v-model =" searchQuery"
81- type =" search"
82- name =" q"
83- autofocus
84- :placeholder =" $t('search.placeholder')"
85- no-correct
86- size =" large"
87- class =" w-full ps-8 pe-24"
88- @focus =" isSearchFocused = true"
89- @blur =" isSearchFocused = false"
90- />
78+ <div class =" home-input-wrapper relative w-full" >
79+ <InputBase
80+ id =" home-search"
81+ v-model =" searchQuery"
82+ type =" search"
83+ name =" q"
84+ autofocus
85+ :placeholder =" $t('search.placeholder')"
86+ no-correct
87+ size =" large"
88+ class =" w-full ps-8 pe-24"
89+ @focus =" isSearchFocused = true"
90+ @blur =" isSearchFocused = false"
91+ />
92+ </div >
9193
9294 <ButtonBase
9395 type =" submit"
@@ -141,4 +143,31 @@ defineOgImageComponent('Default', {
141143 background-color : CanvasText;
142144 }
143145}
146+
147+ .home-input-wrapper {
148+ &::before {
149+ content : ' ' ;
150+ @apply absolute -inset- 0.5 rounded-xl -z- 1;
151+ animation : glide 1s 0.8s ease-in-out ;
152+ background : linear-gradient (
153+ -30deg ,
154+ transparent 40% ,
155+ var (--accent ) 41% ,
156+ var (--accent ) 59% ,
157+ transparent 60%
158+ );
159+ background-size : 300% 100% ;
160+ background-position : -150% 0 ;
161+ opacity : 0.5 ;
162+ }
163+ }
164+
165+ @keyframes glide {
166+ 0% {
167+ background-position : 0 0 ;
168+ }
169+ 100% {
170+ background-position : -150% 0 ;
171+ }
172+ }
144173 </style >
You can’t perform that action at this time.
0 commit comments