diff --git a/index.html b/index.html
index efd4a54..92dd1ca 100755
--- a/index.html
+++ b/index.html
@@ -27,13 +27,13 @@
- BIOTAMA
- HACK THE PLANET
+ BIOTAMA
+ HACK THE PLANET
![]()
-
+
@@ -50,12 +50,12 @@
Turn dive into seafood delights into a cookies bar popup?
todo list
-- style text in game descriptions
- more shrimpy font
-- silly cookie bar (maybe)
- shrimp profiles (about us)
- menu i guess, hamburger, but the lines are waves
- animations
- shirmp cursor for hover
- shrimp rain when button
+- clean up click handling
+- try it out into button
-->
\ No newline at end of file
diff --git a/shrimple-functions.js b/shrimple-functions.js
index 50898a7..e66d7c6 100644
--- a/shrimple-functions.js
+++ b/shrimple-functions.js
@@ -18,6 +18,10 @@ export function getProjectData(project){
return;
}
+export function clearSelectedProjectClass() {
+ document.getElementById("biotama").classList.remove("selected-project");
+ document.getElementById("htp").classList.remove("selected-project");
+}
export function scrollToProjects(){
const projects = document.getElementsByClassName("shrimp-projects")[0];
diff --git a/shrimply-the-best.js b/shrimply-the-best.js
index 1101106..1e34db8 100644
--- a/shrimply-the-best.js
+++ b/shrimply-the-best.js
@@ -1,8 +1,23 @@
-import {getProjectData, scrollToProjects, createShrimpFooter} from "./shrimple-functions.js";
+import {getProjectData, clearSelectedProjectClass, scrollToProjects, createShrimpFooter} from "./shrimple-functions.js";
+
+const biotamaBtn = document.getElementById("biotama");
+const htpBtn = document.getElementById("htp");
document.addEventListener("DOMContentLoaded", function(event) {
- getProjectData("biotama");
+ biotamaBtn.click();
createShrimpFooter();
});
+biotamaBtn.addEventListener("click", function() {
+ clearSelectedProjectClass();
+ this.classList.add("selected-project");
+ getProjectData("biotama");
+});
+
+htpBtn.addEventListener("click", function() {
+ clearSelectedProjectClass();
+ this.classList.add("selected-project");
+ getProjectData("htp");
+});
+
export {getProjectData, scrollToProjects}
\ No newline at end of file
diff --git a/shrimpy-styles.css b/shrimpy-styles.css
index 82dc674..6a42901 100644
--- a/shrimpy-styles.css
+++ b/shrimpy-styles.css
@@ -74,6 +74,14 @@ body {
font-size: 24px;
}
+.shrimp-project-list div:hover {
+ text-decoration: underline overline var(--ashy-shrimp);
+}
+
+.selected-project{
+ text-shadow: 4px 3px 0 var(--cherry-shrimp);
+}
+
#shrimp-project-content {
display: flex;
flex-direction: column;
@@ -117,8 +125,9 @@ body {
#project-content{
display:flex;
flex-flow:column;
- margin: 0 auto;
-
+ margin-top: 0;
+ margin-bottom: 0;
+ justify-content: space-between;
}
@media screen and (orientation: portrait) {
@@ -139,7 +148,7 @@ body {
/* buttons */
.cta-wrapper{
- margin-top:16px;
+ margin:16px 0;
background-color: var(--space-shrimp-blue);
border-radius: 5px;
padding:15px;