Travis Neilson, Splash Page Flexbox Test

Developer
Size
4,633 Kb
Views
12,144

How do I make an travis neilson, splash page flexbox test?

Originally taken from here: https://www.youtube.com/watch?v=jMW0bmrb2n4I thought the flexbox not working was due to a position: relative on the .cta class but turns out it wasn't at all... :-). What is a travis neilson, splash page flexbox test? How do you make a travis neilson, splash page flexbox test? This script and codes were developed by Chris Sargent on 29 November 2022, Tuesday.

Travis Neilson, Splash Page Flexbox Test Previews

Travis Neilson, Splash Page Flexbox Test - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Travis Neilson, Splash Page Flexbox Test </title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<html> <head> <meta charset="utf-8"/> <title>Title</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/> <link rel="stylesheet" href="css/main.css"/> </head> <body> <main><a class="cta" href="">Learn More Now <i class="ion-chevron-right"></i></a> <h1> <span>Good at </span><br/><span>business?</span></h1> </main> <div class="overlay"> <div class="modal"> <div class="close-btn"><i class="ion-close"></i></div> <div class="text-box"> <p class="lead">Business stuff in your inbox, all the time.</p> <p>Sign up for our newsletter to download this 200+ page secrets of business PDF!</p> </div> <div class="graphic"></div> <form> <input type="text" placeholder="Email Address"/> <input type="submit"/> </form> </div> </div> <script src="//use.typekit.net/fqw4vwp.js"></script> <script>try{Typekit.load();}catch(e){}</script> <script src="https://code.jquery.com/jquery-1.7.2.min.js"></script> <script src="js/app.js"></script> </body>
</html> <script src="js/index.js"></script>
</body>
</html>

Travis Neilson, Splash Page Flexbox Test - Script Codes CSS Codes

/* #Reset & Basics (Inspired by E. Meyers)
================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
/* #Basic Styles
================================================== */
body { background: #fff; font-size: 14px; font-family: "futura-pt",sans-serif; line-height: 1.6; color: #333; -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */ -webkit-text-size-adjust: 100%; }
form, input { font-family: "futura-pt",sans-serif; }
/* #Typography
================================================== */
h1, h2, h3, h4, h5, h6 { color: #111; font-weight: bold; font-family: "futura-pt-condensed",sans-serif; }
h1 { font-size: 60px; line-height: 1.1; }
h2 { font-size: 48px; line-height: 1.2; }
h3 { font-size: 36px; line-height: 1.3; }
h4 { font-size: 24px; line-height: 1.4; }
h5 { font-size: 21px; line-height: 1.5; }
h6 { font-size: 18px; line-height: 1.6; }
p { margin: 0 0 20px 0; }
em { font-style: italic; }
strong { font-weight: bold; }
hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
/* #Links
================================================== */
a { color: #333; text-decoration: underline; outline: 0; }
a:hover, a:focus { color: #000; }
body { background-image: url(../img/bg.jpg); background-size: cover; background-position: center; height: 100vh; display: flex; align-items: center; justify-content: center; }
main { margin-left: 200px; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; }
h1 { text-transform: uppercase; font-size: 120px; order: 0; } h1 span { color: #f8d902; display: inline-block; background: black; margin-bottom: 5px; padding: 0 0.2em; transition: all 100ms ease-in-out; }
.cta {
// position: relative; order: 1; display: inline-block; background: #f8d902; color: black; text-decoration: none; font-size: 30px; text-transform: uppercase; padding: 0 0.4em; transition: all 100ms ease-in-out; } .cta .ion-chevron-right { font-size: 0.8em; margin-left: 0.3em; } .cta:hover { color: #f8d902; background: black; } .cta:hover ~ h1 span { color: black; background: #f8d902; }
@media (max-width: 740px) { main { margin-left: 50px; } h1 { font-size: 80px; } .cta { font-size: 20px; } }
@media (max-width: 650px) { h1 { font-size: 60px; } .cta { font-size: 20px; } }
.overlay { position: absolute; background: rgba(248, 217, 2, 0.95); top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: all 300ms ease-in-out; } .overlay.is-open { opacity: 1; pointer-events: auto; } .overlay.is-open .modal { transform: translate(0px, 0px); }
.modal { transform: translate(0px, -100px); transition: all 500ms cubic-bezier(0.25, 0.35, 0, 1.74); max-width: 600px; background: white; padding: 30px; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4); position: relative; } .modal .close-btn { position: absolute; top: -40px; right: -40px; height: 30px; width: 30px; font-size: 30px; text-align: center; line-height: 30px; cursor: pointer; transition: all 100ms ease-in-out; } .modal .close-btn:hover { transform: scale(1.2); } .modal .text-box { max-width: 50%; } .modal .text-box .lead { color: black; font-size: 30px; line-height: 1.3; } .modal .text-box p { color: #999; font-size: 18px; } .modal .graphic { background: url(../img/presentation.png) bottom left; position: absolute; top: 0; right: 0; width: 256px; height: 280px; } .modal form { position: relative; z-index: 2; background: black; padding: 20px; margin: 60px -30px -30px; display: flex; } .modal form input { height: 60px; border: none; display: inline-block; padding: 0 30px; font-size: 18px; } .modal form input:focus { outline: none; box-shadow: 0px 0px 0px 2px #f8d902 inset; } .modal form input[type="text"] { flex: 1; } .modal form input[type="submit"] { background: #f8d902; margin-left: 10px; text-transform: uppercase; }
@media (max-width: 720px) { .modal { margin: 10px; } .modal .close-btn { right: 0; } }
@media (max-width: 580px) { .graphic { display: none; } .modal .text-box { max-width: 100%; } .modal form { flex-direction: column; } .modal form input[type="submit"] { margin: 0; } .modal form input[type="text"] { margin-bottom: 5px; } }

Travis Neilson, Splash Page Flexbox Test - Script Codes JS Codes

$(function() { $('.cta').click(function(){ $('.overlay').addClass('is-open'); return false; }); $('.close-btn').click(function(){ $('.overlay').removeClass('is-open') });
});
Travis Neilson, Splash Page Flexbox Test - Script Codes
Travis Neilson, Splash Page Flexbox Test - Script Codes
Home Page Home
Developer Chris Sargent
Username ChrisSargent
Uploaded November 29, 2022
Rating 3
Size 4,633 Kb
Views 12,144
Do you need developer help for Travis Neilson, Splash Page Flexbox Test?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Chris Sargent (ChrisSargent) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!