Skip to content

Commit

Permalink
image overhaul inspired by te by tega brain's adobe optimize for web …
Browse files Browse the repository at this point in the history
…strategy
  • Loading branch information
iguannalin committed Sep 29, 2023
1 parent 5567fc2 commit 2b0c563
Show file tree
Hide file tree
Showing 113 changed files with 165 additions and 80 deletions.
26 changes: 23 additions & 3 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,20 @@ a {
overflow: scroll;
}

#yosemite, #alaska, #eastcoast, #tableware {
#yosemite, #alaska, #eastcoast, #tableware, #reveries {
display: flex;
overflow: scroll;
}

#yosemite div, #alaska div, #eastcoast div {
#yosemite div, #alaska div, #eastcoast div, #reveries div {
display: flex;
align-items: center;
justify-content: center;
padding: 0 64px;
opacity: 0.9;
}

#tableware div {
#tableware div, #reveries div {
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -160,6 +160,26 @@ a {
top: 128px;
}

#reveries h2 {
position: absolute;
top: 128px;
}

#reveries h3 {
position: absolute;
top: 160px;
text-transform: lowercase;
}

.reveries-heading {
position: relative;
font-size: 50px;
color: var(--default-text);
text-shadow: none;
padding: 0 128px;
min-width: 80%;
}

