ėĪė ė―ëë githubė ėŽëĶž(wetube_v2)
ęļ°ëģļ ėĪė / header / footer / video mixin / home / forms(join, login, edit profile, change pw, upload) / shared.scss
ðĄ grid
header { ul { display: grid; grid-auto-flow: column; justify-content: space-between; grid-gap: 2rem; } }
#home { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); justify-content: space-evenly; grid-gap: 1.7rem; }
ðĄ fomrs.scss
.form-container { width: 70%; min-width: 350px; max-width: 450px; margin: 0 auto; padding: 2rem 0; border: 1px solid $color-light-white; border-radius: $border-radius-lg; box-shadow: inset 0px 0px 5px 0px $color-white; hr { width: 80%; border-color: $color-light-white; margin: 2rem auto; } } form { display: flex; width: 80%; flex-direction: column; align-items: center; margin: 0 auto; } input::placeholder { color: $color-white; } input:not(input[type="file"], input[type="submit"]) { width: 90%; height: 3rem; border-style: unset; border: 1px solid $color-white; border-radius: $border-radius-sm; box-shadow: inset 0px 0px 5px 0px $color-white; margin: 0.3rem 0; padding: 0 1rem; font-size: $font-regular; background-color: transparent; color: $color-dark-white; } input:focus:not(input[type="file"], input[type="submit"]) { outline: none; border-width: 2px; background-color: $color-light-black; } input[type="submit"] { width: 100%; height: 2rem; border-style: unset; border: 1px solid $color-white; border-radius: $border-radius-sm; box-shadow: inset 0px 0px 5px 0px $color-white; margin-top: 0.8rem; font-size: $font-regular; font-weight: bold; background-color: $color-dark-white; color: $bg; cursor: pointer; } .form__additional { text-align: center; text-decoration: underline; text-underline-position: under; a:hover, a:active { color: $color-light-blue; } }
ðĄ ę·ļëĶŽë ėėīí (â ėīëŊļė§) ëđėĻ ė ė§íëĐīė íŽęļ° ëëĶŽęģ ėĪėīęļ°
grid / background-image ėīėĐ
#home { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); justify-content: space-evenly; grid-gap: 1.7rem; } .video-mixin__thumb { height: 15rem; background-image: url("https://photo.coolenjoy.net/data/editor/1911/Bimg_f7cdb829996ca7f5750765329fef7f92_gguy.jpg"); background-size: cover; background-position: center; border-radius: $border-radius-lg; }