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>
|
<p id="projectSubtitle">{{ subtitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% include "project_image.njk" %}
|
||||||
<main id="projectDescription">
|
<main id="projectDescription">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
<div id="everythingHelper">
|
<div id="everythingHelper">
|
||||||
{% include "header.njk" %}
|
{% include "header.njk" %}
|
||||||
<div id="projectHeader">
|
<div id="projectHeader">
|
||||||
{% if logoName and logoExtension %}
|
{% if logo %}
|
||||||
<img src="{{ page.dir }}{{ logoName }}.{{ logoExtension }}">
|
<img src="{{ page.dir }}{{ logo }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="projectTitleSubtitle">
|
<div id="projectTitleSubtitle">
|
||||||
<div id="projectTitleAuthor">
|
<div id="projectTitleAuthor">
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
</div>
|
</div>
|
||||||
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">Download</button></a>
|
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">Download</button></a>
|
||||||
</div>
|
</div>
|
||||||
|
{% include "project_image.njk" %}
|
||||||
<main id="projectDescription">
|
<main id="projectDescription">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</main>
|
</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;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -22,7 +27,7 @@ header {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color:greenyellow;
|
color: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
@ -130,7 +135,7 @@ img {
|
||||||
|
|
||||||
.featuredProject img {
|
.featuredProject img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: medium solid yellowgreen;
|
border: medium solid var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.featuredProject p {
|
.featuredProject p {
|
||||||
|
|
@ -159,12 +164,14 @@ img {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#downloadButton {
|
#downloadButton {
|
||||||
border: none;
|
border: none;
|
||||||
background: linear-gradient(yellowgreen, green);
|
background: linear-gradient(var(--accent-color), var(--accent-secondary));
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#downloadLink {
|
#downloadLink {
|
||||||
|
|
@ -179,7 +186,6 @@ img {
|
||||||
|
|
||||||
#downloadButton:hover {
|
#downloadButton:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#projectHeader img {
|
#projectHeader img {
|
||||||
|
|
@ -207,6 +213,38 @@ img {
|
||||||
margin-bottom: 6px;
|
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 {
|
#credits {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@ subtitle: "A bear doing things on the internet."
|
||||||
downloadLink: "https://modrinth.com/plugin/tenkumalib/versions"
|
downloadLink: "https://modrinth.com/plugin/tenkumalib/versions"
|
||||||
logoName: "logo"
|
logoName: "logo"
|
||||||
logoExtension: "png"
|
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."
|
subtitle: "A simple way to add custom commands with custom responses to your server."
|
||||||
author: "tenkuma"
|
author: "tenkuma"
|
||||||
downloadLink: "https://modrinth.com/plugin/aboukkit/versions"
|
downloadLink: "https://modrinth.com/plugin/aboukkit/versions"
|
||||||
backgroundImageSize: "cover"
|
logo: "logo.png"
|
||||||
logoName: "logo"
|
|
||||||
logoExtension: "png"
|
|
||||||
tags: plugin
|
tags: plugin
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@ name: "The Devil Within"
|
||||||
subtitle: "Adds enchanting to Minecraft Beta. Supports balancing through curses."
|
subtitle: "Adds enchanting to Minecraft Beta. Supports balancing through curses."
|
||||||
author: "tenkuma"
|
author: "tenkuma"
|
||||||
downloadLink: "https://modrinth.com/plugin/devilwithin/versions"
|
downloadLink: "https://modrinth.com/plugin/devilwithin/versions"
|
||||||
logoName: "logo"
|
logo: "logo.png"
|
||||||
logoExtension: "png"
|
|
||||||
tags: plugin
|
tags: plugin
|
||||||
---
|
---
|
||||||
This plugin is a remake of [GoldEnchant](https://dev.bukkit.org/projects/goldenchant/).
|
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."
|
subtitle: "Miscellaneous additions to your Minecraft server."
|
||||||
author: "tenkuma"
|
author: "tenkuma"
|
||||||
downloadLink: "https://modrinth.com/plugin/ghosts/versions"
|
downloadLink: "https://modrinth.com/plugin/ghosts/versions"
|
||||||
backgroundImageSize: "cover"
|
images: ["anti-spam.png", "rainbow-chat.png", "skibidi-blocker.png"]
|
||||||
logoName: "logo"
|
logo: "logo.png"
|
||||||
logoExtension: "png"
|
|
||||||
tags: "plugin"
|
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.
|
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
|
## Features
|
||||||
- **RainbowChat:** Rainbow color code.
|
- **RainbowChat:** Rainbow color code (&z by default).
|
||||||
- **SkibidiBlocker:** Strike a lightning on players that say a word.
|
- **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.
|
- **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!"
|
subtitle: "Force your players to refrigerate their food by rotting food in unrefrigerated chests!"
|
||||||
author: "tenkuma"
|
author: "tenkuma"
|
||||||
downloadLink: "https://modrinth.com/plugin/freezer/versions"
|
downloadLink: "https://modrinth.com/plugin/freezer/versions"
|
||||||
logoName: "logo"
|
logo: "logo.png"
|
||||||
logoExtension: "png"
|
|
||||||
tags: plugin
|
tags: plugin
|
||||||
---
|
---
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@ name: "TimeKeeper"
|
||||||
subtitle: "Syncs real world time with your Minecraft server time."
|
subtitle: "Syncs real world time with your Minecraft server time."
|
||||||
author: "tenkuma"
|
author: "tenkuma"
|
||||||
downloadLink: "https://modrinth.com/plugin/timekeeper/versions"
|
downloadLink: "https://modrinth.com/plugin/timekeeper/versions"
|
||||||
logoName: "logo"
|
logo: "logo.png"
|
||||||
logoExtension: "png"
|
|
||||||
tags: plugin
|
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/).
|
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