Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <!--Rules:
- Chara-Card (bootstrap vers)
- For the Coders Quarters November 2023 challenge
- You may
- -frankenstein with other codes (as long as the creator of said code allows it)
- -edit/change as much as you need (example: making character codes into user codes, vice-versa)
- You may not
- -Redistribute, resell, and/or claim its yours
- -Remove credit (you're allowed to move & edit it though, just keep it visible)
- Misc Notes:
- -When editing, remember to turn WYSIWYG off! My codes may break otherwise
- -Some basic html knowledge is recommended for editing
- Default Colors:
- - Info section: bg-faded
- - Character image bg tint: rgba(0,0,0,0.25)
- - Dividers, info badges: bg-primary
- - subheader-divider: bg-secondary
- Change the colors: Ctrl+f and search for the color you want to change.
- -->
- <div class="container">
- <!-- /// NAV /// -->
- <div class="mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Jump to...</strong>
- <a href="#basic">Basic Info</a> //
- <a href="#story">Backstory</a> //
- <a href="#trivia">Trivia</a> //
- <a href="#links">Links</a>
- </div>
- <!-- /// END NAV /// -->
- <!-- /// MAIN BODY /// -->
- <!--background image-->
- <div style="max-width:1200px;min-height:600px;
- box-shadow:2px 2px 5px rgba(0,0,0,0.5);
- overflow:hidden;
- background-image:url( url here);
- background-size:cover;
- background-position:center;
- background-attachment:fixed;">
- <div class="row no-gutters">
- <!-- /// INFO SECTION /// -->
- <div class="col-lg-5 col-xl-4 order-2 order-lg-1">
- <div class="p-3 table-responsive bg-faded" style="height:700px;box-shadow:3px 0px 5px rgba(0,0,0,0.5);">
- <!-- /// BASIC INFO /// -->
- <h1 style="font-size:2.5em" id="basic">Character Name</h1>
- <div class="bg-primary mb-3" style="height:5px"></div>
- <!--the basics-->
- <div class="row">
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Gender</strong><br> Text
- </div>
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Pronouns</strong><br> (pro/noun)
- </div>
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Birthday</strong><br> 00/00
- </div>
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Species/Race</strong><br> Text
- </div>
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Title</strong><br> Text
- </div>
- <div class="col-sm-6 mb-2">
- <strong class="bg-primary text-white px-2 mr-2">Title</strong><br> Text
- </div>
- </div>
- <hr style="border-width:3px">
- <!--blurb-->
- <p>This entire section scrolls!</p>
- <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>
- <!--quote-->
- <div class="card rounded-0 p-2 mb-3" style="border-width:0px 0px 0px 10px;font-size:1.2em">
- "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
- </div>
- <!-- /// END BASIC INFO /// -->
- <hr style="border-width:3px">
- <!-- /// BACKSTORY /// -->
- <h2 style="font-size:2em" id="story">Backstory</h2>
- <div class="bg-primary mb-3" style="height:5px"></div>
- <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>
- <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>
- <h3 style="font-size:1.5em">Subheader</h3>
- <div class="bg-secondary mb-3" style="height:3px"></div>
- <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>
- <!-- /// END BACKSTORY /// -->
- <hr style="border-width:3px">
- <!-- /// TRIVIA /// -->
- <h2 style="font-size:2em" id="trivia">Trivia</h2>
- <div class="bg-primary mb-3" style="height:5px"></div>
- <ul>
- <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
- <li>Quisque venenatis fermentum metus, eu consequat lorem laoreet eget.</li>
- <li>Duis gravida volutpat facilisis.</li>
- <li>Fusce id erat facilisis, molestie justo non, mattis est.</li>
- </ul>
- <!--playlist-->
- <h3 style="font-size:1.5em">Playlist</h3>
- <div class="bg-secondary mb-2" style="height:3px"></div>
- <a href="#" target="_blank" style="font-size:1.5em">
- <i class="fa-regular fa-circle-play"></i> Song Title - Artist Name
- </a><br>
- <a href="#" target="_blank" style="font-size:1.5em">
- <i class="fa-regular fa-circle-play"></i> Song Title - Artist Name
- </a><br>
- <a href="#" target="_blank" style="font-size:1.5em">
- <i class="fa-regular fa-circle-play"></i> Song Title - Artist Name
- </a><br>
- <a href="#" target="_blank" style="font-size:1.5em">
- <i class="fa-regular fa-circle-play"></i> Song Title - Artist Name
- </a><br>
- <a href="#" target="_blank" style="font-size:1.5em">
- <i class="fa-regular fa-circle-play"></i> Song Title - Artist Name
- </a><br>
- <!-- /// END TRIVIA /// -->
- <hr style="border-width:3px">
- <!-- /// LINKS /// -->
- <h2 style="font-size:2em" id="links">Links</h2>
- <div class="bg-primary mb-3" style="height:5px"></div>
- <!-- // Character 1 // -->
- <div class="row">
- <!--image-->
- <div class="col-sm-4">
- <div class="bg-secondary mx-auto mb-2" style="height:100px;width:100px;box-shadow:2px 2px 5px rgba(0,0,0,0.5)
- background-image:url( url here);
- background-size:cover;
- background-position:center;"></div>
- </div>
- <!--Blurb-->
- <div class="col-sm-8">
- <a href="#" style="font-size:1.5em">Character Name</a><br>
- <em>Relationship</em>
- <div class="bg-secondary mb-2" style="height:3px"></div>
- <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.</p>
- </div>
- </div>
- <hr style="border-width:3px">
- <!-- // End Character 1 // -->
- <!-- // Character 2 // -->
- <div class="row">
- <!--image-->
- <div class="col-sm-4">
- <div class="bg-secondary mx-auto mb-2" style="height:100px;width:100px;box-shadow:2px 2px 5px rgba(0,0,0,0.5)
- background-image:url( url here);
- background-size:cover;
- background-position:center;"></div>
- </div>
- <!--Blurb-->
- <div class="col-sm-8">
- <a href="#" style="font-size:1.5em">Character Name</a><br>
- <em>Relationship</em>
- <div class="bg-secondary mb-2" style="height:3px"></div>
- <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.</p>
- </div>
- </div>
- <hr style="border-width:3px">
- <!-- // End Character 2 // -->
- <!-- // Character 3 // -->
- <div class="row">
- <!--image-->
- <div class="col-sm-4">
- <div class="bg-secondary mx-auto mb-2" style="height:100px;width:100px;box-shadow:2px 2px 5px rgba(0,0,0,0.5)
- background-image:url( url here);
- background-size:cover;
- background-position:center;"></div>
- </div>
- <!--Blurb-->
- <div class="col-sm-8">
- <a href="#" style="font-size:1.5em">Character Name</a><br>
- <em>Relationship</em>
- <div class="bg-secondary mb-2" style="height:3px"></div>
- <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.</p>
- </div>
- </div>
- <hr style="border-width:3px">
- <!-- // End Character 3 // -->
- <!-- /// END LINKS /// -->
- </div>
- </div>
- <!-- /// END INFO SECTION /// -->
- <!-- /// IMAGE SECTION /// -->
- <div class="col-lg-7 col-xl-8 order-1 order-lg-2" style="text-align:center">
- <!-- // parent div //
- I wrapped the character image in a div so it's easier to make tweaks and keep it responsive w/o breaking the layout.
- 'background-color' can be removed if you don't want the tint
- -->
- <div class="p-2 h-100" style="max-height:700px;
- background-color:rgba(0,0,0,0.25);
- overflow:hidden">
- <!-- // Charactrer image //
- Default width: 650px. I set the max-width to 100% so it'll resize for smaller viewports.
- -->
- <img src=" url here " alt="character image 650px wide" class="img-fluid" style="width:650px;max-width:100%">
- </div>
- </div>
- <!-- /// IMAGE SECTION /// -->
- </div>
- </div>
- <!-- /// END MAIN BODY /// -->
- <!--Credit. You may move it, but please do not delete/remove-->
- <p class="mt-2" style="text-align:right">HTML by <a href="https://toyhou.se/24526995"><i class='fa-solid fa-heart'></i> Jade-Everstone</a> // bg - <a href="">Credit</a> // OC pic - <a href="">Credit</a></p>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement