-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement functional header * implement error message when user profile could not be found * make rubocop happy again * resolve requested changes * make rubocop happy * readd highlighted class * cleanup stylesheet * remove duplicate identifiers of stimulus controllers
- Loading branch information
Showing
10 changed files
with
76 additions
and
12 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
26 changes: 26 additions & 0 deletions
26
app/javascript/controllers/skills_empty_space_controller.js
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,26 @@ | ||
import { Controller } from "@hotwired/stimulus" | ||
|
||
// Connects to data-controller="skills-empty-space" | ||
export default class extends Controller { | ||
static targets = ["container"] | ||
|
||
goCrazy() { | ||
this.containerTarget.innerHTML = ""; | ||
let element = document.createElement("h1"); | ||
let text = document.createTextNode("Du hesch drufdrückt"); | ||
element.appendChild(text); | ||
|
||
this.containerTarget.style.display = "flex"; | ||
this.containerTarget.style.flexDirection = "column"; | ||
this.containerTarget.style.alignItems = "center"; | ||
this.containerTarget.style.justifyContent = "center"; | ||
this.containerTarget.style.height = "100vh"; | ||
|
||
let gif = document.createElement("img"); | ||
gif.src = "https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNW0xNXpscDY5MXJkd3YxOWdmZG12cDk1YW45cGwxeDd1ODR4bGt1YyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/tHIRLHtNwxpjIFqPdV/giphy.gif"; | ||
this.containerTarget.appendChild(element); | ||
this.containerTarget.appendChild(gif); | ||
} | ||
|
||
|
||
} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
de: | ||
errors: | ||
profile-not-found: Profil konnte nicht gefunden werden. | ||
helpers: | ||
submit: | ||
cancel: Abbrechen | ||
|
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,4 +1,6 @@ | ||
en: | ||
errors: | ||
profile-not-found: Profile could not be found. | ||
helpers: | ||
submit: | ||
cancel: Cancel | ||
|
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