File tree Expand file tree Collapse file tree 2 files changed +38
-26
lines changed
Expand file tree Collapse file tree 2 files changed +38
-26
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,20 @@ <h3>Grab your own sweet-looking <span>.is-a.dev</span> subdomain.</h3>
6262
6363 < h2 > Check SubDomain Availability</ h2 >
6464 < div class ="search-cntnr ">
65- < input id ="search-domain " type ="text " placeholder ="Check domain name e.g. william ">
65+ < input id ="search-domain " type ="text " onkeyup =" check() " placeholder ="Check domain name e.g. william ">
6666 < div id ="search-btn " class ="search-btn " onclick ="check() ">
6767 Check
6868 </ div >
6969 </ div >
7070 < div class ="search-result-cntnr ">
71- < div id ="result-card " class ="hiddens result-card " style =" width:100%;margin:4px;padding:8px " >
72- < div style =" display:flex; align-items:center;justify-content:start;gap:1rem;width:100% ">
73- < img id ="user-avatar " alt ="user-avatar " src ="http://github.com/wdhdev.png?size=64 ">
71+ < div id ="result-card " class ="hiddens result-card ">
72+ < div class =" user-infos ">
73+ < img id ="user-avatar " class =" user-avatar " alt ="user-avatar " src ="http://github.com/wdhdev.png?size=64 ">
7474 < div style ="display:flex;flex-direction:column;width:100% ">
7575 < a id ="user-gh-link " href ="htttps://github.com/wdhdev ">
7676 < h2 id ="user-name " style ="line-height:1rem "> William</ h2 >
7777 </ a >
78- < a id ="user-website-link " href ="https://william.is-a.dev " style ="margin-top:-1.5rem ;font-size:1.2rem "> william.is-a.dev</ a >
78+ < a id ="user-website-link " href ="https://william.is-a.dev " style ="margin-top:-1.3rem ;font-size:1rem "> william.is-a.dev</ a >
7979 </ div >
8080 </ div >
8181 < p id ="user-info "> Simple Website</ p >
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ a:hover {
121121}
122122
123123/* Search */
124- input {
124+ input {
125125 font-family : "Ubuntu Mono Regular" ;
126126 width : 100% ;
127127 color : var (--body-fg );
@@ -131,54 +131,66 @@ input{
131131 border-bottom-right-radius : 0 ;
132132 border-width : 5px ;
133133 border-image : var (--card-border );
134- background-color : # 0f0c19 ;
135- /* background-image: linear-gradient(#0f0c19, #0f0c19); */
134+ background-color : # 0f0c19
136135}
137136
138- input : focus {
139- outline-style : none;
137+ input : focus {
138+ outline-style : none
140139}
141140
142- input ::placeholder {
143- color : var (--body-fg );
141+ input ::placeholder {
142+ color : var (--body-fg )
144143}
145144
146- .search-cntnr {
145+ .search-cntnr {
147146 font-family : "Ubuntu Mono Regular" ;
148147 display : flex;
149148 flex-direction : row;
150149 justify-content : center;
151150 align-items : stretch;
152- padding : 4px ;
151+ align-self : center;
152+ padding : 4px
153153}
154- .search-btn {
154+
155+ .search-btn {
155156 cursor : pointer;
156157 padding-right : 16px ;
157158 font-weight : 400 ;
158159 font-size : 1rem ;
159- padding-left : 24 px ;
160+ padding-left : 8 px ;
160161 background-color : var (--hover-bg );
161162 align-items : center;
162163 align-content : center;
163164 border-top-right-radius : 8px ;
164165 border-bottom-right-radius : 8px ;
165- /* make unselectable text */
166166 -webkit-user-select : none;
167167 -moz-user-select : none;
168168 -ms-user-select : none;
169- user-select : none;
169+ user-select : none
170170}
171171
172- .result-card {
173- padding : 1rem ;
174- border : double 1em transparent;
175- border-style : solid;
176- border-image : var (--card-border );
172+ .result-card {
173+ padding : 0.5rem ;
174+ border : 5px solid # 0000 ;
175+ background : conic-gradient (# 0f0c19 0 0 ) padding-box, linear-gradient (90deg , # 1a1331, # 4e3aa3 ) border-box;
177176 border-style : solid;
178177 border-width : 4px ;
179- border-radius : 1rem ;
180- background-clip : padding-box, border-box;
181- background-origin : border-box;
178+ border-radius : 4px ;
179+ margin-top : 1rem
180+ }
181+
182+ .user-infos {
183+ display : flex;
184+ align-items : center;
185+ justify-content : start;
186+ gap : .5rem ;
187+ width : 100%
188+ }
189+
190+ .user-avatar {
191+ border-radius : 50% ;
192+ background-color : var (--hover-accent );
193+ width : 64px
182194}
183195
184196.hidden {
You can’t perform that action at this time.
0 commit comments