Spaces:
Sleeping
Sleeping
File size: 6,975 Bytes
6df9c07 30a232b 6df9c07 cca69db 6df9c07 cca69db 6df9c07 731c96d 6df9c07 731c96d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marilyne Labrie</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@600&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="{{ PANEL_CDN }}images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ PANEL_CDN }}images/favicon.ico">
<link rel="manifest" href="{{ PANEL_CDN }}images/site.webmanifest">
<style>
body {
display: flex;
flex-direction: column;
font-family: "Kumbh Sans", "Segoe UI", Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 600;
line-height: normal;
height: 100vh;
margin: 0px;
overflow: hidden;
padding: 0;
}
.header {
box-shadow: 0 .125rem .25rem 0 gray;
z-index: 1;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
}
.header-content {
display: flex;
flex-direction: row;
padding: 1.5rem;
}
#panel-logo {
padding-right: 2em;
width: 100px; /* Adjust width as needed */
height: auto; /* Maintain aspect ratio */
}
.gallery-item {
border: 0.1px solid gray;
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
cursor: pointer;
text-align: center;
}
.header-content {
display: flex;
flex-direction: row;
padding: 1.5rem;
align-items: center;
background-image: url('background_image.png'); /* Replace with your image file */
background-size: cover; /* Ensure the image covers the entire area */
background-position: center; /* Center the image */
}
.gallery-item:hover {
border: 0.1px solid black;
box-shadow: rgba(20, 20, 50, 0.25) 0px 9px 18px -2px, rgba(0, 0, 0, 0.3) 0px 6px 10px -3px;
}
#search-input {
border: 0.1px solid black;
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
height: 3em;
margin: 1.5rem 2rem 0 2rem;
padding-left: 1em;
width: calc(100% - 6em);
}
#search-input:focus-visible {
border: 0.1px solid black;
box-shadow: rgba(20, 20, 50, 0.25) 0px 12px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
outline: none;
}
.main {
background-color: #f2f2f2;
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
}
.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
grid-gap: 2rem;
list-style: none;
}
/* Presentational styles */
.card {
background-color: white;
padding: 0px;
}
.cards-grid {
margin: 2rem;
padding: 0px;
}
.avatar {
vertical-align: middle;
float: right;
width: 30px;
height: 30px;
margin-top: 5px;
border-radius: 50%;
}
.card-action svg {
vertical-align: middle;
float: right;
height: 20px;
color: white;
margin-top: 10px;
margin-right: 10px;
}
.card-image {
height: 175px;
width: 100%;
margin-top: 25px;
}
object {
height: 175px;
max-width: calc(100% - 50px);
margin-top: 25px;
border-radius: 5px;
}
.card-content {
padding: 10px 10px 10px;
}
.card-text {
height: 100px;
}
.card-header {
height: 2em;
text-align: center;
}
.card-link {
text-decoration: none;
color: black;
}
.title-area {
display: flex;
flex-direction: column;
margin: auto 0 auto auto;
}
#title {
font-size: 1.8em;
font-weight: bold;
}
#subtitle {
font-size: 1.2em;
text-align: right;
}
</style>
<script type="text/javascript">
function setParamsFromSearch(text){
const params = new URLSearchParams(location.search);
if (text === "") {
params.delete("search")
} else {
params.set('search', text);
}
window.history.replaceState({}, '', `${location.pathname}?${params}`);
}
function hideCards(text) {
text = text.toLowerCase();
const cards = document.getElementsByTagName("li")
for (const card of cards) {
const label = card.children[0].children[0].children[1]
if (text === "" || label.innerHTML.toLowerCase().includes(text)) {
card.style.display = ""
} else {
card.style.display = "none"
}
}
setParamsFromSearch(text)
}
function setSearchFromParams() {
const params = new URLSearchParams(window.location.search)
if (params.has('search')){
const search = params.get('search')
const searchEl = document.getElementById("search-input")
searchEl.value = search
hideCards(search)
}
}
setSearchFromParams()
</script>
</head>
<body>
<section class="header">
<div class="header-content">
<div class="title-area">
<span id="title">Cyc IF</span>
<span id="subtitle">Labo Labrie</span>
</div>
</div>
</section>
<div class="main">
<section class="search">
<input id="search-input" placeholder="Search applications..." onInput="hideCards(event.target.value)"></input>
</section>
<section id="cards">
<ul class="cards-grid">
{% for item in sorted(items, key=lambda item: item[1:].replace("_", " ").title()) %}
<li class="card">
<a class="card-link" href=".{{ item }}" id="{{ item }}">
<div class="gallery-item">
<object data="thumbnails{{ item }}.png" type="image/png">
<svg class="card-image" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-window" viewBox="0 0 16 16">
<path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
<path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
</svg>
</object>
<div class="card-content">
<h2 class="card-header">{{ item[1:].replace("_", " ").title() }}</h2>
</div>
</div>
</a>
</li>
{% end %}
</ul>
</section>
</div>
</body>
</html> |