This commit is contained in:
2025-11-03 19:30:55 +01:00
parent 6232b80741
commit 1e0ea6ae6e
6 changed files with 77 additions and 40 deletions

View File

@@ -0,0 +1,36 @@
.results {
display: grid;
column-gap: 14px;
row-gap: 14px;
grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
margin-top: 50px;
justify-content: space-around;
}
input[type="text"] {
border: solid 1px var(--primary-color);
padding: 10px;
border-radius: 8px;
margin-right: 4px;
display: inline-block;
width: 30%;
}
button {
padding: 10px;
border: solid 1px var(--primary-color);
background: var(--primary-color);
color: white;
border-radius: 8px;
}
@media (min-width: 500px) and (max-width: 768px) {
.results {
grid-template-columns: repeat(2, 1fr);
}
input[type="text"] {
width: 70%;
}
}
@media (max-width: 499px) {
.results {
grid-template-columns: 1fr;
}
}

View File

@@ -0,0 +1,6 @@
<section>
<form>
<input type="text" placeholder="Filter by city" />
<button class="primary" type="button">Search</button>
</form>
</section>

View File

@@ -2,14 +2,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-home',
imports: [],
template: `
<p>
home works!
</p>
`,
styles: ``
templateUrl: './home.html',
styleUrls: ['./home.css'],
})
export class Home {
}
export class Home {}