Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Magayaga authored Dec 6, 2021
1 parent 78c8424 commit 9858eec
Show file tree
Hide file tree
Showing 16 changed files with 844 additions and 0 deletions.
175 changes: 175 additions & 0 deletions 3D-Santa-Card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>3D Santa Card</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Parisienne&display=swap" rel="stylesheet">
<style>
*,
*:before,
*:after{
box-sizing: border-box;
padding: 0;
margin: 0;
}
body{
background-color: #000022;
}
.card{
height: 400px;
width: 570px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
cursor: pointer;
transition: 2s;
-webkit-perspective: 1200px;
perspective: 1200px;

}
.card:hover{
transform: rotate(-5deg);
}
.card:hover .outside{
transform: rotateY(-130deg);
}
.outside{
height: 100%;
width: 50%;
position: absolute;
left: 50.1%;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
transition: 2s;
transform-origin: left;
}
.front,.back{
height: 100%;
width: 100%;
position: absolute;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
/*hide backface in firefox*/
transform: rotateX(0deg);
}
.front{
background-color: #BE0F04;
z-index: 1;
}
.front:before{
content: "";
position: absolute;
background-color: #101010;
height: 80px;
width: 100%;
top: 240px;
}
.belt{
height: 120px;
width: 120px;
border: 20px solid #E5A037;
border-radius: 10px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 220px;
z-index: 1;
}
.belt:after{
content: "";
position: absolute;
width: 95px;
height: 18px;
background-color: #d6932e;
top: 31px;
right: 13px;
border-radius: 8px;
}
.mouth{
position: absolute;
background-color: #EFBEAB;
height: 50px ;
width: 80px;
z-index: 1;
border-radius: 0 0 50% 50%;
margin: auto;
left: 0;
right: 0;
top: 20px;
}
.beard{
background-color: #f5f5f5;
position: absolute;
width: 100%;
height: 180px;
border-radius: 0 0 50% 50%;
}
.beard:before,
.beard:after{
position: absolute;
content: "";
width: 130px;
height: 50px;
background-color: #f5f5f5;
box-shadow: 0 10px #d3d3d3;
border-radius: 0 0 50% 50%;
top: -0px;
z-index: 2;
}
.beard:before{
left: 13px;
}
.beard:after{
right: 13px;
}
.back{
background: linear-gradient(
to right,
#BE0F04 50%,
#7d0b03
);
transform: rotateY(180deg);
}
.inside{
height: 100%;
width: 50%;
position: absolute;
left: 50%;
background: linear-gradient(
to left,
#BE0F04 50%,
#7d0b03
);
font-family: 'Parisienne', cursive;
color: white;
font-size: 70px;
text-align: center;
line-height: 100px;
padding: 90px 10px;
box-shadow: 25px 25px 35px rgba(0,0,0,0.3);
}
.inside>p{
border-bottom: 10px dotted white;
}
</style>
</head>
<body>
<div class="card">
<div class="inside">
<p>Merry Christmas</p>
</div>
<div class="outside">
<div class="front">
<div class="belt"></div>
<div class="mouth"></div>
<div class="beard"></div>
</div>
<div class="back"></div>
</div>
</div>
</body>
</html>
34 changes: 34 additions & 0 deletions Birthday Card/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Birthday Card</title>
<!-- Google Font-->
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<div class="outside">
<div class="front">
<p>Happy Birthday</p>
<div class="cake">
<div class="top-layer"></div>
<div class="middle-layer"></div>
<div class="bottom-layer"></div>
<div class="candle"></div>
</div>
</div>
<div class="back"></div>
</div>
<div class="inside">
<p>Wishing you a very happy birthday filled with love and laughter</p>
<h1>&#127873;</h1>
</div>
</div>
</body>
</html>
141 changes: 141 additions & 0 deletions Birthday Card/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #fdbf00;
}
.card {
width: 640px;
height: 400px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
-webkit-perspective: 1200px;
perspective: 1200px;
transition: 1s;
}
.card:hover {
transform: rotate(-5deg);
}
.card:hover .outside {
transform: rotateY(-130deg);
}
.outside,
.inside {
height: 100%;
width: 50%;
position: absolute;
left: 50.1%;
}
.inside {
background: linear-gradient(to right, #e7e7e7, #ffffff 30%);
line-height: 3;
padding: 0 20px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
left: 50%;
}
.outside {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
z-index: 1;
transform-origin: left;
transition: 2s;
cursor: pointer;
}
.front,
.back {
height: 100%;
width: 100%;
position: absolute;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transform: rotateX(0deg);
}
.front {
background-color: #ffffff;
}
.back {
transform: rotateY(180deg);
background: linear-gradient(to left, #e7e7e7, #ffffff 30%);
}
.cake {
width: 100%;
position: absolute;
bottom: 30px;
}
.top-layer,
.middle-layer,
.bottom-layer {
height: 80px;
width: 240px;
background-repeat: repeat;
background-size: 60px 100px;
background-position: 28px 0;
background-image: linear-gradient(
transparent 50px,
#fedbab 50px,
#fedbab 60px,
transparent 60px
),
radial-gradient(circle at 30px 5px, #994c10 30px, #fcbf29 31px);
border-radius: 10px 10px 0 0;
position: relative;
margin: auto;
}
.middle-layer {
transform: scale(0.85);
top: 6px;
}
.top-layer {
transform: scale(0.7);
top: 26px;
}
.candle {
height: 45px;
width: 15px;
background: repeating-linear-gradient(
45deg,
#fd3018 0,
#fd3018 5px,
#ffa89e 5px,
#ffa89e 10px
);
position: absolute;
margin: auto;
left: 0;
right: 0;
bottom: 202px;
}
.candle:before {
content: "";
position: absolute;
height: 16px;
width: 16px;
background-color: #ffa500;
border-radius: 0 50% 50% 50%;
bottom: 48px;
transform: rotate(45deg);
left: -1px;
}
.outside p {
font-size: 23px;
text-transform: uppercase;
margin-top: 30px;
text-align: center;
letter-spacing: 6px;
color: #000046;
}
.inside h1 {
font-size: 120px;
line-height: 120px;
}
Binary file added Glass Effect/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions Glass Effect/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
Image credits:
https://unsplash.com/photos/Fun7Piqpoeo
-->
<!DOCTYPE html>
<html>
<head>
<title>Frosted Glass Effect</title>

<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap" rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">

<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<i class="fas fa-quote-right"></i>
<blockquote>
Morbi enim nunc faucibus a pellentesque sit amet porttitor eget dolor morbi non arcu risus quis varius quam quisque id diam vel quam elementum pulvinar
</blockquote>
<span class="author-name">Mark Smith</span>
</div>
</body>
</html>
Loading

0 comments on commit 9858eec

Please sign in to comment.