A Pen by Hugo

Thumbnail
This awesome code was written by hugofovargue, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright hugofovargue ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Hugo</title>
  
  
  <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>

      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div id="container">
  <div class="infoContainer">
    <i class="fa fa-angle-left navItem" aria-hidden="true"></i>
    <span class="navItem navCenter">1/25</span>
    <i class="fa fa-angle-right navItem" aria-hidden="true"></i>
  </div>
  <div class="cardContainer"> 
    <div class="name">de_cobblestone</div>
    <div class="imageContainer">
      <img class="imageMain" src="http://oi64.tinypic.com/301eiqs.jpg"/>
<!--       <img class="imageOverlay" src="http://via.placeholder.com/450x450"/> -->
    </div>
  </div>
  <form class="formContainer">
    <input placeholder="Type answer here..."type="text"/>
    <input type="submit" value="Submit"/>
  </form>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/hugofovargue/a-pen-by-hugo-bRKyQR */
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Raleway');

*{margin: 0; padding: 0; font-family: Open Sans}

input {
  display: block;
  margin: 0 auto;
}

input[type="text"] {
  border: none;
  border-bottom: solid 1px grey;
  background: none;
  font-size: 1.6em;
  font-family: Open Sans;
  text-align: center;
}

input[type="submit"] {
  background: none;
  background-color: #1FA2FF;
  border: none;
  border-radius: 0.2em;
  color: white;
  font-size: 1em;
  font-family: Open Sans;
  padding: 0.4em 4em 0.4em 4em;
  margin-top: 1em;
}

input[type="text"]:focus {outline:none;}
input[type="submit"]:focus {outline:none;}
input[placeholder]:focus::-webkit-input-placeholder {
  opacity: 0;
}
input[type="submit"]:hover {
  transition: background-color 2s ease-out;
  background-color: black;
  background: linear-gradient(to right, #1fa2ff, #12d8fa, #a6ffcb);
}

#container {
  display: block;
  width: 450px;
  margin: 0 auto;
}

.infoContainer {
  display: flex;
  height: 2.5em;
  width: 100px;
  margin: 0 auto;
/*   border: solid 1px red; */
}

.navItem {
  flex-grow: 1;
  text-align: center;
  line-height: 2.5em;
/*   border: 1px solid black; */

}

.cardContainer {
  background: linear-gradient(to bottom, #24c6dc, #514a9d);
  border-radius: 25px;
}

.name {
  display: block;
  width: 450px;
  height: 2em;
  margin: 0 auto;
  text-align: center;
  font-family: 'Open Sans';
  font-size: 1em;
  line-height: 2em;
  color: white;
}

.imageContainer {
  position: relative;
}

.imageMain { 
  border-radius: 0 0 25px 25px;
  background-image: radial-gradient(circle at center, #141E30, #243B55);
}

.imageOverlay {
  position: absolute;
  top: 0px;
  border-radius: 25px;
}

.formContainer {
  padding: 1em;
/*   border: solid 1px red; */
}

Comments