Dribbble๊ณผ ๊ฐ™์€ form๐Ÿ“ ์Šคํƒ€์ผ ์ง€์ •

12855 ๋‹จ์–ด csshtmlwebdevtutorial
Dribbble์€ ๋งค์šฐ ๋ฉ‹์ง„ ๋””์ž์ธ์˜ ๋กœ๊ทธ์ธ ๋ฐ ๊ฐ€์ž… ์–‘์‹์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์ด ๊ธ€์—์„œ๋Š” ์–ด๋–ป๊ฒŒ ๋งŒ๋“œ๋Š”์ง€ ์•Œ๋ ค๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

์ด๊ฒƒ์ด ์šฐ๋ฆฌ๊ฐ€ ๊ฒฐ๊ตญ ๊ฐ–๊ฒŒ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค:


์ด์ œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•ด ๋ด…์‹œ๋‹ค!

์šฐ์„ , ๋งค์šฐ ๊ฐ„๋‹จํ•œ HTML ์–‘์‹ ๋งˆํฌ๋‹ค์šด์„ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

<div class="sign">
<form method="post" action="anyfile.php">
    <label for="login">Login:</label>
    <input type="text" name="login" id="login">
    <label for="password">Password:</label>
    <input id="password" type="password" name="password">
    <input type="submit" value="Sign in">
</form>
</div>


์˜ˆ๋ฅผ ๋“ค์–ด ๋‘ ๊ฐœ์˜ ์ž…๋ ฅ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. ์›ํ•˜๋Š” ๋ชจ๋“  ๊ฒƒ์„ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์šฐ๋ฆฌ๊ฐ€ ์ง€๊ธˆ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๊ฒƒ์„ ๋ณด์‹ญ์‹œ์˜ค:


์˜ˆ๐Ÿ˜’, ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ๋ณ„๋กœ ์ข‹์•„ ๋ณด์ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ผ๋ถ€ ์Šคํƒ€์ผ์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ธŒ๋žœ๋“œ ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•ด์•ผ ํ•˜๋Š” ์ฝ”๋“œ์— ์ฃผ์„์œผ๋กœ ํ‘œ์‹œํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํŒ: ๋•Œ๋กœ๋Š” rgb ๋˜๋Š” hex ๋Œ€์‹  rgba๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„์š”ํ•œ ๊ณณ์— ํˆฌ๋ช…๋„๋ฅผ ๋งŒ๋“ค์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

.sign{
    width:500px; /* change the width value to change text inputs width */
}

form input:not([type="submit"]){
    width: 100%;
    height: auto;
    margin: auto;
    padding: 10px;
    border: 1.3px solid transparent;
    background:#f0f0f0;
    border-radius:0.6rem;
    transition: all .3s ease-in-out;
}

form label{
    margin-top:15px;
    font-size:1.35em;
}

form input:not([type="submit"]):hover{
    box-shadow: 0 0 0 4px rgba(234,76,137,0.1); /* brand color with 0.1 transparency*/
    background:white;
    border:1px solid rgba(0,0,0,0.1);
}

form input:not([type="submit"]):focus{
    box-shadow: 0 0 0 4px rgba(234,76,137,0.1); /* brand color with 0.1 transparency*/
    background:white;
    border:1px solid rgba(234,76,137,0.4); /* brand color with 0.1 transparency*/
}

form input[type="submit"]{
    padding:12px;
    margin-top:28px;
    border-radius:0.6rem;
    background:#ea4c89; /*brand color*/
    font-size:1.3em;
    width:130px;
    border:none;
    transition:.2s all ease-in-out;
    color:white;
    float:left;
}

form input[type="submit"]:hover{
    background:#f082ac; /* lighter brand color*/
}

form input[type="submit"]:active{
    background:#bb3d6e; /* lighter brand color*/
}


๊ทธ๋ฆฌ๊ณ  ์ด๊ฒƒ์ด ์šฐ๋ฆฌ๊ฐ€ ๋๋‚ธ ๊ฒƒ์ž…๋‹ˆ๋‹ค:





๋ชจ๋‘ ์˜ˆ์ƒ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๊ฝค ์ข‹์ง€ ์•Š๋‚˜์š”๐Ÿ˜€?

๋‹น์‹ ์€ ๋‚˜์—๊ฒŒ ์ปคํ”ผ ํ•œ ์ž”์„ ์‚ด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
https://buymeacoff.ee/vladoss

์ €๋ฅผ ๊ธฐ๋ถ€ํ•จ์œผ๋กœ์จ ๋‹น์‹ ์€ ์ œ๊ฐ€ ์ œ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง€์›ํ•˜๊ณ  ๋‹น์‹ ์„ ์œ„ํ•œ ๋ฉ‹์ง„ ์ƒˆ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค๋„๋ก ๋™๊ธฐ๋ฅผ ๋ถ€์—ฌํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