add content to centered box

This commit is contained in:
Gerome Matilla 2020-06-04 09:03:54 +08:00
parent 5b0e897407
commit b8038130b7
4 changed files with 35 additions and 2 deletions

View File

@ -1,7 +1,8 @@
.centeredBar {
background: #ff00ff;
background: #ff00ff60;
width: 100%;
height: auto;
border: none;
pointer-events: none;

31
css/profile-image.css Normal file
View File

@ -0,0 +1,31 @@
#profileImageContainer {
background: var(--base-bg);
backdrop-filter: blur(var(--blur-strength));
height: 138px;
width: 138px;
border-radius: 50%;
pointer-events: initial;
margin: 0 auto;
margin-bottom: 90px;
position: relative;
flex-flow: column wrap;
display: flex;
justify-content: center;
align-items: center;
}
#profileImage {
background-image: url('../assets/user.png') ;
height: 128px;
width: 128px;
border-radius: 50%;
background-size: cover;
flex-flow: column wrap;
display: flex;
justify-content: center;
align-items: center;
}

View File

@ -6,6 +6,7 @@
@import url('dock.css');
@import url('dock-buttons.css');
@import url('centered-box.css');
@import url('profile-image.css');
:root {
/* Colors */

View File

@ -48,7 +48,7 @@
<div class='centeredBar' id='centeredBox'>
<div id='profileImageContainer'>
<div id='profile'></div>
<div id='profileImage'></div>
</div>
<input type="text" id="searchBox" autocomplete="off" autofocus="off" placeholder="Type to search"/>
</div>