diff --git a/css/card.css b/css/card.css new file mode 100644 index 0000000..5281733 --- /dev/null +++ b/css/card.css @@ -0,0 +1,103 @@ +.cardicon { + position: absolute; + top: 0px; + right: 0px; + width: 60px; + height: 60px; + overflow: hidden; + transition: ease-in-out 0.3s; + border-radius: 10px; +} + +.cardicon:hover { + box-shadow: white 0 0 30px; + transform: translateY(-2px); +} + +.cardicon>img { + width: 100%; + height: 100%; +} + +.card { + position: absolute; + top: 10px; + right:10px; + padding: 10px; + border-radius: 10px; + overflow: hidden; + width: 60px; + height: 60px; + transition: 0.3s; + background: linear-gradient(rgb(109, 107, 107), rgb(177, 175, 175)); +} + +.card:hover { + width: 300px; + height: 300px; +} + +.card:hover>.cardicon { + top: 30px; + right: 30px; + width: 150px; + height: 150px; +} + +.card>.text>.mail { + position: relative; + font-size: 17px; + line-height: 20px; + font-weight: 400; + color: inherit; + text-decoration: none; +} + +.card>.text>.username { + position: relative; + margin: 0; + font-size: 32px; + line-height: 36px; +} + +.card>.text>.mail::after { + content: ""; + position: absolute; + bottom: 0; + left: 0; + width: 0; + height: 2px; + background-color: gray; + transition: 0.3s; +} + +.card>.text>h2::after { + content: ""; + position: absolute; + bottom: 0; + left: 0; + width: 0; + height: 2px; + background-color: gray; + transition: 0.3s; +} + +.card>.text>.username:hover::after { + width: 50%; +} + +.card>.text>.mail:hover::after { + width: 100%; +} + +.card>.text { + opacity: 0; + position: absolute; + bottom: 30px; + left: 30px; + transition: 0.3s; +} + +.card:hover>.text { + opacity: 1; +} diff --git a/css/header.css b/css/header.css index 2b85793..7dc263f 100644 --- a/css/header.css +++ b/css/header.css @@ -3,7 +3,7 @@ display: flex; align-items: center; justify-content: space-between; - padding: 10px; + padding: 10px 70px 10px 10px; } .header-text { diff --git a/css/user.css b/css/user.css deleted file mode 100644 index 4a2330f..0000000 --- a/css/user.css +++ /dev/null @@ -1,48 +0,0 @@ -.usercard { - width: 300px; - height: 300px; - background: linear-gradient(rgb(109, 107, 107), rgb(177, 175, 175)); - border-radius: 16px; - padding: 0 30px 30px; - transition: 0.3s; - display: grid; - text-align: start; - align-items: center; -} - -.usercard:hover { - transform: scale(1.03); -} - -.usercard>h2 { - transition: 0.3s; -} - -.usercard>h2:hover { - text-decoration: underline; -} - -.usercard>.avatar { - block-size: 185px; - display: grid; - align-items: center; -} - -.usercard>.avatar>.usericon { - width: 100px; - height: 100px; -} - -.usercard>.username { - margin: 0; - font-size: 32px; - line-height: 36px; -} - -.usercard>.mail { - font-size: 17px; - line-height: 20px; - font-weight: 400; - color: inherit; -} - diff --git a/index.html b/index.html index 087f652..9b822f7 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + Dashboard @@ -16,8 +16,15 @@

Tola

-
- usericon +
@@ -56,16 +63,7 @@ -
-
-
- usericon -
-
-

Tola

-

tolamironcenko@icloud.com

-

tolamironcenko@gmail.com

-
+