Skip to content
Snippets Groups Projects
Commit e2a556e3 authored by Jonas Leder's avatar Jonas Leder
Browse files

display skills with images

parent f4536db6
No related branches found
No related tags found
No related merge requests found
class Skill extends HTMLElement {
constructor() {
super();
["python", "php", "sass", "css", "c_sharp", "html", "java", "arduino", "raspberry", "linux", "arch", "gitlab", "traefik", "proxmox"].forEach( skill => {
const image = document.createElement("img");
image.src = "/API/getFile.php?filename=skills/" + skill + ".png";
this.appendChild(image);
})
}
}
customElements.define("jl-skills", Skill);
\ No newline at end of file
...@@ -18,3 +18,4 @@ require("./customElements/mainMenu"); ...@@ -18,3 +18,4 @@ require("./customElements/mainMenu");
require("./customElements/footer"); require("./customElements/footer");
require("./customElements/ebkBanner"); require("./customElements/ebkBanner");
require("./customElements/sellingTable"); require("./customElements/sellingTable");
require("./customElements/skills");
\ No newline at end of file
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
<h2>Blog</h2> <h2>Blog</h2>
<jl-blog_index id="blog"></jl-blog_index> <jl-blog_index id="blog"></jl-blog_index>
<jl-ebk-banner></jl-ebk-banner> <jl-ebk-banner></jl-ebk-banner>
<h2>Skills</h2>
<jl-skills></jl-skills>
<div id="banner"> <div id="banner">
<h2>Banner</h2> <h2>Banner</h2>
<a href="https://ipv6.he.net" target="_blank"><img class="no-corner" <a href="https://ipv6.he.net" target="_blank"><img class="no-corner"
......
jl-skills {
img {
max-height: 80px;
}
}
\ No newline at end of file
...@@ -15,5 +15,6 @@ ...@@ -15,5 +15,6 @@
@import "home"; @import "home";
@import "prism"; @import "prism";
@import "sellingTable"; @import "sellingTable";
@import "skills";
@import "../node_modules/basiclightbox/src/styles/main"; @import "../node_modules/basiclightbox/src/styles/main";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment