App.scss 2.65 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2 3 4 5 6 7 8 9 10 11 12 13
.app {

}

.container {
  max-width: 950px;
  margin: 0 auto;
}

.navbar {
  background: darken($color1, 8%);
  overflow: hidden;

Eugen Rochko's avatar
Eugen Rochko committed
14 15 16 17 18 19 20 21 22 23 24 25
  .brand {
    float: left;
    padding: 12px 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid $color4;
    color: $color2;
    line-height: 32px;
    font-weight: 500;
    font-size: 14px;
    cursor: default;
  }

Eugen Rochko's avatar
Eugen Rochko committed
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
  ul {
    list-style: none;
    float: right;

    li {
      display: inline-block;
      vertical-align: bottom;
    }

    a {
      display: block;
      color: $color3;
      text-decoration: none;
      padding: 12px 16px;
      padding-bottom: 10px;
      line-height: 32px;
      font-weight: 500;
      font-size: 14px;
      border-bottom: 2px solid transparent;
      transition: all 250ms linear;

      &:hover {
        color: $color2;
        border-bottom-color: $color4;
        transition: all 100ms linear;
      }
    }
  }
}

.github {
  span {
Eugen Rochko's avatar
Eugen Rochko committed
58 59
    display: inline-block;
    vertical-align: bottom;
Eugen Rochko's avatar
Eugen Rochko committed
60 61 62 63 64 65
    box-sizing: border-box;
    background: darken($color1, 8%) url('/github.png') no-repeat 0 0;
    width: 32px;
    height: 32px;
    background-blend-mode: lighten;
    opacity: 0.5;
Eugen Rochko's avatar
Eugen Rochko committed
66
    margin-left: 5px;
Eugen Rochko's avatar
Eugen Rochko committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
  }

  &:hover {
    span {
      opacity: 0.8;
    }
  }
}

.intro {
  text-align: center;
  padding-top: 115px;

  h1 {
    padding-top: 60px;
    font-size: 26px;
    font-weight: 400;
Eugen Rochko's avatar
Eugen Rochko committed
84 85
    margin-bottom: 30px;
    color: $color3;
Eugen Rochko's avatar
Eugen Rochko committed
86 87 88 89 90 91

    strong {
      font-weight: 500;
      color: $color2;
    }
  }
Eugen Rochko's avatar
Eugen Rochko committed
92 93 94 95 96

  p {
    font-size: 16px;
    line-height: 20px;
  }
Eugen Rochko's avatar
Eugen Rochko committed
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
}

.hero {
  background: darken($color1, 4%);
  padding: 30px 0;
  text-align: center;
  user-select: none;
}

.logo {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 230px;
  margin-top: -115px;
Eugen Rochko's avatar
Eugen Rochko committed
113 114 115 116 117 118 119 120 121
  background: $color1;
  border-radius: 100%;
  padding: 10px;
  z-index: 2;

  img {
    width: 100%;
    height: auto;
  }
Eugen Rochko's avatar
Eugen Rochko committed
122 123 124 125 126
}

.hero__container {
  margin-top: 30px;
  margin-bottom: -30px;
Eugen Rochko's avatar
Eugen Rochko committed
127 128
  position: relative;
  z-index: 1;
Eugen Rochko's avatar
Eugen Rochko committed
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
}

.hero__full, .hero__mobile {
  overflow: hidden;
}

.hero__full {
  max-width: 850px;
}

.hero__mobile {
  max-width: 200px;
  margin-left: -100px;
  margin-bottom: 0px;
}
Eugen Rochko's avatar
Eugen Rochko committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179

.hero__floats {
  position: absolute;
  max-width: 950px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: -1;

  img {
    animation-name: floating;
    animation-duration: 3.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
  }

  .float-1 {
    position: absolute;
    left: -70px;
  }
}

@keyframes floating {
  from {
    transform:translate(0, 0px);
  }

  65% {
    transform:translate(0, 15px);
  }

  to {
    transform: translate(0, -0px);
  }
}