Created
October 12, 2024 11:20
-
-
Save vivekwebm2020/c8b6474ae28629938ceb6678ba0dd12c to your computer and use it in GitHub Desktop.
Revisions
-
vivekwebm2020 created this gist
Oct 12, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,100 @@ <div class="formbold-main-wrapper"> <!-- Author: FormBold Team --> <!-- Learn More: https://formbold.com --> <div class="formbold-form-wrapper"> <form action="https://formbold.com/s/FORM_ID" method="POST"> <div class="formbold-mb-5"> <label for="email" class="formbold-form-label"> Send files to this email: </label> <input type="email" name="email" id="email" placeholder="Enter your email" class="formbold-form-input" /> </div> <div class="mb-6 pt-4"> <label class="formbold-form-label formbold-form-label-2"> Upload File </label> <div class="formbold-mb-5 formbold-file-input"> <input type="file" name="file" id="file" /> <label for="file"> <div> <span class="formbold-drop-file"> Drop files here </span> <span class="formbold-or"> Or </span> <span class="formbold-browse"> Browse </span> </div> </label> </div> <div class="formbold-file-list formbold-mb-5"> <div class="formbold-file-item"> <span class="formbold-file-name"> banner-design.png </span> <button> <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M0.279337 0.279338C0.651787 -0.0931121 1.25565 -0.0931121 1.6281 0.279338L9.72066 8.3719C10.0931 8.74435 10.0931 9.34821 9.72066 9.72066C9.34821 10.0931 8.74435 10.0931 8.3719 9.72066L0.279337 1.6281C-0.0931125 1.25565 -0.0931125 0.651788 0.279337 0.279338Z" fill="currentColor" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.279337 9.72066C-0.0931125 9.34821 -0.0931125 8.74435 0.279337 8.3719L8.3719 0.279338C8.74435 -0.0931127 9.34821 -0.0931123 9.72066 0.279338C10.0931 0.651787 10.0931 1.25565 9.72066 1.6281L1.6281 9.72066C1.25565 10.0931 0.651787 10.0931 0.279337 9.72066Z" fill="currentColor" /> </svg> </button> </div> </div> <div class="formbold-file-list formbold-mb-5"> <div class="formbold-file-item"> <span class="formbold-file-name"> banner-design.png </span> <button> <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M0.279337 0.279338C0.651787 -0.0931121 1.25565 -0.0931121 1.6281 0.279338L9.72066 8.3719C10.0931 8.74435 10.0931 9.34821 9.72066 9.72066C9.34821 10.0931 8.74435 10.0931 8.3719 9.72066L0.279337 1.6281C-0.0931125 1.25565 -0.0931125 0.651788 0.279337 0.279338Z" fill="currentColor" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.279337 9.72066C-0.0931125 9.34821 -0.0931125 8.74435 0.279337 8.3719L8.3719 0.279338C8.74435 -0.0931127 9.34821 -0.0931123 9.72066 0.279338C10.0931 0.651787 10.0931 1.25565 9.72066 1.6281L1.6281 9.72066C1.25565 10.0931 0.651787 10.0931 0.279337 9.72066Z" fill="currentColor" /> </svg> </button> </div> <div class="formbold-progress-bar"> <div class="formbold-progress"></div> </div> </div> </div> <div> <button class="formbold-btn w-full">Send File</button> </div> </form> </div> </div> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Simple File Upload Form Using HTML and CSS ------------------------------------------ File upload form for HTML, CSS and static websites, this is styled using pure CSS so you can anywhere you want. Just copy-paste the code and replace parameters with your own. A [Pen](https://codepen.io/musharof/pen/XWqeMLr) by [Musharof](https://codepen.io/musharof) on [CodePen](https://codepen.io). [License](https://codepen.io/license/pen/XWqeMLr). This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,182 @@ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Inter", sans-serif; } .formbold-mb-5 { margin-bottom: 20px; } .formbold-pt-3 { padding-top: 12px; } .formbold-main-wrapper { display: flex; align-items: center; justify-content: center; padding: 48px; } .formbold-form-wrapper { margin: 0 auto; max-width: 550px; width: 100%; background: white; } .formbold-form-label { display: block; font-weight: 500; font-size: 16px; color: #07074d; margin-bottom: 12px; } .formbold-form-label-2 { font-weight: 600; font-size: 20px; margin-bottom: 20px; } .formbold-form-input { width: 100%; padding: 12px 24px; border-radius: 6px; border: 1px solid #e0e0e0; background: white; font-weight: 500; font-size: 16px; color: #6b7280; outline: none; resize: none; } .formbold-form-input:focus { border-color: #6a64f1; box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05); } .formbold-btn { text-align: center; font-size: 16px; border-radius: 6px; padding: 14px 32px; border: none; font-weight: 600; background-color: #6a64f1; color: white; cursor: pointer; } .formbold-btn:hover { box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05); } .formbold--mx-3 { margin-left: -12px; margin-right: -12px; } .formbold-px-3 { padding-left: 12px; padding-right: 12px; } .flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .w-full { width: 100%; } .formbold-file-input input { opacity: 0; position: absolute; width: 100%; height: 100%; } .formbold-file-input label { position: relative; border: 1px dashed #e0e0e0; border-radius: 6px; min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 48px; text-align: center; } .formbold-drop-file { display: block; font-weight: 600; color: #07074d; font-size: 20px; margin-bottom: 8px; } .formbold-or { font-weight: 500; font-size: 16px; color: #6b7280; display: block; margin-bottom: 8px; } .formbold-browse { font-weight: 500; font-size: 16px; color: #07074d; display: inline-block; padding: 8px 28px; border: 1px solid #e0e0e0; border-radius: 4px; } .formbold-file-list { border-radius: 6px; background: #f5f7fb; padding: 16px 32px; } .formbold-file-item { display: flex; align-items: center; justify-content: space-between; } .formbold-file-item button { color: #07074d; border: none; background: transparent; cursor: pointer; } .formbold-file-name { font-weight: 500; font-size: 16px; color: #07074d; padding-right: 12px; } .formbold-progress-bar { margin-top: 20px; position: relative; width: 100%; height: 6px; border-radius: 8px; background: #e2e5ef; } .formbold-progress { position: absolute; width: 75%; height: 100%; left: 0; top: 0; background: #6a64f1; border-radius: 8px; } @media (min-width: 540px) { .sm\:w-half { width: 50%; } }