Added support for images on project and author pages.
This commit is contained in:
parent
bb218c9c12
commit
6ef89eed3d
16 changed files with 67 additions and 20 deletions
|
|
@ -19,6 +19,7 @@
|
|||
<p id="projectSubtitle">{{ subtitle }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% include "project_image.njk" %}
|
||||
<main id="projectDescription">
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
<div id="everythingHelper">
|
||||
{% include "header.njk" %}
|
||||
<div id="projectHeader">
|
||||
{% if logoName and logoExtension %}
|
||||
<img src="{{ page.dir }}{{ logoName }}.{{ logoExtension }}">
|
||||
{% if logo %}
|
||||
<img src="{{ page.dir }}{{ logo }}">
|
||||
{% endif %}
|
||||
<div id="projectTitleSubtitle">
|
||||
<div id="projectTitleAuthor">
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
</div>
|
||||
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">Download</button></a>
|
||||
</div>
|
||||
{% include "project_image.njk" %}
|
||||
<main id="projectDescription">
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
|
|
|
|||
10
_includes/project_image.njk
Normal file
10
_includes/project_image.njk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{% if images %}
|
||||
<div id="projectImageCarrousel">
|
||||
<p>Images</p>
|
||||
<div id="projectCarrouselImageHolder">
|
||||
{% for image in images %}
|
||||
<a href="{{ page.dir }}{{ image }}"><img class="projectImage" src="{{ page.dir }}{{ image }}" alt=""></a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
@ -1,3 +1,8 @@
|
|||
:root {
|
||||
--accent-color: greenyellow;
|
||||
--accent-secondary: green;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
@ -22,7 +27,7 @@ header {
|
|||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color:greenyellow;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
main {
|
||||
|
|
@ -130,7 +135,7 @@ img {
|
|||
|
||||
.featuredProject img {
|
||||
width: 100%;
|
||||
border: medium solid yellowgreen;
|
||||
border: medium solid var(--accent-color);
|
||||
}
|
||||
|
||||
.featuredProject p {
|
||||
|
|
@ -159,12 +164,14 @@ img {
|
|||
padding-top: 20px;
|
||||
gap: 20px;
|
||||
display: flex;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#downloadButton {
|
||||
border: none;
|
||||
background: linear-gradient(yellowgreen, green);
|
||||
background: linear-gradient(var(--accent-color), var(--accent-secondary));
|
||||
border-radius: 2px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#downloadLink {
|
||||
|
|
@ -179,7 +186,6 @@ img {
|
|||
|
||||
#downloadButton:hover {
|
||||
cursor: pointer;
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
#projectHeader img {
|
||||
|
|
@ -207,6 +213,38 @@ img {
|
|||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
#projectImageCarrousel {
|
||||
outline: 2px solid gray;
|
||||
padding: 1rem;
|
||||
height: 12em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#projectCarrouselImageHolder {
|
||||
height: 100%;
|
||||
gap: 1em;
|
||||
overflow: auto;
|
||||
scroll-margin-left: 10px;
|
||||
overflow-x: scroll;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.projectImage {
|
||||
transition: .4s;
|
||||
height: 95%;
|
||||
max-width: 10em;
|
||||
object-fit: cover;
|
||||
/* filter: grayscale(); */
|
||||
}
|
||||
|
||||
.projectImage:hover {
|
||||
filter: none;
|
||||
opacity: .8;
|
||||
max-width: 100%;
|
||||
/* object-fit: unset; */
|
||||
}
|
||||
|
||||
#credits {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ subtitle: "A bear doing things on the internet."
|
|||
downloadLink: "https://modrinth.com/plugin/tenkumalib/versions"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
images: ["tenkuma-silverfish.jpg", "tenkuma-mrnando-enderdragon.jpg"]
|
||||
---
|
||||
|
||||
I'm tenkuma.
|
||||
I'm tenkuma. A bear, dreamer and sometimes developer.
|
||||
|
||||
You can found more about me on [my website](https://adrianvictor.rf.gd).
|
||||
BIN
authors/tenkuma/tenkuma-mrnando-enderdragon.jpg
Normal file
BIN
authors/tenkuma/tenkuma-mrnando-enderdragon.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 560 KiB |
BIN
authors/tenkuma/tenkuma-silverfish.jpg
Normal file
BIN
authors/tenkuma/tenkuma-silverfish.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 377 KiB |
|
|
@ -3,9 +3,7 @@ name: "Aboukkit"
|
|||
subtitle: "A simple way to add custom commands with custom responses to your server."
|
||||
author: "tenkuma"
|
||||
downloadLink: "https://modrinth.com/plugin/aboukkit/versions"
|
||||
backgroundImageSize: "cover"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
logo: "logo.png"
|
||||
tags: plugin
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@ name: "The Devil Within"
|
|||
subtitle: "Adds enchanting to Minecraft Beta. Supports balancing through curses."
|
||||
author: "tenkuma"
|
||||
downloadLink: "https://modrinth.com/plugin/devilwithin/versions"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
logo: "logo.png"
|
||||
tags: plugin
|
||||
---
|
||||
This plugin is a remake of [GoldEnchant](https://dev.bukkit.org/projects/goldenchant/).
|
||||
|
|
|
|||
BIN
projects/ghostsandstuff/anti-spam.png
Normal file
BIN
projects/ghostsandstuff/anti-spam.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 480 KiB |
|
|
@ -3,15 +3,14 @@ name: "Ghosts 'n Stuff"
|
|||
subtitle: "Miscellaneous additions to your Minecraft server."
|
||||
author: "tenkuma"
|
||||
downloadLink: "https://modrinth.com/plugin/ghosts/versions"
|
||||
backgroundImageSize: "cover"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
images: ["anti-spam.png", "rainbow-chat.png", "skibidi-blocker.png"]
|
||||
logo: "logo.png"
|
||||
tags: "plugin"
|
||||
---
|
||||
|
||||
This plugins was made to use stuff from my library that would not fit into any plugin (or not in the way presented here) that has ~~a lot~~ (WIP) of random stuff. Everything should be togglable in the config.
|
||||
|
||||
## Features
|
||||
- **RainbowChat:** Rainbow color code.
|
||||
- **RainbowChat:** Rainbow color code (&z by default).
|
||||
- **SkibidiBlocker:** Strike a lightning on players that say a word.
|
||||
- **AntiSpam:** Blocks repeated words in the chat. Optionally can strike a lightning to the player who is spamming.
|
||||
|
|
|
|||
BIN
projects/ghostsandstuff/rainbow-chat.png
Normal file
BIN
projects/ghostsandstuff/rainbow-chat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
BIN
projects/ghostsandstuff/skibidi-blocker.png
Normal file
BIN
projects/ghostsandstuff/skibidi-blocker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 305 KiB |
|
|
@ -3,8 +3,7 @@ name: "teFreezer"
|
|||
subtitle: "Force your players to refrigerate their food by rotting food in unrefrigerated chests!"
|
||||
author: "tenkuma"
|
||||
downloadLink: "https://modrinth.com/plugin/freezer/versions"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
logo: "logo.png"
|
||||
tags: plugin
|
||||
---
|
||||

|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@ name: "TimeKeeper"
|
|||
subtitle: "Syncs real world time with your Minecraft server time."
|
||||
author: "tenkuma"
|
||||
downloadLink: "https://modrinth.com/plugin/timekeeper/versions"
|
||||
logoName: "logo"
|
||||
logoExtension: "png"
|
||||
logo: "logo.png"
|
||||
tags: plugin
|
||||
---
|
||||
This is a plugin for Minecraft beta that syncs the real world time with your in-game time. Logo by [malcolmriley](https://github.com/malcolmriley/unused-textures/blob/master/items/).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue