Small CSS changes

This commit is contained in:
Miguel de la Cruz 2024-08-03 08:33:58 +02:00
parent c2b4e8467b
commit 7a5ab7cf09
3 changed files with 64 additions and 34 deletions

View file

@ -8,6 +8,8 @@
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
</head>
<body>
<main>
<div id="content">
<h1>{{.title}}</h1>
{{if ne (len .recipes) 0}}
@ -17,5 +19,7 @@
{{end}}
</ul>
{{end}}
</div>
</main>
</body>
</html>

View file

@ -8,6 +8,8 @@
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
</head>
<body>
<main>
<div id="content">
<h1>{{.name}}</h1>
{{$recipeImage := recipeImage .path}}
@ -38,5 +40,7 @@
{{end}}
{{end}}
</ul>
</div>
</main>
</body>
</html>

View file

@ -1,8 +1,30 @@
body {
font-size: 1.3rem;
background-color: lightgrey;
font-family: monospace;
}
main {
display: flex;
flex-flow: column;
align-items: center;
width: 100%;
height: 100%;
}
#content {
width: 80%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
img {
max-width: 50%;
max-height: 500px;
}
.ingredient {
font-weight: bold;
color: green;