123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- .home {
- height: 100vh;
- padding: 0;
- margin: 0;
- color: #f9fafc;
- overflow: hidden;
- }
- .background {
- height: 100%;
- width: 100%;
- padding: 0;
- margin: 0;
- background-attachment: fixed;
- background-position: center;
- transform: scale(1.1);
- filter: blur(3px);
- background-size: cover;
- }
- .arrow-center {
- display: flex;
- justify-content: center;
- }
- /*
- Resolves https://github.com/hugo-toha/toha/issues/70
- fixed attached images use the whole <body> size. On mobile this can get really
- tall which blows your image out. Setting the attachment back to scroll allows
- your cover image to stretch within its own container
- */
- @supports (-webkit-touch-callout: none) {
- .background {
- background-attachment: scroll;
- }
- }
- .content {
- position: relative;
- top: -65%;
- height: 60%;
- }
- .home img {
- width: 148px;
- height: 148px;
- background-color: #e7e7ef;
- padding: 5px;
- margin-bottom: 10px;
- }
- .home .greeting, .home .greeting-subtitle {
- color: #f9fafc;
- }
- .home .typing-carousel {
- font-size: 14pt;
- color: #f0f0f0;
- }
- #typing-carousel-data {
- display: none;
- }
- .arrow {
- position: absolute;
- color: #f9fafc;
- font-size: 1.5rem;
- bottom: 0;
- }
- .bounce {
- animation: bounce 2s infinite;
- }
- @keyframes bounce {
- 0%,
- 20%,
- 50%,
- 80%,
- 100% {
- transform: translateY(0);
- }
- 40% {
- transform: translateY(-30px);
- }
- 60% {
- transform: translateY(-15px);
- }
- }
- /* ============= Device specific fixes ======= */
- /* Large screens such as TV */
- @media only screen and (min-width: 1824px) {
- }
- /* Extra large devices (large desktops, 1200px and up) */
- @media (max-width: 1400px) {
- }
- @media (max-width: 1200px) {
- }
- /* IPad Pro */
- @media (max-width: 1024px) {
- }
- /* Large devices (desktops, 992px and up) */
- @media (max-width: 992px) {
- }
- /* Medium devices (tablets, 768px and up) */
- @media only screen and (max-width: 768px) {
- }
- /* Small devices (landscape phones, 576px and up) */
- @media only screen and (max-width: 576px) {
- .content {
- position: relative;
- top: -75%;
- height: 65%;
- }
- .home img {
- width: 140px;
- max-width: 50%;
- height: auto;
- }
- .home .greeting {
- font-size: 24pt;
- }
- }
- /* iPhoneX, iPhone 6,7,8 */
- @media only screen and (max-width: 375px) {
- }
- /* Galaxy S5, Moto G4 */
- @media only screen and (max-width: 360px) {
- }
- /* iPhone 5 or before */
- @media only screen and (max-width: 320px) {
- }
|