avec landing page et survol objets home page

This commit is contained in:
xxxgogo77 2021-05-21 12:28:31 +02:00
parent 1636a080a9
commit 3bdfedb1d2
8 changed files with 171 additions and 21 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -21,21 +21,25 @@
<div class="object">
<img src="ImgProtocol.png"/>
<a href="PageProtocol.jpg"></a>
<p>Harkin-Engel Protocol</p>
</div>
<div class="object">
<img src="ImgLison.png"/>
<a href="PageLison.pdf"></a>
<p>Packaging</p>
</div>
<div class="object">
<img src="ImgRaphaelle.png"/>
<a href="PageRaphaelle.jpg"></a>
<p>Local Dish</p>
</div>
<div class="object">
<img src="ImgJuli.png"/>
<a href="PageJuli.pdf"></a>
<p>Manioc</p>
</div>
<!-- <div class="object">
@ -43,6 +47,20 @@
<a href="PageProtocol.jpg"></a>
</div> -->
<div class=landingPage>
<h1>Chocolate Atlas</h1>
The Chocolate Atlas takes the viewer on a non-liner route through the world of cocoa. Using
the lens of cocoa to magnify the detached consumption of goods on a global base. A melt-inyour-mouth sweet for some and, amongst others, a child-slavery-based business for others. The
reality of food is not singular, which is why the Atlas is organized in an organic spread that can
be accessed at multiple points. Cocoa and its trade route is one of the most fragmented crops of
the world, equaling in increased accountability detachment from the fruit to the bar.
<p>Project Developed
at Design Academy of Eindhoven
<br>Curated and edited
by Lison, Julia, Camille, Raphaelle, Gianmarco</p>
<div class=buttonEnter>enter</div>
</div>
</body>
</html>

View file

@ -14,4 +14,8 @@ $(document).ready(function(){
$(".object").each(function(){
$(this).css({"top": nombre(80) + "%", "left": nombre(90) + "%"});
});
$(".buttonEnter").click(function(){
$(".landingPage").fadeOut(600);
})
});

View file

