|
|
Line 4: |
Line 4: |
| | | |
| <style> | | <style> |
| + | /* Three columns side by side */ |
| + | .column { |
| + | float: left; |
| + | width: 33.3%; |
| + | margin-bottom: 16px; |
| + | padding: 0 8px; |
| + | } |
| | | |
− | @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic); | + | /* Display the columns below each other instead of side by side on small screens */ |
| + | @media screen and (max-width: 650px) { |
| + | .column { |
| + | width: 100%; |
| + | display: block; |
| + | } |
| + | } |
| | | |
− | body {
| + | /* Add some shadows to create a card effect */ |
− | font-family: 'Source Sans Pro', sans-serif; | + | .card { |
− | line-height: 1.5;
| + | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); |
− | color: #323232;
| + | |
− | font-size: 15px;
| + | |
− | font-weight: 400;
| + | |
− | text-rendering: optimizeLegibility;
| + | |
− | -webkit-font-smoothing: antialiased;
| + | |
− | -moz-font-smoothing: antialiased;
| + | |
| } | | } |
− | .heading-title { | + | |
− | margin-bottom: 100px; | + | /* Some left and right padding inside the container */ |
| + | .container { |
| + | padding: 0 16px; |
| } | | } |
− | .text-center {
| + | |
− | text-align: center;
| + | /* Clear floats */ |
− | }
| + | .container::after, .row::after { |
− | .heading-title h3 { | + | content: ""; |
− | margin-bottom: 0;
| + | clear: both; |
− | letter-spacing: 2px;
| + | display: table; |
− | font-weight: normal;
| + | |
− | }
| + | |
− | .p-top-30 {
| + | |
− | padding-top: 30px;
| + | |
− | }
| + | |
− | .half-txt {
| + | |
− | width: 60%; | + | |
− | margin: 0 auto; | + | |
− | display: inline-block; | + | |
− | line-height: 25px;
| + | |
− | color: #7e7e7e;
| + | |
− | }
| + | |
− | .text-uppercase {
| + | |
− | text-transform: uppercase;
| + | |
| } | | } |
| | | |
− | .team-member, .team-member .team-img { | + | .title { |
− | position: relative; | + | color: grey; |
− | }
| + | |
− | .team-member {
| + | |
− | overflow: hidden;
| + | |
− | }
| + | |
− | .team-member, .team-member .team-img {
| + | |
− | position: relative;
| + | |
| } | | } |
| | | |
− | .team-hover { | + | .button { |
− | position: absolute; | + | border: none; |
− | top: 0; | + | outline: 0; |
− | left: 0; | + | display: inline-block; |
− | bottom: 0; | + | padding: 8px; |
− | right: 0; | + | color: white; |
− | margin: 0;
| + | background-color: #000; |
− | border: 20px solid rgba(0, 0, 0, 0.1);
| + | |
− | background-color: rgba(255, 255, 255, 0.90); | + | |
− | opacity: 0;
| + | |
− | -webkit-transition: all 0.3s;
| + | |
− | transition: all 0.3s;
| + | |
− | }
| + | |
− | .team-member:hover .team-hover .desk {
| + | |
− | top: 35%;
| + | |
− | }
| + | |
− | .team-member:hover .team-hover, .team-member:hover .team-hover .desk, .team-member:hover .team-hover .s-link {
| + | |
− | opacity: 1;
| + | |
− | }
| + | |
− | .team-hover .desk {
| + | |
− | position: absolute;
| + | |
− | top: 0%;
| + | |
− | width: 100%;
| + | |
− | opacity: 0;
| + | |
− | -webkit-transform: translateY(-55%);
| + | |
− | -ms-transform: translateY(-55%);
| + | |
− | transform: translateY(-55%);
| + | |
− | -webkit-transition: all 0.3s 0.2s;
| + | |
− | transition: all 0.3s 0.2s;
| + | |
− | padding: 0 20px;
| + | |
− | }
| + | |
− | .desk, .desk h4, .team-hover .s-link a {
| + | |
| text-align: center; | | text-align: center; |
− | color: #222; | + | cursor: pointer; |
− | }
| + | |
− | .team-member:hover .team-hover .s-link {
| + | |
− | bottom: 10%;
| + | |
− | }
| + | |
− | .team-member:hover .team-hover, .team-member:hover .team-hover .desk, .team-member:hover .team-hover .s-link {
| + | |
− | opacity: 1;
| + | |
− | }
| + | |
− | .team-hover .s-link {
| + | |
− | position: absolute;
| + | |
− | bottom: 0;
| + | |
| width: 100%; | | width: 100%; |
− | opacity: 0;
| |
− | text-align: center;
| |
− | -webkit-transform: translateY(45%);
| |
− | -ms-transform: translateY(45%);
| |
− | transform: translateY(45%);
| |
− | -webkit-transition: all 0.3s 0.2s;
| |
− | transition: all 0.3s 0.2s;
| |
− | font-size: 35px;
| |
| } | | } |
− | .desk, .desk h4, .team-hover .s-link a { | + | |
− | text-align: center; | + | .button:hover { |
− | color: #222;
| + | background-color: #555; |
| } | | } |
− | .team-member .s-link a {
| |
− | margin: 0 10px;
| |
− | color: #333;
| |
− | font-size: 16px;
| |
− | }
| |
− | .team-title {
| |
− | position: static;
| |
− | padding: 20px 0;
| |
− | display: inline-block;
| |
− | letter-spacing: 2px;
| |
− | width: 100%;
| |
− | }
| |
− | .team-title h5 {
| |
− | margin-bottom: 0px;
| |
− | display: block;
| |
− | text-transform: uppercase;
| |
− | }
| |
− | .team-title span {
| |
− | font-size: 12px;
| |
− | text-transform: uppercase;
| |
− | color: #a5a5a5;
| |
− | letter-spacing: 1px;
| |
− | }
| |
− |
| |
| | | |
| </style> | | </style> |
Line 142: |
Line 64: |
| | | |
| <body> | | <body> |
− | <div class="container">
| + | <div class="row"> |
− | <div class="row">
| + | <div class="column"> |
− | <div class="heading-title text-center">
| + | <div class="card"> |
− | <h3 class="text-uppercase">Our professionals </h3>
| + | <img src="img1.jpg" alt="Jane" style="width:100%"> |
− | <p class="p-top-30 half-txt">Nam pulvinar vitae neque et porttitor. Praesent sed nisi eleifend. Nam pulvinar vitae neque et porttitor. Praesent sed nisi eleifend. </p>
| + | <div class="container"> |
− | </div>
| + | <h2>Jane Doe</h2> |
− | | + | <p class="title">CEO & Founder</p> |
− | <div class="col-md-4 col-sm-4">
| + | <p>Some text that describes me lorem ipsum ipsum lorem.</p> |
− | <div class="team-member">
| + | <p>example@example.com</p> |
− | <div class="team-img">
| + | <p><button class="button">Contact</button></p> |
− | <img src="https://image.freepik.com/free-photo/man-standing-with-a-black-t-shirt_1187-1045.jpg" alt="team member" class="img-responsive">
| + | </div> |
− | </div>
| + | </div> |
− | <div class="team-hover">
| + | </div> |
− | <div class="desk">
| + | |
− | <h4>Hi There !</h4>
| + | |
− | <p>I love to introduce myself as a hardcore Web Designer.</p>
| + | |
− | </div>
| + | |
− | <div class="s-link">
| + | |
− | <a href="#"><i class="fa fa-facebook"></i></a>
| + | |
− | <a href="#"><i class="fa fa-twitter"></i></a>
| + | |
− | <a href="#"><i class="fa fa-google-plus"></i></a>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | <div class="team-title">
| + | |
− | <h5>Martin Smith</h5>
| + | |
− | <span>founder & ceo</span>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | <div class="col-md-4 col-sm-4">
| + | |
− | <div class="team-member">
| + | |
− | <div class="team-img">
| + | |
− | <img src="https://image.freepik.com/free-photo/elegant-man-with-thumbs-up_1149-1595.jpg" alt="team member" class="img-responsive">
| + | |
− | </div>
| + | |
− | <div class="team-hover">
| + | |
− | <div class="desk">
| + | |
− | <h4>Hello World</h4>
| + | |
− | <p>I love to introduce myself as a hardcore Web Designer.</p>
| + | |
− | </div>
| + | |
− | <div class="s-link">
| + | |
− | <a href="#"><i class="fa fa-facebook"></i></a>
| + | |
− | <a href="#"><i class="fa fa-twitter"></i></a>
| + | |
− | <a href="#"><i class="fa fa-google-plus"></i></a>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | <div class="team-title">
| + | |
− | <h5>Franklin Harbet</h5>
| + | |
− | <span>HR Manager</span>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | <div class="col-md-4 col-sm-4">
| + | |
− | <div class="team-member">
| + | |
− | <div class="team-img">
| + | |
− | <img src="https://image.freepik.com/free-photo/well-dressed-executive-with-crossed-arms_1098-3930.jpg" alt="team member" class="img-responsive">
| + | |
− | </div>
| + | |
− | <div class="team-hover">
| + | |
− | <div class="desk">
| + | |
− | <h4>I love to design</h4>
| + | |
− | <p>I love to introduce myself as a hardcore Web Designer.</p>
| + | |
− | </div>
| + | |
− | <div class="s-link">
| + | |
− | <a href="#"><i class="fa fa-facebook"></i></a>
| + | |
− | <a href="#"><i class="fa fa-twitter"></i></a>
| + | |
− | <a href="#"><i class="fa fa-google-plus"></i></a>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | <div class="team-title">
| + | |
− | <h5>Linda Anderson</h5>
| + | |
− | <span>Marketing Manager</span>
| + | |
− | </div>
| + | |
− | </div>
| + | |
| | | |
− | </div>
| + | <div class="column"> |
| + | <div class="card"> |
| + | <img src="img2.jpg" alt="Mike" style="width:100%"> |
| + | <div class="container"> |
| + | <h2>Mike Ross</h2> |
| + | <p class="title">Art Director</p> |
| + | <p>Some text that describes me lorem ipsum ipsum lorem.</p> |
| + | <p>example@example.com</p> |
| + | <p><button class="button">Contact</button></p> |
| + | </div> |
| + | </div> |
| + | </div> |
| | | |
− | </div>
| + | <div class="column"> |
| + | <div class="card"> |
| + | <img src="img3.jpg" alt="John" style="width:100%"> |
| + | <div class="container"> |
| + | <h2>John Doe</h2> |
| + | <p class="title">Designer</p> |
| + | <p>Some text that describes me lorem ipsum ipsum lorem.</p> |
| + | <p>example@example.com</p> |
| + | <p><button class="button">Contact</button></p> |
| + | </div> |
| + | </div> |
| + | </div> |
| + | </div> |
| </body> | | </body> |
| | | |