1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
| <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
.column {
height: auto;
float: left;
padding: 20px;
/* border: 1px solid black; */
width: 49%;
}
.column:nth-child(1) {
float: inline-start;
margin: 0 auto 15px auto;
}
.column:nth-child(2) {
float: inline-end;
margin: auto;
}
.row {
position: absolute;
top: 110px;
left: 3%;
right: 3%;
padding-bottom: 55px;
}
.row:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 960px) {
.column {
width: 100%;
}
img {
width: 100%;
height: auto;
object-fit: cover;
object-position: center;
}
}
@media screen and (max-width: 600px) {
.column {
width: 100%;
}
img {
width: 100%;
height: auto;
object-fit: cover;
object-position: center;
}
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
}
.arrow {
position: absolute;
cursor: pointer;
color: #ffffff;
border: 1px solid #ffffff00;
font-weight: bold;
font-size: 1.8em;
transition: 0.2s ease;
border-radius: .5em;
user-select: none;
background-color: rgba(0, 0, 0, 0.12);
opacity: 0.7;
padding: 0 5% 0 5%;
margin: 0 30% 0 30%;
bottom: 7px;
}
.arrow:active {
background-color: rgba(255, 246, 246, 0.345);
color: #070707;
border: 1px solid #1a1919;
}
.arrow:hover {
background-color: rgba(0, 0, 0, 0.143);
opacity: 1;
}
.prev {
left: 5px;
}
.next {
right: 5px;
}
.prev::before {
content: "\0023F4";
}
.next::before {
content: "\0023F5";
}
</style>
</head>
<body>
<header role="header">
<nav class="menu" role="sections">
<div>
<div>
<h1 class="logo">DUO IMPAIR   Graphic Design Studio</h1>
</div>
<div>
<a href="index.html" style="color: blue">Projects</a>
<a href="info.html">About</a>
</div>
</div>
</header>
<div class="row">
<div class="column">
<img class="carrousel" src="https://i.imgur.com/P9IVqkS.webp" width="400" height="auto" />
<div></div>
</div>
<div class="column">
<img class="carrousel" src="https://i.imgur.com/gqBG7EK.webp" width="400" height="auto" />
<div></div>
</div>
</div>
<div class="footer">
<a class="prev arrow"></a>
<a class="next arrow"></a>
</div>
<script>
const slides = [
{ nameimg: "3rCW1xj.webp", info: "<p><b>Bushels of Goodness and Warmth, Graphic design, Layout, 2022 [with Jordan Derrien and V.O Curations Gallery (London)]</b><br/>Catalogue of the exhibition: Bushels of goodness by the artist Jordan Derrien. With a text written by Marie de Brugerolle and photographies taken by Theo Christelis.</p>" },
{ nameimg: "AsXzjqX.webp", info: "<p><b>SupaVenezia Cap, Identity, Graphic Design, 2022 [with the artist Sarah Staton]</b><br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" },
{ nameimg: "aJndu7X.webp", info: "<p><b>Hutte Mono (Regular & Swash), Type Design, 2023.</b><br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" },
{ nameimg: "gVx56OF.webp", info: "<p><b>Bushels of Goodness and Warmth, Graphic design, Layout, 2022 [with Jordan Derrien and V.O Curations Gallery (London)]</b><br/>Catalogue of the exhibition: Bushels of goodness by the artist Jordan Derrien. With a text written by Marie de Brugerolle and photographies taken by Theo Christelis.</p>" },
{ nameimg: "gqBG7EK.webp", info: "<p><b>SupaVenezia Cap, Identity, Graphic Design, 2022 [with the artist Sarah Staton]</b><br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" },
{ nameimg: "P9IVqkS.webp", info: "<p><b>Hutte Mono (Regular & Swash), Type Design, 2023.</b><br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" }
]
let arrows = document.querySelectorAll('.arrow'),
imgA = document.getElementsByClassName("carrousel")[0],
imgB = document.getElementsByClassName("carrousel")[1],
i = 0
function actualisation() {
imgA.src = `https://i.imgur.com/${slides[i].nameimg}`
imgB.src = `https://i.imgur.com/${slides[i + 1].nameimg}`
imgA.nextElementSibling.innerHTML = slides[i].info
imgB.nextElementSibling.innerHTML = slides[i + 1].info
}
for (const arrowSelect of arrows) {
arrowSelect.addEventListener("click", () => {
// ici une condition if else ('?' -> 'alors' et ':' -> 'sinon')
arrowSelect.classList.contains('prev') == true ? slides[i - 2] ? i -= 2 : i = slides.length - 2 : slides[i + 2] ? i += 2 : i = 0
actualisation()
})
}
actualisation()
</script
</body>
</html> |
Partager