-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: default img and video icons
- Loading branch information
Showing
12 changed files
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{ define "icon-file"}}<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" width="80" height="100" viewBox="0 0 24 24" version="1.1"> | ||
<g transform="translate(0 -1028.4)"> | ||
<path d="m5 1030.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#D1D1D1"/> | ||
<path d="m5 1029.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#ffffff"/> | ||
<path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2h4z" fill="#D1D1D1"/> | ||
</g> | ||
</svg>{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ define "icon-image"}}<svg width="80" height="100" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0,-1028.4)"><path d="m5 1030.4c-1.1046 0-2 0.9-2 2v18c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-14l-6-6z" fill="#008da5"/><path d="m5 1029.4c-1.1046 0-2 0.9-2 2v18c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-14l-6-6z" fill="#0dbbd3"/><path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2z" fill="#d1d1d1"/></g><g transform="matrix(.42717 0 0 .43004 6.874 6.8397)" fill="#fff"><path d="m6.205 3h11.59c1.114 0 1.519 0.116 1.926 0.334s0.727 0.538 0.945 0.945 0.334 0.811 0.334 1.926v7.51l-4.391-4.053a1.5 1.5 0 0 0-2.265 0.27l-3.13 4.695-2.303-1.48a1.5 1.5 0 0 0-1.96 0.298l-3.946 4.705a12.98 12.98 0 0 1-5e-3 -0.355v-11.59c0-1.115 0.116-1.519 0.334-1.926s0.538-0.727 0.945-0.945 0.811-0.334 1.926-0.334zm9.477 8.53 5.318 4.907v1.357c0 1.114-0.116 1.519-0.334 1.926a2.272 2.272 0 0 1-0.945 0.945c-0.407 0.218-0.811 0.334-1.926 0.334h-11.59c-1.115 0-1.519-0.116-1.926-0.334a2.305 2.305 0 0 1-0.485-0.345l4.406-5.253 2.346 1.508a1.5 1.5 0 0 0 2.059-0.43l3.077-4.616zm-7.694-5.53c-1.11 0-1.988 0.832-1.988 1.988 0 1.157 0.879 2.012 1.988 2.012 1.133 0 2.012-0.855 2.012-2.012 0-1.156-0.879-1.988-2.012-1.988z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd"/></g></svg>{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ define "icon-video"}}<svg width="80" height="100" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0,-1028.4)"><path d="m5 1030.4c-1.1046 0-2 0.9-2 2v18c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-14l-6-6z" fill="#a50055"/><path d="m5 1029.4c-1.1046 0-2 0.9-2 2v18c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-14l-6-6z" fill="#d30d83"/><path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2z" fill="#d1d1d1"/></g><g transform="matrix(.42717 0 0 .43004 6.874 6.8397)" display="none" fill="#fff"><path d="m6.205 3h11.59c1.114 0 1.519 0.116 1.926 0.334s0.727 0.538 0.945 0.945 0.334 0.811 0.334 1.926v7.51l-4.391-4.053a1.5 1.5 0 0 0-2.265 0.27l-3.13 4.695-2.303-1.48a1.5 1.5 0 0 0-1.96 0.298l-3.946 4.705a12.98 12.98 0 0 1-5e-3 -0.355v-11.59c0-1.115 0.116-1.519 0.334-1.926s0.538-0.727 0.945-0.945 0.811-0.334 1.926-0.334zm9.477 8.53 5.318 4.907v1.357c0 1.114-0.116 1.519-0.334 1.926a2.272 2.272 0 0 1-0.945 0.945c-0.407 0.218-0.811 0.334-1.926 0.334h-11.59c-1.115 0-1.519-0.116-1.926-0.334a2.305 2.305 0 0 1-0.485-0.345l4.406-5.253 2.346 1.508a1.5 1.5 0 0 0 2.059-0.43l3.077-4.616zm-7.694-5.53c-1.11 0-1.988 0.832-1.988 1.988 0 1.157 0.879 2.012 1.988 2.012 1.133 0 2.012-0.855 2.012-2.012 0-1.156-0.879-1.988-2.012-1.988z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd"/></g><g transform="matrix(.014648 0 0 .014648 8.25 8.25)" fill="#fff"><path class="st0" d="m464 56v40h-40v-40h-336v40h-40v-40h-48v400h48v-40h40v40h336v-40h40v40h48v-400zm-376 298.67h-40v-64h40zm0-133.34h-40v-64h40zm220.09 44.719-101.73 60.734c-0.75 0.438-1.656 0.469-2.406 0.031-0.734-0.422-1.203-1.219-1.203-2.094v-121.44c0-0.859 0.469-1.656 1.203-2.094 0.75-0.406 1.656-0.391 2.406 0.031l101.73 60.75c0.719 0.406 1.156 1.203 1.156 2.031 0 0.845-0.437 1.626-1.156 2.048zm155.91 88.625h-40v-64h40zm0-133.34h-40v-64h40z" fill="#fff"/></g></svg>{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
{{define "file-item"}}<figure class="figure dir-list-item"> | ||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" width="80" height="100" viewBox="0 0 24 24" version="1.1"> | ||
<g transform="translate(0 -1028.4)"> | ||
<path d="m5 1030.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#D1D1D1"/> | ||
<path d="m5 1029.4c-1.1046 0-2 0.9-2 2v8 4 6c0 1.1 0.8954 2 2 2h14c1.105 0 2-0.9 2-2v-6-4-4l-6-6h-10z" fill="#ffffff"/> | ||
<path d="m21 1035.4-6-6v4c0 1.1 0.895 2 2 2h4z" fill="#D1D1D1"/> | ||
</g> | ||
</svg> | ||
{{ template "icon-file" .}} | ||
<figcaption class="figure-caption">{{ .Name }}</figcaption> | ||
</figure>{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{{define "image-item"}}<a href="/origin/{{ .ID }}" data-loading="lazy" class="image-lightbox" hx-boost="false" data-fslightbox="gallery" data-pswp-width="{{ width .Resolution }}" data-pswp-height="{{ height .Resolution }}"><figure class="figure dir-list-item"> | ||
{{define "image-item"}}<a href="/origin/{{ .ID }}" data-loading="lazy" class="image-lightbox" hx-boost="false" data-fslightbox="gallery"><figure class="figure dir-list-item"> | ||
{{ if eq .Resolution "0x0" }} | ||
{{ template "icon-image" .}} | ||
{{ else }} | ||
<div class="wrap"> | ||
<div class="spacer"></div> | ||
<img src="/preview/{{ .ID }}" id="img-{{.ID}}" class="figure-img img-fluid rounded" alt="{{ .Name }}" hx-preserve> | ||
</div> | ||
{{ end }} | ||
<figcaption class="figure-caption">{{ .Name }}</figcaption> | ||
</figure></a>{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters