Skip to content

Instantly share code, notes, and snippets.

@yingmonster123
Last active May 24, 2022 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yingmonster123/cb7efefb22a91378710c950ed97d7886 to your computer and use it in GitHub Desktop.
Save yingmonster123/cb7efefb22a91378710c950ed97d7886 to your computer and use it in GitHub Desktop.
Namecard
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>nameCard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Travel Guide, Login form web template,Flat Pricing tables,Flat Drop downs Sign up Web Templates, Flat Web Templates, Login signup
Responsive web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz:200,300,400,700" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Text+Me+One" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">
<script src="script.js"></script>
</head>
<body>
<div class="main-section">
<div class="heading">
<h1> profile </h1>
</div>
<div class="child-main">
<div class="child-left">
<img src="images/side.jpg" alt="image">
</div>
<div class="child-right">
<p>Have more than 6 years of Digital Proudct Design experience.</p>
<br />
<p>Passionate about learning technology
and exploring new possibilities.
Believe a well-design UI/UX is the key
to a successful product.
</p>
<br />
<div class="button_container">
<span>
<button id="button1" onclick="flip()">flip</button>
</span>
<span>
<button id="button2" ></button>
</span>
<span>
<button id="button3" ></button>
</span>
<span>
<button id="button4" ></button>
</span>
<br />
<span>
<button id="button5" ></button>
</span>
</div>
<br />
<div class="footer">
<span>
<img src="images/ins.jpg" alt="image" >
<img src="images/facebook.png" alt="image" >
<img src="images/twitter.png" alt="image" >
<p style="font-size: 10px; display:inline-block;"> Califonia,US</p>
</span>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html>
var i = 0;
function flip() {
if (!i ) {
i = 1;
document.getElementsByClassName("child-left").innerHTML = `
<img src="" alt="image"> `;
} else {
i = 0;
document.getElementsByClassName("child-left").innerHTML = `
<img src="images/side.jpg" alt="image"> `;
}
}
section {
display: block;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
a {
text-decoration: none;
}
img {
max-width: 100%;
}
body {
background-size: cover;
background-position: 50% 50%;
font-family: 'Open Sans', sans-serif;
margin:5.5em 0;
}
.heading {
text-align: center;
font-size: 40px;
text-transform: uppercase;
}
h1 {
color: #fff;
font-size: 47px;
letter-spacing: 6px;
font-family: 'Yanone Kaffeesatz', sans-serif;
font-weight: 600;
}
.child-main {
width: 55%;
margin: 80px auto;
background: #fff;
padding: 4em 2em;
}
.child-left {
width: 25%;
float: left;
margin-left: 45px;
}
.child-left > img {
border-radius:100%;
overflow:hidden;
}
.child-right {
float: right;
width: 60%;
margin-right: 45px;
}
button {
display: inline-block;
border-radius: 25px;
background-color: rgb(178, 217, 243);
border: none;
color: #FFFFFF;
text-align: center;
font-size: 10px;
padding: 15px 12px;
width: 70px;
height: 25px ;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
button > span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
font-size: 5px ;
}
span {
margin-right: 20px;
}
.footer >span >img {
width:25px ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment