As I continue my journey as a designer, I often ask myself what the end goal is. I'd say in the long-term, I want to be able to tell stories through my creative works. I've always been enamoured by all types of forms of visual media - books, comics, art, movies, games, music - I want to do everything even if it takes me my entire lifetime. I see so many incredible designers who have taken such care to amplify their talent with skills and knowledge to weave stunning stories together - in ways that are so uniquely theirs. That's what I want in the long term - to design such that no one else in the world could do it the same way.
So then... what's the 5-year-plan? For now, my short term goals are to learn, practice, improve, and absorb everything I can from the world and designers around me. For now, I want to know which tools I already have and improve my skills for when I can eventually create more complex design projects.
function gallery(itemNum, switchTo){
const imageSources = [
imageSources1 = [
"./img/dreamer.png",
"./img/dreamer_det1.png",
"./img/dreamer_det2.png",
"./img/dreamer_det3.png"
],
imageSources2 = [
"./img/lovelorn.png",
"./img/lovelorn_det1.png",
"./img/lovelorn_det2.png",
"./img/lovelorn_det3.png"
],
imageSources3 = [
"./img/echoingcorridors.png",
"./img/echoingcorridors_det1.png",
"./img/echoingcorridors_det2.png",
"./img/echoingcorridors_det3.png"
],
imageSources4 = [
"./img/bolt.png",
"./img/bolt_det1.png",
"./img/bolt_det2.png",
"./img/bolt_det3.png"
],
imageSources5 = [
"./img/returnhome.png",
"./img/returnhome_det1.png",
"./img/returnhome_det2.png",
"./img/returnhome_det3.png"
],
imageSources6 = [
"./img/garden.png",
"./img/garden_det1.png",
"./img/garden_det2.png",
"./img/garden_det3.png"
]
];
const currentImageSet = imageSources[itemNum-1];
// console.log(previewSources);
var currentImage = document.querySelector(".image"+ itemNum);
var currentState = null;
var currentPreview = null;
for(let i=0;i< currentImageSet.length;i++){
const currentImgSrc = currentImageSet[i];
if(currentImage.src.match(currentImgSrc)){
currentState = i;
}
}
// console.log(currentState);
if(switchTo==="prev"){
currentState--;
} else if(switchTo==="next"){
currentState++;
} else if(switchTo!=="prev" || switchTo !== "next"){
currentState = switchTo;
}
if(currentState>currentImageSet.length-1) currentState = 0;
if(currentState<0) currentState = currentImageSet.length-1;
console.log(currentImageSet);
currentImage.src = currentImageSet[currentState];
console.log(currentImage.src);
const previewSources = document.querySelectorAll(".preview"+ itemNum + " > .preview-image");
console.log(previewSources);
currentPreview = previewSources[currentState];
// console.log(currentPreview);
currentPreview.classList.add("active-preview");
for(let i=0;i<previewSources.length;i++){
if(previewSources[i] !== currentPreview) previewSources[i].classList.remove("active-preview");
}
}