Feat: add namecheck and tailwind css
This commit is contained in:
		
							
								
								
									
										17
									
								
								components/namecheck.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								components/namecheck.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| {{define "namecheck"}} | ||||
| {{ if eq . 0 }} | ||||
| <div id="login_notice">this name looks available</div> | ||||
| {{ else if eq . 1 }} | ||||
| <a href="/"> | ||||
| <div id="login_notice" class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4" role="alert"> | ||||
|   <p class="font-bold">Be Warned</p> | ||||
|   <p>This Name is already taken. You won't be able to login with it until other person leaves.</p> | ||||
| </div> | ||||
| </a> | ||||
| {{ else }} | ||||
| <div id="login_notice" class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4" role="alert"> | ||||
|   <p class="font-bold">Be Warned</p> | ||||
|   <p>This Name is already taken. You won't be able to login with it until other person leaves.</p> | ||||
| </div> | ||||
| {{end}} | ||||
| {{end}} | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder