made design better for tiling window manager

This commit is contained in:
amnesia 2025-07-04 09:22:25 +02:00
parent f23e48700b
commit 75c00e447a
2 changed files with 71 additions and 73 deletions

View File

@ -6,24 +6,22 @@ body {
margin: 0;
height: 100vh;
padding-left: auto;
padding-right: auto;
background-color: pink;
display: flex;
align-items: center;
justify-content: center;
background: url("bg.svg") center center/auto repeat, linear-gradient(
to bottom, transparent, pink
);
background:
url("bg.svg") center center/auto repeat,
linear-gradient(to bottom, transparent, pink);
}
.search-grid {
margin-top: -10em;
width: 100%;
width: 40em;
height: 30em;
margin-left: 10em;
margin-right: 10em;
display: grid;
gap: 5em;
@ -32,6 +30,8 @@ body {
}
.search {
width: 100%;
grid-row: 2;
grid-column: 1 / span 2;
}
@ -39,6 +39,7 @@ body {
.search-logo {
grid-row: 1;
height: 100%;
width: 100%;
display: flex;
flex-direction: row;
@ -48,7 +49,7 @@ body {
color: black;
}
@media (min-height: 700px){
@media (min-height: 700px) {
.search-grid {
margin-top: 0;
}
@ -62,7 +63,7 @@ body {
}
.card {
background-color: rgba(255, 255, 255, .5);
background-color: rgba(255, 255, 255, 0.5);
width: 10em;
display: flex;
flex-direction: column;
@ -85,5 +86,5 @@ body {
background-color: lightblue;
padding: 1em;
border-radius: .5em;
border-radius: 0.5em;
}

View File

@ -1,29 +1,26 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .PageTitle }}</title>
<link rel="stylesheet" type="text/css" href="assets/style.css">
</head>
<body>
<link rel="stylesheet" type="text/css" href="assets/style.css" />
</head>
<body>
<form class="search-grid" action="{{ .SearchFormAction }}">
<div class="search-logo">
<img als="girl_juice" src="assets/girl_juice.png" />
<h2 class="phrases"></h2>
<img als="girl_juice" src="assets/girl_juice.png" />
</div>
<input name="{{ .SearchInputName }}" type="text" class="grid-item" class="search" placeholder="{{ .SearchPlaceholder }}" />
<div class="store-cards">
{{range $Store := .Stores }}
<a target="_blank" href="{{ $Store.Url }}" class="card">
<h3>{{ $Store.Name }}</h3>
<p>{{ $Store.Description }}</p>
</a>
{{- end }}
</div>
<input
name="{{ .SearchInputName }}"
type="text"
class="grid-item"
class="search"
placeholder="{{ .SearchPlaceholder }}"
/>
</form>
<script>
@ -64,5 +61,5 @@
animateMarquee();
});
</script>
</body>
</body>
</html>