@ -11,11 +11,16 @@
box-sizing: border-box;
}
/*@font-face {
font-family: 'Alpina-Italic';
src: url('fonts/GT-Alpina-Typewriter-Light-Italic.woff') format('woff'),
url('fonts/GT-Alpina-Typewriter-Light-Italic.woff2') format('woff2');
}*/
@font-face {
font-family: 'Helvetica';
src: url("fonts/HelveticaLTStd-Roman.otf") format("opentype");
}
@font-face {
font-family: 'Migra';
src: url("fonts/MigraItalic-ExtralightItalic.otf") format("opentype");
}
html {
height: 100%;
overflow: hidden;
@ -38,6 +43,25 @@ body {
position: absolute;
width: 10%;
cursor: move;
color: white;
text-align: center;
font-family: Helvetica;
font-size: 1.2vw;
font-weight: normal;
}
.object p {
/*opacity: 0;
transform: translateY(-50%);
transition: transform 500ms ease-in-out, opacity 300ms ease-in-out; */
display: none;
margin: 0;
}
.object:hover p {
/*opacity: 1;
transform: translateY(0);*/
display: block;
}
.object img {
@ -56,28 +80,67 @@ body {
transform: translate(-50%, -50%);
}
.landingPage {
position: absolute;
padding: 2vw 10vw 0 10vw;
background: black;
width: 100%;
height: 100%;
overflow: hidden;
color: white;
text-align: center;
font-family: Helvetica;
font-size: 1.2vw;
font-weight: normal;
}
.landingPage h1 {
font-family: Helvetica;
font-size: 300%;
font-weight: normal;
margin: 0 0 10w 0;
}
.landingPage .buttonEnter {
margin: 5% 0 0 0;
background: black;
color: white;
display: inline-block;
border-width: 1px;
border-style: solid;
border-radius: 3vw;
border-color: white;
padding: 0.5vw 1vw 0.5vw 1vw;
cursor: pointer;
}
.landingPage .buttonEnter:hover {
background: white;
color: black;
}
.object:nth-child(1) {
left: 73%;
top: 30%;
left: 70%;
top: 45%;
}
.object:nth-child(2) {
left: 59%;
top: 18%;
left: 1%;
top: 64%;
}
.object:nth-child(3) {
left: 11%;
top: 54%;
left: 68%;
top: 34%;
}
.object:nth-child(4) {
left: 3%;
top: 10%;
left: 21%;
top: 73%;
}
.object:nth-child(5) {
left: 29%;
top: 43%;
left: 1%;
top: 8%;
}
/*# sourceMappingURL=styles.css.map */

View file

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAAA,AAAA,CAAC,CAAC;EACE,kBAAkB,EAAE,UAAU;EAC9B,eAAe,EAAE,UAAU;EAC3B,UAAU,EAAE,UAAU;EACtB,uBAAuB,EAAE,SAAS;EAClC,cAAc,EAAE,kBAAkB;EAClC,sBAAs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EAAE,mBAAmB;EAC5B,MAAM,EAAE,OAAO;CAMlB;;AAvCL,AAmCQ,YAnCI,CAsBR,YAAY,AAaP,MAAM,CAAC;EACJ,UAAU,EAAE,KAAkB;EAC9B,KAAK,EAAE,KAAY;CACtB;;AAKL,AAAA,OAAO,AAAA,UAAW,CAAA,CAAC,EAAK;EACpB,IAAI,EAAE,GAAc;EACpB,GAAG,EAAE,GAAc;CACtB;;AAHD,AAAA,OAAO,AAAA,UAAW,CAAA,CAAC,EAAK;EACpB,IAAI,EAAE,EAAc;EACpB,GAAG,EAAE,GAAc;CACtB;;AAHD,AAAA,OAAO,AAAA,UAAW,CAAA,CAAC,EAAK;EACpB,IAAI,EAAE,GAAc;EACpB,GAAG,EAAE,GAAc;CACtB;;AAHD,AAAA,OAAO,AAAA,UAAW,CAAA,CAAC,EAAK;EACpB,IAAI,EAAE,GAAc;EACpB,GAAG,EAAE,GAAc;CACtB;;AAHD,AAAA,OAAO,AAAA,UAAW,CAAA,CAAC,EAAK;EACpB,IAAI,EAAE,EAAc;EACpB,GAAG,EAAE,EAAc;CACtB",
"sources": [
"styles.scss"
],

View file

@ -12,11 +12,15 @@
box-sizing: border-box;
}
/*@font-face {
font-family: 'Alpina-Italic';
src: url('fonts/GT-Alpina-Typewriter-Light-Italic.woff') format('woff'),
url('fonts/GT-Alpina-Typewriter-Light-Italic.woff2') format('woff2');
}*/
@font-face {
font-family: 'Helvetica';
src: url('fonts/HelveticaLTStd-Roman.otf') format('opentype');
}
@font-face {
font-family: 'Migra';
src: url('fonts/MigraItalic-ExtralightItalic.otf') format('opentype');
}
html{
height: 100%;
@ -40,6 +44,25 @@ body {
position: absolute;
width: 10%;
cursor: move;
color: white;
text-align: center;
font-family: Helvetica;
font-size: 1.2vw;
font-weight: normal;
p {
/*opacity: 0;
transform: translateY(-50%);
transition: transform 500ms ease-in-out, opacity 300ms ease-in-out; */
display: none;
margin: 0;
}
&:hover p {
/*opacity: 1;
transform: translateY(0);*/
display: block;
}
img {
width: 100%;
@ -58,6 +81,48 @@ body {
}
.landingPage {
position: absolute;
padding: 2vw 10vw 0 10vw;
background: rgb(0, 0, 0);
width: 100%;
height: 100%;
overflow: hidden;
color: white;
text-align: center;
font-family: Helvetica;
font-size: 1.2vw;
font-weight: normal;
h1 {
font-family: Helvetica;
font-size: 300%;
font-weight: normal;
margin: 0 0 10w 0;
}
.buttonEnter {
// text-transform: uppercase;
margin: 5% 0 0 0;
background: rgb(0, 0, 0);
color: rgb(255, 255, 255);
display: inline-block;
border-width: 1px;
border-style: solid;
border-radius:3vw;
border-color: white;
padding: 0.5vw 1vw 0.5vw 1vw;
cursor: pointer;
&:hover {
background: rgb(255, 255, 255);
color: rgb(0, 0, 0);
}
}
}
@for $i from 1 through 5 {
.object:nth-child(#{$i}){
left: random(90) + %;