HTMLify
style.css
Views: 5 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | * { padding: 0; margin: 0; box-sizing: border-box; font-family: sans-serif; } .hero { width: 100%; height: 100vh; background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3)); position: relative; padding: 0 5%; display: flex; justify-content: center; align-items: center; } .content { text-align: center; } .content h1 { font-size: 160px; color: #fff; font-weight: 600; transition: 0.5s; } .content h1:hover { -webkit-text-stroke: 2px white; color: transparent; } .content a { text-decoration: none; display: inline-block; color: #fff; font-size: 24px; border: 2px solid white; padding: 14px 50px; margin-top: 20px; transition: 0.5s; } .content a:hover { background: #fff; color: #000; } .back-video { position: absolute; right: 0; bottom: 0; z-index: -1; } @media (min-aspect-ratio: 16/9) { .back-video { width: 100%; height: auto; } } @media (max-aspect-ratio: 16/9) { .back-video { width: auto; height: 100%; } } |