_hero.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*--------------------------------------------------------------
  2. # Hero Section
  3. --------------------------------------------------------------*/
  4. #hero {
  5. width: 100%;
  6. height: 100vh;
  7. background: linear-gradient(rgba(darken($primary, 15), .5), rgba(darken($primary, 15), .2)), url("../img/hero-bg.jpg") top center;
  8. background-size: cover;
  9. position: relative;
  10. margin-bottom: -90px;
  11. .hero-container {
  12. position: absolute;
  13. bottom: 0;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. flex-direction: column;
  21. text-align: center;
  22. }
  23. h1 {
  24. margin: 0 0 10px 0;
  25. font-size: 64px;
  26. font-weight: 700;
  27. line-height: 56px;
  28. text-transform: uppercase;
  29. color: #fff;
  30. text-shadow: -1px 0 2px $secondary;
  31. }
  32. h2 {
  33. color: #fff;
  34. margin-bottom: 50px;
  35. font-size: 20px;
  36. text-transform: uppercase;
  37. font-weight: 700;
  38. text-shadow: -1px 0 2px $secondary;
  39. }
  40. .btn-get-started {
  41. font-size: 36px;
  42. display: inline-block;
  43. padding: 4px 0;
  44. border-radius: 50px;
  45. transition: 0.3s ease-in-out;
  46. margin: 10px;
  47. width: 64px;
  48. height: 64px;
  49. text-align: center;
  50. border: 2px solid #fff;
  51. color: #fff;
  52. &:hover {
  53. padding-top: 8px;
  54. background: rgba($white, .15);
  55. }
  56. }
  57. @media (min-width: 1024px) {
  58. background-attachment: fixed;
  59. }
  60. @media (max-width: 768px) {
  61. h1 {
  62. font-size: 28px;
  63. line-height: 36px;
  64. }
  65. h2 {
  66. font-size: 18px;
  67. line-height: 24px;
  68. margin-bottom: 30px;
  69. }
  70. }
  71. }