Advertisement
snail-legs

21. OC trading card

Aug 30th, 2021 (edited)
1,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.00 KB | None | 0 0
  1. <!-- info button -->
  2. <div class="p-2 m-auto text-right" style="max-width: 25em; position: relative;">
  3.   <a data-toggle="collapse" href="#info" role="button" aria-expanded="false" aria-controls="info">
  4.   <i class="fas fa-info-square p-2" style="font-size: 2em; position: absolute; top: 0.75em; right: 0.5em; z-index: 1;"></i>
  5.   </a>
  6. </div>
  7.  
  8. <!-- background image -->
  9. <div class="card m-auto bg-faded" style="background-image: url(https://cdn.discordapp.com/attachments/730913454726316074/881940845941653594/bg_bedroom.png); background-position: 35%; background-size: cover; max-width: 25em; height:35em; border: 1px solid;">
  10.    
  11.   <!-- character art - you might need to fiddle with the percentage in background-position to position it correctly!  lower the percentage to move the image right, raise it to move the image left  -->
  12.   <div class="card border-0 bg-transparent" style="background-image: url(https://cdn.discordapp.com/attachments/730913454726316074/881249990813552700/august_small_smile.png); background-position: 25%; background-size: cover; height: 100%;">
  13.     <div class="card-body" style="height: 100%;"></div>
  14.    
  15.     <!-- character name, stars, credits, collapsing bio -->
  16.     <div class="card-footer pb-4 border-0 bg-faded">
  17.       <div class="row no-gutters">
  18.          
  19.         <!-- character name and credits -->
  20.         <div class="col-12">
  21.           <h1 style="font-family: 'Georgia', serif; font-size: 1.75em; font-weight: bold;">character name</h1>
  22.         </div>
  23.       </div>
  24.      
  25.       <!-- collapsing bio - will scroll to include extra content if needed! a real trading card could never -->
  26.       <div class="row no-gutters">
  27.         <div class="col-12">
  28.           <div class="collapse" id="info">
  29.             <div style="height: 28.75em; overflow-x: auto;">
  30.                
  31.               <!-- quick info -->
  32.               <div class="card p-2 m-2 bg-default border-0">
  33.                 <p class="text-secondary text-center">pronouns . age . occupation . story</p>
  34.               </div>
  35.              
  36.               <!-- stat 1 -->
  37.               <div class="card p-2 m-2 bg-default border-0">
  38.                 <p style="border-bottom: 2px dotted;"><span class="float-left">STR</span><span class="float-right">10</span></p>
  39.               </div>
  40.              
  41.               <!-- stat 2 -->
  42.               <div class="card p-2 m-2 bg-default border-0">
  43.                 <p style="border-bottom: 2px dotted;"><span class="float-left">WIS</span><span class="float-right">10</span></p>
  44.               </div>
  45.              
  46.               <!-- stat 3 -->
  47.               <div class="card p-2 m-2 bg-default border-0">
  48.                 <p style="border-bottom: 2px dotted;"><span class="float-left">DEX</span><span class="float-right">10</span></p>
  49.               </div>
  50.              
  51.               <!-- quote -->
  52.               <div class="card p-2 m-2 bg-default border-0 text-primary">
  53.                 <p class="m-auto text-center" style="font-family: 'Georgia', serif; font-size: 1.2em;">
  54.                   <i class="fas fa-quote-left"></i>
  55.                   quote or song lyrics!
  56.                   <i class="fas fa-quote-right"></i>
  57.                 </p>
  58.               </div>
  59.              
  60.               <!-- bio text -->
  61.               <div class="card p-1 m-1 bg-default border-0">
  62.                 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin elit sed tellus blandit viverra sed eget odio. Donec accumsan tempor lacus, et venenatis elit feugiat non. Duis porta eros et velit blandit dapibus. Curabitur ac finibus eros. Duis placerat velit vitae massa sodales, eget mattis nibh pellentesque.</p>
  63.               </div>
  64.             </div>
  65.           </div>
  66.         </div>
  67.       </div>
  68.       <div class="row no-gutters">
  69.         <div class="col-12">
  70.           <p class="text-secondary pt-2" style="line-height: 0.5rem;"><i>art by <a href="#">artist</a> | code by <a href="https://toyhou.se/snail-legs">snail-legs</a></i></p>
  71.         </div>
  72.       </div>
  73.     </div>
  74.   </div>
  75. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement