Skip to content

Commit e3ca644

Browse files
committed
add search bar
TODO: add function and display
1 parent 9895fe4 commit e3ca644

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ <h3>Grab your own sweet-looking <span>.is-a.dev</span> subdomain.</h3>
6060
src="//cdn.carbonads.com/carbon.js?serve=CW7DE2JU&placement=is-adev&format=cover"
6161
id="_carbonads_js"></script>
6262

63+
<h2>Check SubDomain Availability</h2>
64+
<div class="search-cntnr">
65+
<input type="text" placeholder="Check domain name e.g. william">
66+
<div class="search-btn">
67+
Check
68+
</div>
69+
</div>
70+
6371
<h2>Important Links</h2>
6472
<ul>
6573
<li><a href="https://docs.is-a.dev">Documentation</a></li>

styles/main.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,44 @@ a:hover {
119119
background-color: transparent; /* No background change */
120120
}
121121

122+
/* Search */
123+
input{
124+
font-family: "Ubuntu Mono Regular";
125+
width: 100%;
126+
color: var(--body-fg);
127+
font-size: 1.2rem;
128+
padding: 4px;
129+
border: 0 solid #0f0c19;
130+
background-image: linear-gradient(#0f0c19, #0f0c19);
131+
}
132+
133+
input::placeholder{
134+
color: var(--body-fg);
135+
}
136+
137+
.search-cntnr{
138+
font-family: "Ubuntu Mono Regular";
139+
display: flex;
140+
flex-direction: row;
141+
justify-content: space-evenly;
142+
align-items: center;
143+
gap: 8px;
144+
padding: 4px;
145+
background: var(--header-bg);
146+
border-radius: 4px;
147+
}
148+
.search-btn{
149+
cursor: pointer;
150+
padding-right: 8px;
151+
font-weight: 700;
152+
font-size: 1rem;
153+
/* make unselectable text */
154+
-webkit-user-select: none;
155+
-moz-user-select: none;
156+
-ms-user-select: none;
157+
user-select: none;
158+
}
159+
122160
/* Carbon Ads */
123161
#carbonads {
124162
padding-top: 20px;

0 commit comments

Comments
 (0)