samueleresca commented on code in PR #47: URL: https://github.com/apache/incubator-pekko-site/pull/47#discussion_r1440730798
########## content/assets/stylesheets/home.css: ########## @@ -0,0 +1,193 @@ +/* + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +*/ + +h1 { + display: none; +} + +h2 { + text-align: center; +} + +.title { + margin-left: 20px; + max-width: 350px; + color: white; +} + +.title > h2 { + font-size: 4.5rem; + text-align: left; +} + +.md-typeset .title h2, +.md-typeset ul li ul { + margin: 0 +} + +/* Hide sidebars in home */ +.md-sidebar--primary, +.md-sidebar--secondary { + display: none; +} + +.md-typeset .headerlink { + display: none; +} + +.banner-logo p { + display: none; +} + +/* Styling of the outer grid */ +.md-main__inner { + max-width: none; + height: 100%; + padding-top: 0; +} + +.md-content { + margin: 0; +} + +.md-content__inner { + margin: 0; + padding-top: 0; +} + +.md-content__inner::before { + display: none; + content: none +} + +.navigation { + background-color: #242323; + text-align: center; + padding: 15px 0; +} + +.navigation a { + color: #fff; +} + +.navigation ul { + list-style-type: none; + margin: 0; + padding: 0; + display: flex; + white-space: nowrap; + justify-content: center; + flex-wrap: wrap; +} + +.navigation ul li { + display: inline-block; + margin: 5px 15px; +} + +.hero { + display: flex; + justify-content: center; + align-content: center; + flex-wrap: wrap; + background: rgba(0, 0, 0, 0.895); /*linear-gradient(24deg, rgba(58, 159, 180, 0.8) 0%, rgba(253, 29, 29, 0.8) 50%, rgba(252, 176, 69, 0.8) 100%);*/ + min-height: 500px; + column-gap: 60px; +} + +.row { + margin: 20px; +} + +.row a { + text-decoration: none; + color: #333; + margin: 0 5px; + flex-basis: 40%; +} + +@media (max-width: 768px) { + .hero { + flex-direction: column; + align-items: center; + } + + .title { + text-align: center; + margin: 20px 0; + } + + .title h2 { + text-align: center; + } + + .banner-logo { + display: none; + } +} + +.banner-logo { + width: 100%; + background-image: url("../images/pekko_logo.png"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + max-width: 280px; + min-height: 280px; +} + +/* Styling Modules sections */ +.row > ul { + gap: 20px; + display: grid; + margin: 0 auto; + max-width: 769px; + text-align: center; + list-style-type: none; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); +} + +.row ul li { + margin: 0; + padding: 5px; + display: inline-block; +} + +.row > ul > li { + background-color: #f0f0f0; + border-radius: 8px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + opacity: 1; + transition: opacity 0.3s ease-in-out; + cursor: default; +} + +.row > ul > li:hover { + opacity: 0.8; +} + + +.md-header-nav__button.md-icon--home, +.md-header-nav__button.md-logo { + display: block; +} + +.md-header-nav__button.md-icon--menu { + display: none; Review Comment: Fair point, updating -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
