Skip to content

Commit

Permalink
made basic ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamJoker committed Aug 18, 2020
1 parent c931ff9 commit f929ebe
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 2 deletions.
62 changes: 62 additions & 0 deletions file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions files-and-folders (1).svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@
</head>

<body>
<section class="upload-container">
<div class="drop-zone">
<div class="icon-container">
<img src="file.svg" class="main" alt="File Icon">
<img src="file.svg" class="left" alt="File Icon">
<img src="file.svg" class="right" alt="File Icon">
</div>
<div class="title">Drop your Files here or, <span id="browseBtn">browse</span></div>
</div>
<div class="progress-container">

</div>
</section>
<script src="index.js"></script>
</body>

Expand Down
75 changes: 73 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,74 @@
body {
font-family: system-ui;
}
font-family: system-ui;
background: #edf5fe;
height: 98vh;
}

body,
.upload-container,
.drop-zone {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.upload-container {
background: #ffffff;
border-radius: 25px;
box-shadow: 0px 20px 20px 0px #00000017;
}

.drop-zone {
width: 600px;
min-height: 200px;
border: 2px dashed #0288d147;
border-radius: 10px;
margin: 30px;
}

.icon-container {
position: relative;
width: 75px;
height: 100px;
}

.icon-container img {
width: 75px;
position: absolute;
transition: transform 0.25s ease-in-out;
transform-origin: bottom;
}

.icon-container:hover > .right {
transform: rotate(10deg) translateX(20px);
}

.icon-container:hover > .left {
transform: rotate(-10deg) translateX(-20px);
}

.icon-container .main {
z-index: 10;
}
.icon-container .right,
.icon-container .left {
filter: grayscale(0.5);
transform: scale(0.9);
}

.icon-expanded .right {
transform: rotate(10deg) scale(0.9) translateX(20px);
}
.icon-expanded .left {
transform: rotate(-10deg) scale(0.9) translateX(-20px);
}

.title {
font-size: large;
}

#browseBtn {
color: #2196f3;
cursor: pointer;
}

0 comments on commit f929ebe

Please sign in to comment.