Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* GLOBAL STYLES */
- @import url('https://fonts.googleapis.com/css2?family=Poppins&family=Righteous&display=swap');
- * {
- top: 0;
- left: 0;
- margin: 0;
- padding: 0;
- box-sizing: inherit;
- }
- html {
- font-family: 'Poppins', sans-serif;
- font-size: 10px;
- }
- .container {
- height: 500px;
- width: 90%;
- margin: 30px auto;
- text-align: center;
- }
- .container h1 {
- font-size: 5em;
- }
- .container h2 {
- font-size: 3em;
- }
- .container p {
- font-size: 2em;
- }
- /* HEADER STYLES */
- header {
- position: fixed;
- display: flex;
- justify-content: space-between;
- align-content: center;
- width: 100%;
- height: 50px;
- z-index: 3;
- transition: .5s;
- }
- #header-img {
- width: 30px;
- padding: 5px;
- }
- #nav-bar {
- background: linear-gradient(rgb(111, 135, 202), rgb(100, 174, 180));
- width: 50%;
- height: 100vh;
- transform: translateX(100%);
- transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
- }
- .nav-list {
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- align-items: center;
- top: 75px;
- height: 80vh;
- }
- .nav-item {
- position: relative;
- width:100%;
- height: 100px;
- list-style: none;
- text-shadow: 1px 1px 2px black;
- }
- .nav-link {
- position: relative;
- display: block;
- text-align: center;
- top: 30%;
- text-decoration: none;
- font-size: 2.2em;
- color: white;
- transition: .1s;
- }
- .nav-link:hover {
- font-size: 2.5em
- }
- .nav-link:active {
- transform: translateY(3px);
- color: rgba(220,220,220)
- }
- /* NAVIGATION BUTTON */
- .nav-btn-container {
- position: absolute;
- top: 10px;
- left: calc(100% - 50px);
- width: 30px;
- height: 30px;
- background: none;
- border: none;
- outline: none;
- padding-left: .2rem;
- transition: .2s;
- z-index: 4;
- }
- .nav-btn,
- .nav-btn::before,
- .nav-btn::after {
- position: relative;
- display: block;
- width: 2.8rem;
- height: 5px;
- background: white;
- box-shadow: .4px .4px 1px;
- transition: .5s;
- }
- .nav-btn::before {
- content: '';
- bottom: 9px;
- }
- .nav-btn::after {
- content: '';
- top: 4px;
- }
- .nav-btn-container:hover {
- cursor: pointer;
- transform: translateY(2px);
- }
- .nav-btn-container:hover .nav-btn,
- .nav-btn-container:hover .nav-btn::before,
- .nav-btn-container:hover .nav-btn::after {
- background: rgba(220,220,220);
- }
- .nav-btn-container.active .nav-btn {
- background: none;
- box-shadow: none;
- left: -3px;
- }
- .nav-btn-container.active .nav-btn::before {
- top: 1px;
- width: 2.5em;
- transform: rotate(45deg);
- box-shadow: none;
- }
- .nav-btn-container.active .nav-btn::after {
- top: -4px;
- width: 2.5em;
- transform: rotate(-45deg);
- box-shadow: none;
- }
- .nav-btn-container.active + #nav-bar{
- transform: translateX(0);
- box-shadow: -5px 0 20px rgba(0,0,0, .4);
- }
- /* SECTION #1 - HERO */
- .hero {
- background: linear-gradient(135deg, rgb(78, 109, 192), rgba(37, 124, 73, 0.8)), url(hero-bg.jpg);
- background-attachment: fixed;
- padding-top: 75px;
- color: white;
- }
- .hero::after {
- content: '';
- position: absolute;
- width: 100%;
- height: 300px;
- background: url(wave-small.png);
- background-size: cover;
- bottom: 30px;
- z-index: 1;
- }
- /* SECTION #2 - FEATURES */
- .features {
- color: #333;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement