|
| 1 | +*{ |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +body{ |
| 8 | + background: url(./assets/github.avif); |
| 9 | + background-repeat: no-repeat; |
| 10 | + background-size: cover; |
| 11 | + background-position: center; |
| 12 | + background-blend-mode: darken; |
| 13 | +} |
| 14 | +.container{ |
| 15 | + width: 100%; |
| 16 | +} |
| 17 | + |
| 18 | +.search-container{ |
| 19 | + position: relative; |
| 20 | + width: 550px; |
| 21 | + height: 50px; |
| 22 | + background-color: #fff; |
| 23 | + border-radius: 15px; |
| 24 | + overflow: hidden; |
| 25 | + display: flex; |
| 26 | + justify-content: center; |
| 27 | + align-items: center; |
| 28 | + flex-direction: column; |
| 29 | + margin: 0 auto; |
| 30 | + margin-top: 50px; |
| 31 | + box-shadow: 0 3px 10px gray; |
| 32 | +} |
| 33 | + |
| 34 | +#input{ |
| 35 | + width: 100%; |
| 36 | + height: 100%; |
| 37 | + background-color: #fff; |
| 38 | + border: none; |
| 39 | + outline: none; |
| 40 | + padding: 5px 160px 5px 15px; |
| 41 | + box-sizing: border-box; |
| 42 | +} |
| 43 | + |
| 44 | +#search{ |
| 45 | + width: 160px; |
| 46 | + height: 100%; |
| 47 | + position: absolute; |
| 48 | + top: 0; |
| 49 | + right: 0; |
| 50 | + display: flex; |
| 51 | + justify-content: center; |
| 52 | + align-items: center; |
| 53 | + background-color: #000; |
| 54 | + color : white; |
| 55 | + cursor: pointer; |
| 56 | + text-transform: uppercase; |
| 57 | +} |
| 58 | + |
| 59 | +.profile-card{ |
| 60 | + padding: auto; |
| 61 | + width: 500px; |
| 62 | + background-color: rgba(255,255,255,0.6); |
| 63 | + margin: 0 auto; |
| 64 | + margin-top: 30px; |
| 65 | + border-radius: 15px; |
| 66 | + overflow: hidden; |
| 67 | + margin-bottom: 15px; |
| 68 | + box-shadow: 0 3px 10px gray; |
| 69 | + font-family: 'Lobster Two', cursive; |
| 70 | +} |
| 71 | + |
| 72 | + |
| 73 | +.main-info{ |
| 74 | + display: flex; |
| 75 | + flex-direction: column; |
| 76 | + align-items: center; |
| 77 | + border-bottom: 1px solid gray; |
| 78 | +} |
| 79 | + |
| 80 | +#prof-img{ |
| 81 | + height: 70px; |
| 82 | + width: auto; |
| 83 | + border-radius: 50%; |
| 84 | + margin: 10px 0; |
| 85 | + box-shadow: 0 3px 10px rgb(96, 93, 93); |
| 86 | +} |
| 87 | + |
| 88 | +.name{ |
| 89 | + margin-top: 15px; |
| 90 | + font-size: 25px; |
| 91 | +} |
| 92 | + |
| 93 | +#username{ |
| 94 | + font-size: 20px; |
| 95 | + text-decoration: none; |
| 96 | + margin-top: 5px; |
| 97 | + margin-bottom: 8px; |
| 98 | +} |
| 99 | + |
| 100 | +a{ |
| 101 | + text-decoration: none; |
| 102 | +} |
| 103 | + |
| 104 | +.bio{ |
| 105 | + width: 100%; |
| 106 | + text-align: center; |
| 107 | + padding: 20px 0; |
| 108 | + font-size: 23px; |
| 109 | +} |
| 110 | + |
| 111 | +#bio{ |
| 112 | + font-weight: bold; |
| 113 | + color: rgb(28, 99, 109); |
| 114 | +} |
| 115 | + |
| 116 | +p{ |
| 117 | + margin-top: 12px; |
| 118 | +} |
| 119 | + |
| 120 | +.follow{ |
| 121 | + width: 100%; |
| 122 | + display: flex; |
| 123 | + height: 60px; |
| 124 | + border-top: 1px solid grey ; |
| 125 | + font-size: 20px; |
| 126 | +} |
| 127 | + |
| 128 | +.follow div{ |
| 129 | + width: 50%; |
| 130 | + text-align: center; |
| 131 | + padding-top: 15px; |
| 132 | +} |
| 133 | + |
| 134 | +.followers{ |
| 135 | + border-right: 1px solid grey; |
| 136 | +} |
| 137 | + |
| 138 | +@media screen and (max-width: 600px){ |
| 139 | + .profile-card{ |
| 140 | + width: 450px; |
| 141 | + margin: 0 45px; |
| 142 | + margin-top: 30px; |
| 143 | + border-radius: 15px; |
| 144 | + overflow: hidden; |
| 145 | + margin-bottom: 15px; |
| 146 | + box-shadow: 0 3px 10px gray; |
| 147 | + font-family: 'Lobster Two', cursive; |
| 148 | + } |
| 149 | +} |
| 150 | + |
0 commit comments