.film-heading {
font-size: 50px;
color: #38516a;
Expand Down
167 changes: 105 additions & 62 deletions index.html

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,29 @@ window.addEventListener("load", () => {
let previousElementSub = greeting;

const codeProjects = ["eeg cloud", "ai loves horror", "text me smth nice", "baby killer", "spotify recently added"];
const printProjects = ["tableware", "filmotography", "generative riso poster"];
const printProjects = ["tableware", "filmotography", "reveries"]; // "generative riso poster"

const titles = ["yosemite", "alaska", "eastcoast", "tableware"];
const titles = ["yosemite", "alaska", "eastcoast", "tableware", "reveries"];
function switchFilmView(e = {target:{title:""}}) {
let switches = [1,0,0,0];
let switches = [1,0,0,0,0];
switch (e.target.title) {
case "tableware":
switches = [0,0,0,1];
switches = [0,0,0,1,0];
break;
case "yosemite":
switches = [1,0,0,0];
switches = [1,0,0,0,0];
break;
case "alaska":
switches = [0,1,0,0];
switches = [0,1,0,0,0];
break;
case "east coast":
switches = [0,0,1,0];
switches = [0,0,1,0,0];
break;
case "reveries":
switches = [0,0,0,0,1];
break;
default:
switches = [0,0,0,0];
switches = [0,0,0,0,0];
break;
}
switches.forEach((on, index) => {
Expand Down Expand Up @@ -69,6 +72,7 @@ window.addEventListener("load", () => {
greeting.style.display = currentElement == center ? "flex" : "none";
if (currentElement.id == "filmotography") switchFilmView({target:{title:"yosemite"}});
if (currentElement.id == "tableware") switchFilmView({target:{title:"tableware"}});
if (currentElement.id == "reveries") switchFilmView({target:{title:"reveries"}});
if (currentElement == center) select.value = "center";
}

Expand Down
22 changes: 17 additions & 5 deletions large.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,34 @@ a:hover, #home:hover {
background: var(--default-border);
}

#yosemite, #alaska, #eastcoast, #tableware {
#yosemite, #alaska, #eastcoast, #tableware, #reveries {
height: 50%;
margin-top: 30%;
width: 1000px;
}

#yosemite div img, #alaska div img, #eastcoast div img, #tableware div img {

#yosemite div, #alaska div, #eastcoast div , #tableware div img, #reveries div img {
max-width: 1000px;
}

#yosemite div img, #alaska div img, #eastcoast div img, #tableware div img, #reveries div img {
height: 70%;
width: auto;
}

#yosemite div, #alaska div, #eastcoast div , #tableware div img {
max-width: 1000px;
#reveries div img {
height: 80%;
width: auto;
margin: 0 48px;
}

#tableware h2 {
#tableware h2, #reveries h2 {
position: absolute;
top: 0;
}

#reveries h3 {
position: absolute;
top: 48px;
}
Binary file removed public/ai-loves-horror.jpg
Binary file not shown.
Binary file added public/ai-loves-horror.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/ice-field-1x.jpg
Binary file not shown.
Binary file removed public/alaska/ice-field.jpg
Binary file not shown.
Binary file added public/alaska/ice-field.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/little-friend-1x.jpg
Binary file not shown.
Binary file removed public/alaska/little-friend.jpg
Binary file not shown.
Binary file added public/alaska/little-friend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/mountain-evening-1x.jpg
Binary file not shown.
Binary file removed public/alaska/mountain-evening.jpg
Binary file not shown.
Binary file added public/alaska/mountain-evening.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/mountain-sunrise-1x.jpg
Binary file not shown.
Binary file removed public/alaska/mountain-sunrise-vertical-1x.jpg
Binary file not shown.
Binary file removed public/alaska/mountain-sunrise-vertical.jpg
Binary file not shown.
Binary file added public/alaska/mountain-sunrise-vertical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/mountain-sunrise.jpg
Binary file not shown.
Binary file added public/alaska/mountain-sunrise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/shed-blue-1x.jpg
Binary file not shown.
Binary file removed public/alaska/shed-blue.jpg
Binary file not shown.
Binary file added public/alaska/shed-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/shed-white-1x.jpg
Binary file not shown.
Binary file removed public/alaska/shed-white.jpg
Binary file not shown.
Binary file added public/alaska/shed-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/alaska/skater-buds-1x.jpg
Binary file not shown.
Binary file removed public/alaska/skater-buds.jpg
Binary file not shown.
Binary file added public/alaska/skater-buds.png
Binary file removed public/anna.jpg
Diff not rendered.
Binary file added public/anna.png
Binary file removed public/baby-killer.jpg
Diff not rendered.
Binary file added public/baby-killer.png
Binary file removed public/eastcoast/BostonCommons1-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/BostonCommons1.png
Binary file removed public/eastcoast/BostonCommons2-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/BostonCommons2.png
Binary file removed public/eastcoast/BostonCommons3-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/BostonCommons3.png
Binary file removed public/eastcoast/Brekkie-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Brekkie.png
Binary file removed public/eastcoast/Buildings-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Buildings.png
Binary file removed public/eastcoast/Cathedral-1x.jpg
Diff not rendered.
Binary file removed public/eastcoast/Cathedral-inside-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Cathedral-inside.png
Binary file added public/eastcoast/Cathedral.png
Binary file removed public/eastcoast/Dome-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Dome.png
Binary file removed public/eastcoast/Downtown-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Downtown.png
Binary file removed public/eastcoast/DowntownArt-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/DowntownArt.png
Binary file removed public/eastcoast/MBTA-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/MBTA.png
Binary file removed public/eastcoast/Northend-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Northend.png
Binary file removed public/eastcoast/Skyline-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Skyline.png
Binary file removed public/eastcoast/Skyscrapers-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Skyscrapers.png
Binary file removed public/eastcoast/SpringSt-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/SpringSt.png
Binary file removed public/eastcoast/Storiedbuildings-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Storiedbuildings.png
Binary file removed public/eastcoast/Treeshadow-1x.jpg
Diff not rendered.
Binary file added public/eastcoast/Treeshadow.png
Binary file removed public/eeg.jpg
Diff not rendered.
Binary file added public/eeg.png
Binary file removed public/flowers.jpg
Diff not rendered.
Binary file removed public/reveries/reveries-1.jpg
Diff not rendered.
Binary file added public/reveries/reveries-1.png
Binary file added public/reveries/reveries-10.png
Binary file removed public/reveries/reveries-11.jpg
Diff not rendered.
Binary file removed public/reveries/reveries-12.jpg
Diff not rendered.
Binary file removed public/reveries/reveries-2.jpg
Diff not rendered.
Binary file added public/reveries/reveries-2.png
Binary file removed public/reveries/reveries-3.jpg
Diff not rendered.
Binary file added public/reveries/reveries-3.png
Binary file removed public/reveries/reveries-4.jpg
Diff not rendered.
Binary file added public/reveries/reveries-4.png
Binary file removed public/reveries/reveries-5.jpg
Diff not rendered.
Binary file added public/reveries/reveries-5.png
Binary file removed public/reveries/reveries-6.jpg
Diff not rendered.
Binary file added public/reveries/reveries-6.png
Binary file removed public/reveries/reveries-7.jpg
Diff not rendered.
Binary file added public/reveries/reveries-7.png
Binary file removed public/reveries/reveries-8.jpg
Diff not rendered.
Binary file added public/reveries/reveries-8.png
Binary file removed public/reveries/reveries-9.jpg
Diff not rendered.
Binary file added public/reveries/reveries-9.png
Binary file removed public/spotify-recently-added-screenshot.jpg
Diff not rendered.
Binary file added public/spotify-recently-added-screenshot.png
Binary file removed public/watercolor.jpeg
Diff not rendered.
Binary file added public/watercolor.png
Binary file removed public/yosemite/Dawn-Yosemite-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Dawn-Yosemite.png
Binary file removed public/yosemite/Daybreak-HalfDome-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Daybreak-HalfDome.png
Binary file removed public/yosemite/Daytime-Beach-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Daytime-Beach.png
Binary file removed public/yosemite/Dusk-ElCapitan-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Dusk-ElCapitan.png
Binary file removed public/yosemite/Evening-Beach-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Evening-Beach.png
Binary file removed public/yosemite/Evening-Rock-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Evening-Rock.png
Binary file removed public/yosemite/Home-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Home.png
Binary file removed public/yosemite/Sunset-Waves-1x.jpg
Diff not rendered.
Binary file added public/yosemite/Sunset-Waves.png
10 changes: 8 additions & 2 deletions small.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,24 @@
display: none;
}

#yosemite, #alaska, #eastcoast, #tableware {
#yosemite, #alaska, #eastcoast, #tableware, #reveries {
height: 70%;
margin-top: 20%;
width: 800px;
margin-right: 200px;
}

#yosemite div, #alaska div, #eastcoast div , #tableware div img {
#yosemite div, #alaska div, #eastcoast div , #tableware div img, #reveries div img {
max-width: 800px;
}

#yosemite div img, #alaska div img, #eastcoast div img, #tableware div img {
height: 80%;
width: auto;
}

#reveries div img {
height: 60%;
width: auto;
margin: 0 48px;
}

0 comments on commit 2b0c563

Please sign in to comment.