-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added user profile with some features!
- Loading branch information
1 parent
26716ea
commit b4e8099
Showing
25 changed files
with
765 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bootstrap-simple-admin-template-main | ||
database/connect.php |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
body{ | ||
color: #1a202c; | ||
text-align: left; | ||
background-color: #e2e8f0; | ||
} | ||
.main-body { | ||
padding: 15px; | ||
} | ||
.card { | ||
box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06); | ||
} | ||
|
||
.card { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
min-width: 0; | ||
word-wrap: break-word; | ||
background-color: #fff; | ||
background-clip: border-box; | ||
border: 0 solid transparent; | ||
border-radius: .25rem; | ||
margin-bottom: 1.5rem; | ||
box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 2px 6px 0 rgb(206 206 238 / 54%); | ||
} | ||
.me-2 { | ||
margin-right: .5rem!important; | ||
} | ||
|
||
.card-body { | ||
flex: 1 1 auto; | ||
min-height: 1px; | ||
padding: 1rem; | ||
} | ||
|
||
|
||
|
||
/* DRAG AND DROP BOX */ | ||
.droparea { | ||
margin: 1rem auto; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 384px; | ||
max-width: 100%; | ||
height: 160px; | ||
border: 4px dashed grey; | ||
border-radius: 15px; | ||
} | ||
|
||
.droparea i { | ||
font-size: 3rem; | ||
flex-grow: 1; | ||
padding-top: 1rem; | ||
} | ||
|
||
.green-border { | ||
border-color: green; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const initApp = () => { | ||
const droparea = document.querySelector('.droparea'); | ||
|
||
const active = () => droparea.classList.add("green-border"); | ||
|
||
const inactive = () => droparea.classList.remove("green-border"); | ||
|
||
const prevents = (e) => e.preventDefault(); | ||
|
||
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(evtName => { | ||
droparea.addEventListener(evtName, prevents); | ||
}); | ||
|
||
['dragenter', 'dragover'].forEach(evtName => { | ||
droparea.addEventListener(evtName, active); | ||
}); | ||
|
||
['dragleave', 'drop'].forEach(evtName => { | ||
droparea.addEventListener(evtName, inactive); | ||
}); | ||
|
||
droparea.addEventListener("drop", handleDrop); | ||
|
||
} | ||
|
||
document.addEventListener("DOMContentLoaded", initApp); | ||
|
||
const handleDrop = (e) => { | ||
const dt = e.dataTransfer; | ||
const files = dt.files; | ||
const fileArray = [...files]; | ||
console.log(files); // FileList | ||
console.log(fileArray); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.