Skip to content

Commit

Permalink
fixed include.js
Browse files Browse the repository at this point in the history
  • Loading branch information
l-white committed Oct 2, 2023
2 parents 6d6a10e + e17f3f7 commit 8e4b00f
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 0 deletions.
120 changes: 120 additions & 0 deletions Art/Alexandra2888/cup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
body {
background: #e88aeb;
}
#container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.steam {
position: absolute;
height: 150px;
width: 150px;
border-radius: 50%;
background-color: #fff;
margin-top: -75px;
margin-left: 75px;
z-index: 0;
opacity: 0;
}

#steam1 {
-webkit-animation: steam1 4s ease-out infinite;
animation: steam1 4s ease-out infinite;
}

#steam3 {
-webkit-animation: steam1 4s ease-out 1s infinite;
animation: steam1 4s ease-out 1s infinite;
}

@-webkit-keyframes steam1 {
0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 0.2;}
100% {transform: translateY(-200px) translateX(-20px) scale(1); opacity: 0;}
}

@keyframes steam1 {
0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 0.2;}
100% {transform: translateY(-200px) translateX(-20px) scale(1); opacity: 0;}
}

#steam2 {
-webkit-animation: steam2 4s ease-out 0.5s infinite;
animation: steam2 4s ease-out 0.5s infinite;
}

#steam4 {
-webkit-animation: steam2 4s ease-out 1.5s infinite;
animation: steam2 4s ease-out 1.5s infinite;
}

@-webkit-keyframes steam2 {
0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 0.2;}
100% {transform: translateY(-200px) translateX(20px) scale(1); opacity: 0;}
}

@keyframes steam2 {
0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 0.2;}
100% {transform: translateY(-200px) translateX(20px) scale(1); opacity: 0;}
}

#cup {
z-index: 1;
}

#cup-body {
position: absolute;
height: 200px;
width: 300px;
border-radius: 0 0 150px 150px;
background-color: #fff;
margin: auto;
display: inline-block;
overflow: hidden;
z-index: 1;
}

#cup-shade {
position: relative;
height: 300px;
width: 200px;
background-color: #F3F3F3;
display: inline-block;
margin-left: 42%;
margin-top: -3px;
transform: rotate(50deg);
z-index: 1;
}

#cup-handle {
position: relative;
height: 75px;
width: 80px;
border-radius: 0 150px 150px 0;
border: 15px solid #F3F3F3;
margin-bottom: 95px;
margin-left: 250px;
display: inline-block;
z-index: 0;
}

#saucer {
position: absolute;
height: 30px;
width: 300px;
border-radius: 0 0 100px 100px;
background-color: #F9F9F9;
margin-top: -32px;
margin-left: 5px;
z-index: 2;
}

#shadow {
height: 10px;
width: 300px;
border-radius: 50%;
margin-top: -5px;
margin-left: 6px;
background-color: #ae51b1;
}
Binary file added Art/Alexandra2888/cup.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions Art/Alexandra2888/cup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coffee Cup</title>
<link href="./cup.css" rel="stylesheet" />
</head>
<body>
<div id="container">
<div class="steam" id="steam1"> </div>
<div class="steam" id="steam2"> </div>
<div class="steam" id="steam3"> </div>
<div class="steam" id="steam4"> </div>

<div id="cup">
<div id="cup-body">
<div id="cup-shade"></div>
</div>
<div id="cup-handle"></div>
</div>

<div id="saucer"></div>

<div id="shadow"></div>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ let cards = [
imageLink: './Art/Alexandra2888/fan.gif',
author: 'Alexandra2888',
githubLink: 'https://github.com/Alexandra2888'
},
{
artName: 'Coffe Cup',
pageLink: './Art/Alexandra2888/cup.html',
imageLink: './Art/Alexandra2888/cup.gif',
author: 'Alexandra2888',
githubLink: 'https://github.com/Alexandra2888'
}
];

Expand Down

0 comments on commit 8e4b00f

Please sign in to comment.