Jump to content

Devor

Newbie
  • Posts

    5
  • Joined

  • Last visited

Information

  • Sex
    мужской
  • From
    Украина

Devor's Achievements

Enthusiast

Enthusiast (2/14)

  • Dedicated Rare
  • Week One Done Rare
  • Reacting Well Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Как настроить сайт под маштабирование? Когда отдаляешь страницу , все элементы смешиваются , вот код, заодно можете сказать все ли в порядке с кодом? Или где-то дыряво написано <!DOCTYPE html> <html lang="ru"> <head> <title>Ethereal - Начать играть</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="assets/images/favicon.png"> <link rel="stylesheet" href="assets/css/StartTheGame.css"> <link rel="stylesheet" href="assets/css/Fonts.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700"> </head> <body class="body-main"> <div class="container"> <div class="sector1"> <div class="top"> <div class="logo"> <a href="http://mine.template.loc/">Ethereal</a> </div> <img src="assets/images/line.png"> <button class="cabinet"> <a href="#">Личный Кабинет</a> </button> </div> <div class="right"> <div class="launcher_photo"> <img src="assets/images/Launcher.png"> </div> </div> <div class="left"> <div class="text"> <h1>Начни играть вместе со<br>всеми!</h1> <ul> <li>Скачай лаунчер</li> <li>Загрузи игру</li> <li>Воплоти свои мечти!</li> </ul> </div> <div class="download"> <a href="#" class="btn">Скачать</a> <p>Для</p> <img src="assets/images/windows.png"> </div> </div> </div> <div class="sector2"> </div> </div> <script src="assets/js/raw.githubusercontent.com_micku7zu_vanilla-tilt.js_master_dist_vanilla-tilt.min.js"></script> <script src="assets/js/main.js"></script> </body> </html> * { outline: none; } body { width: 100%; height: 100vh; margin: 0; padding: 0; background: #efefef; font-family: 'Montserrat',sans-serif; } a { color: white; text-decoration: none;} .body-main { position: relative; background: url(../images/background.gif); background-position: center; -webkit-background-size: cover; background-size: cover; } .container { width: 100%; height: 200vh; } .sector1 { width: 100%; height: 100vh; } .sector2 { width: 100%; height: 100vh; } .top { width: 100%; height: 10vh; display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; justify-content: space-between; line-height: 40px; } .logo { margin-top: 11px; margin-left: 50px; } .logo a { font-family: 'SAOUI-Bold'; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 30px; font-weight: 700; transition: all 0.3s; padding: 0px 5px; } .logo a:hover { color: rgb(255, 255, 255); text-shadow: 0px 0px 3px rgba(255,255,255,0.5); } .top img { width: 900px; } .cabinet { font-size: 17px; background: transparent; border: none; font-family: 'JournalSans'; font-weight: Bold; padding: 1em 1.5em; color: #ffffff; text-transform: uppercase; position: relative; transition: .5s ease; } .cabinet::before { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background-color: #2b2b2b; transition: .5s ease; } .cabinet:hover { color: #1e1e2b; transition-delay: .5s; } .cabinet:hover::before { width: 100%; } .cabinet::after { content: ''; position: absolute; left: 0; bottom: 0; height: 0; width: 100%; background-color: #303030; transition: .4s ease; z-index: -1; } .cabinet:hover::after { height: 100%; transition-delay: 0.4s; color: aliceblue; } .right { position: absolute; left: 50%; height: 90vh; } .launcher_photo img { width: 600px; margin-top: 120px; } .left { position: absolute; right: 50%; height: 90vh; } .text { display: block; margin-left: auto; margin-right: 170px; margin-top: 100px; } .text h1 { color: white; } .text ul { color: white; font-weight: Bold; } .download { display: block; margin-left: auto; margin-right: auto; margin-top: 80px; } .btn { position: relative; display: inline-block; width: 200px; height: 60px; text-align: center; line-height: 60px; color: #fff; font-size: 20px; font-weight: Bold; text-transform: uppercase; text-decoration: none; font-family: sans-serif; box-sizing: border-box; background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4); background-size: 400%; border-radius: 30px; z-index: 1; } .btn:hover { animation: animate 8s linear infinite; } @keyframes animate { 0% { background-position: 0%; } 100% { background-position: 400%; } } .btn:before { content: ""; position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; z-index: -1; background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4); background-size: 400%; border-radius: 40px; opacity: 0; transition: .5s; } .btn:hover:before { filter: blur(20px); opacity: 1; animation: animate 8s linear infinite; } .download p { color: rgb(82, 82, 82); font-size: 21px; font-weight: bold; margin-top: -43px; margin-left: 230px; } .download img { display: block; margin-top: -61px; margin-left: 300px; } .left { opacity: 0; animation: text 4s forwards; } @keyframes text { 0% {opacity: 0;} 100% {opacity: 1;} } .right { transform: translateY(-150%); animation: ani 2s forwards; } @keyframes ani { 0% {transform: translateY(-150%);} 100% {transform: translateY(0);} } Вот это уходит в разные стороны - И сами блоки какие то странные
  2. Вот собственно хочу такой скролл сделать, а разобраться не могу, все уже обыскал, java то ломается то еще чето
  3. Крч пытаюсь отредачить фотку на сайте, типо размер и положение, в html добавил <div class="Launcher"> <img src="assets/images/Launcher.png"> </div> дальше захожу в css и пытаюсь отредачить с помощью .Launcher {width: 100px;} Ну ничего не выходит, не хейтите впервые сайт делаю, Что я делаю не так друзья?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy