"air card"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <body> <div class="cards_wrapper"> <div class="card qr-theme"> <div class="card_heading"> <div class="card_logo"> <img src="http://logok.org/wp-content/uploads/2015/03/Qatar-Airways-logo-logotype-1024x768.png" class="qatar"> </div> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/281813/SIN.jpg" /> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <h2>Boarding Pass</h2> <div class="inner"></div> </div> <div class="card_trip"> <div class="trip_from"> <h1>MIA</h1> <h2>Miami</h2> </div> <div class="trip_icon"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/553328/From.png" /> </div> <div class="trip_to"> <h1>SIN</h1> <h2>Singapore</h2> </div> </div> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <div class="card_flight_details"> <div class="card_seating"> <div class="seating_passenger"> <h2>Passenger</h2> <h3>Deven Blackburn</h3> </div> <div class="seating_passenger_dos"> <h2>Passenger</h2> <h3>Leonardo Restrepo</h3> </div> <div class="seating_seat"> <h2>Seat</h2> <h3>1A/1B</h3> </div> </div> <div class="card_details"> <div class="details_flight"> <h2>Depart on</h2> <h3>22 April, 16</h3> </div> <div class="details_date"> <h2>Depart at</h2> <h3>20:30 pm</h3> </div> <div class="details_time"> <h2>Departs in</h2> <h3 class="countdown">----</h3> </div> </div> <div class="card_details_continued"> <div class="details_flight"> <h2>Flight</h2> <h3>QR778</h3> </div> <div class="details_date"> <h2>Confirmation </h2> <h3>b1ty45</h3> </div> <div class="details_time"> <h2>Gate</h2> <h3>b12</h3> </div> </div> </div> </div> <div class="card ta-theme"> <div class="card_heading"> <div class="card_logo"> <img src="http://logonoid.com/images/tigerair-logo.png" class="tigerair"> </div> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/281813/pen.jpg"/> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <h2>Boarding Pass</h2> </div> <div class="card_trip"> <div class="trip_from"> <h1>SIN</h1> <h2>Singpaore</h2> </div> <div class="trip_icon"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/553328/From.png" /> </div> <div class="trip_to"> <h1>PEN</h1> <h2>Penang</h2> </div> </div> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <div class="card_seating"> <div class="seating_passenger"> <h2>Passenger</h2> <h3>Deven Blackburn</h3> </div> <div class="seating_passenger_dos"> <h2>Passenger</h2> <h3>Leonardo Restrepo</h3> </div> <div class="seating_seat"> <h2>Seat</h2> <h3>1A/1B</h3> </div> </div> <div class="card_details"> <div class="details_flight"> <h2>Flight</h2> <h3>TR2428</h3> </div> <div class="details_date"> <h2>Depart</h2> <h3>26 April, 16</h3> </div> <div class="details_time"> <h2>Depart</h2> <h3>9:05 am</h3> </div> </div> </div> <div class="card aa-theme"> <div class="card_heading"> <div class="card_logo"> <img src="https://4.bp.blogspot.com/-gVKBD3pry7w/VKe0vBWXK3I/AAAAAAAABEk/O8h6942ZnCI/s280/logo%2BAir%2BAsia.png" class="airasia"> </div> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/281813/kul.jpg" /> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <h2>Boarding Pass</h2> </div> <div class="card_trip"> <div class="trip_from"> <h1>KUL</h1> <h2>Kuala Lumpur</h2> </div> <div class="trip_icon"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/553328/From.png" /> </div> <div class="trip_to"> <h1>HKG</h1> <h2>Hong Kong</h2> </div> </div> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <div class="card_seating"> <div class="seating_passenger"> <h2>Passenger</h2> <h3>Deven Blackburn</h3> </div> <div class="seating_passenger_dos"> <h2>Passenger</h2> <h3>Leonardo Restrepo</h3> </div> <div class="seating_seat"> <h2>Seat</h2> <h3>1A/1B</h3> </div> </div> <div class="card_details"> <div class="details_flight"> <h2>Flight</h2> <h3>AK134</h3> </div> <div class="details_date"> <h2>Depart</h2> <h3>1 May, 16</h3> </div> <div class="details_time"> <h2>Depart</h2> <h3>8:45 am</h3> </div> </div> </div> <div class="card ta-theme"> <div class="card_heading"> <div class="card_logo"> <img src="http://logonoid.com/images/tigerair-logo.png" class="tigerair"> </div> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/281813/hkg.jpg" /> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <h2>Boarding Pass</h2> </div> <div class="card_trip"> <div class="trip_from"> <h1>HKG</h1> <h2>Hong Kong</h2> </div> <div class="trip_icon"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/553328/From.png" /> </div> <div class="trip_to"> <h1>SIN</h1> <h2>Singapore</h2> </div> </div> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <div class="card_seating"> <div class="seating_passenger"> <h2>Passenger</h2> <h3>Deven Blackburn</h3> </div> <div class="seating_passenger_dos"> <h2>Passenger</h2> <h3>Leonardo Restrepo</h3> </div> <div class="seating_seat"> <h2>Seat</h2> <h3>1A/1B</h3> </div> </div> <div class="card_details"> <div class="details_flight"> <h2>Flight</h2> <h3>TR2063</h3> </div> <div class="details_date"> <h2>Depart</h2> <h3>5 May, 16</h3> </div> <div class="details_time"> <h2>Depart</h2> <h3>10:55 am</h3> </div> </div> </div> <div class="card qr-theme"> <div class="card_heading"> <div class="card_logo"> <img src="http://logok.org/wp-content/uploads/2015/03/Qatar-Airways-logo-logotype-1024x768.png" class="qatar"> </div> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/281813/mia.jpg" /> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <h2>Boarding Pass</h2> </div> <div class="card_trip"> <div class="trip_from"> <h1>SIN</h1> <h2>Singpaore</h2> </div> <div class="trip_icon"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/553328/From.png" /> </div> <div class="trip_to"> <h1>MIA</h1> <h2>Miami</h2> </div> </div> <div class="card_divider"> <div class="divider_left divider_hole"> </div> <div class="divider"> </div> <div class="divider_right divider_hole"> </div> </div> <div class="card_seating"> <div class="seating_passenger"> <h2>Passenger</h2> <h3>Deven Blackburn</h3> </div> <div class="seating_passenger_dos"> <h2>Passenger</h2> <h3>Leonardo Restrepo</h3> </div> <div class="seating_seat"> <h2>Seat</h2> <h3>1A/1B</h3> </div> </div> <div class="card_details"> <div class="details_flight"> <h2>Flight</h2> <h3>QR945</h3> </div> <div class="details_date"> <h2>Depart</h2> <h3>6 May, 16</h3> </div> <div class="details_time"> <h2>Depart</h2> <h3>2:25 am</h3> </div> </div> </div> </div> </body> <script> // ----- On render ----- $(function() { var currentTime = moment().unix(); // Timestamp - Sun, 21 Apr 2013 13:00:00 GMT var eventTime = moment('22-04-2017 20:30:00', 'DD-MM-YYYY HH:mm:ss').unix() + 100000; // Timestamp - Sun, 21 Apr 2013 12:30:00 GMT var diffTime = (eventTime - currentTime); var duration = moment.duration(diffTime * 1000, 'milliseconds'); var interval = 1000; setInterval(function() { duration = moment.duration(duration - interval, 'milliseconds'); var text = ''; if (duration.days() > 0) { var text = text + duration.days() + 'd '; } else if (duration.days() == 1) { var text = text + '1d'; } text = text + duration.hours() + ":" + duration.minutes() + ":" + duration.seconds(); $('.countdown').text(text); }, interval); var myx; var myy; var oldx; var oldy; //check for mobile and accerlerometer support if (window.DeviceOrientationEvent) { //wireup the event window.addEventListener('deviceorientation', function(e) { //grab the accelerometer values myx = Math.floor(e.gamma / 3); //exaggerate the effect myy = Math.floor(e.beta / 3); /*if (oldtarget.x != thetarget.x || oldtarget.y != thetarget.y) {*/ if (myx != parseInt($('#oldX').text()) || myy != parseInt($('#oldY').text())) { sparkle(); } $('#oldX').text(myx) $('#oldY').text(myy) /*}*/ }, false); } sparkle(); function sparkle() { $.each($('.sparkler>.square'), function(i, square) { $(square).css('background-color', getColor()); }) } function generateSparkles() { var container = $('.sparkler'); var i = 0; for (i = 0; i < 64; i = i + 1) { var spark = $('<div class="square"></div>'); spark.css('background-color', getColor()); container.append(spark) } } function getColor() { var red = Math.floor(Math.random()*(255-200+1)+200) var green = Math.floor(Math.random()*(225-175+1)+175); var blue = Math.floor(Math.random()*(55-0+1)+0); return 'rgb('+ red + ',' + green +',' + blue + ')'; } generateSparkles(); }); </script>
body { background: #c5d8e6; font-family: helvetica, arial; text-transform: uppercase; box-sizing: border-box; } h1 { color: #ccc; font-weight: 200; font-size: 2.1em; margin: 0px; } h2 { color: #ccc; opacity: .5; font-weight: 100; font-size: .9em; margin: 0px; } h3 { color: #ccc; opacity: .8; font-weight: 100; font-size: .9em; margin: 0px; } .cards_wrapper { text-align: center; padding-top: 20px; } .card { width: 320px; border-radius: 20px; background: #4d1532; display: inline-block; margin: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); } .card img { width: 100%; } .card .inner { position: absolute; width: 320px; height: 100%; z-index: 1; opacity: 0.1; background-image: url(https://puu.sh/rE78K/33424202f7.svg); background-size: 130px; background-repeat: repeat-y; background-position: 0px 0px; background-repeat: repeat-x; animation: animatedBackground 40s linear infinite; } @keyframes animatedBackground { from { background-position: 100% -10px; } to { background-position: 0% -10px; } } .card_logo { background: #ffffff; border-radius: 20px 20px 0 0; } .card_logo img.qatar { margin: -50px; text-align: center; width: 70%; } .card_logo img.tigerair { margin-top: 10px; text-align: center; width: 45%; } .card_logo img.airasia { margin: -10px; text-align: center; width: 35%; } .card_heading h2 { padding-top: 20px; text-align: center; } .card_thumbnail { min-height: 150px; margin-top: 10px; } .card_thumbnail img { width: 100%; height: auto; } .card_trip { text-align: center; width: 85%; margin: 30px auto; display: flex; height: 72px; } .card_trip div { display: inline-block; height: 100%; vertical-align: middle; } .card_trip div h1 { margin: 0px; } .card_trip div h2 { margin: 0px; letter-spacing: 2px; } .card_trip div.trip_from { text-align: left; width: 35%; } .card_trip div.trip_from h2 { padding-left: 2px; } .card_trip div.trip_icon { width: 30%; } .card_trip div.trip_icon img { padding-top: 20px; opacity: 1; width: 25px; } .card_trip div.trip_to { text-align: right; width: 35%; } .card_trip div.trip_to h2 { padding-right: 3px; } .card_departure { margin: -20px auto 32px; } .card_departure div { color: #ccc; } .card_divider { position: relative; width: 100%; } .card_divider .divider_left { left: -15px; } .card_divider .divider_hole { position: absolute; top: -12px; padding: 0px; height: 25px; width: 25px; border-radius: 100%; background: #c5d8e6; } .card_divider .divider { width: 85%; margin: auto; height: 2px; background: linear-gradient(to right, #c5d8e6 50%, transparent 50%); background-size: 10px 8px, 100% 2px; opacity: .2; } .card_divider .divider_right { right: -15px; } .card_flight_details h2 { font-size: .7em; } .card_flight_details .card_seating { width: 85%; margin: 30px auto; display: flex; } .card_flight_details .card_seating div { display: inline-block; width: 50%; } .card_flight_details .card_seating div.seating_passenger { text-align: left; } .card_flight_details .card_seating div.seating_passenger_dos { text-align: left; padding-left: 32px; } .card_flight_details .card_seating div.seating_seat { text-align: right; } .card_flight_details .card_details { width: 85%; margin: 30px auto; display: flex; } .card_flight_details .card_details div { display: inline-block; width: 33%; } .card_flight_details .card_details div.details_flight { text-align: left; } .card_flight_details .card_details div.details_date { text-align: center; } .card_flight_details .card_details div.details_time { text-align: right; } .card_flight_details .card_details_continued { width: 85%; margin: 30px auto; display: flex; padding-bottom: 30px; } .card_flight_details .card_details_continued div { display: inline-block; width: 33%; } .card_flight_details .card_details_continued div.details_flight { text-align: left; } .card_flight_details .card_details_continued div.details_date { text-align: center; } .card_flight_details .card_details_continued div.details_time { text-align: right; } .card .card_seating { width: 85%; margin: 30px auto; display: flex; } .card .card_seating div { display: inline-block; width: 50%; } .card .card_seating div.seating_passenger { text-align: left; } .card .card_seating div.seating_passenger_dos { text-align: left; padding-left: 32px; } .card .card_seating div.seating_seat { text-align: right; } .card .card_details { width: 85%; margin: 30px auto; display: flex; } .card .card_details div { display: inline-block; width: 33%; } .card .card_details div.details_flight { text-align: left; } .card .card_details div.details_date { text-align: center; } .card .card_details div.details_time { text-align: right; } .card .card_details_continued { width: 85%; margin: 30px auto; display: flex; padding-bottom: 30px; } .card .card_details_continued div { display: inline-block; width: 33%; } .card .card_details_continued div.details_flight { text-align: left; } .card .card_details_continued div.details_date { text-align: center; } .card .card_details_continued div.details_time { text-align: right; } .ta-theme { background: #b26a07; } .ta-theme .card_logo { border-top: 5px solid #F69E25; } .aa-theme { background: #961a14; } .aa-theme .card_logo { border-top: 5px solid #DA251D; } .qr-theme { background: #72274D; } .qr-theme .card_logo { border-top: 5px solid #72274D; }

Related: See More


Questions / Comments:

You are a perfect legend, my brother is a terrific thing

ShadowHydr4 () - 6 years ago - Reply 0