A Pen by Vashon Gonzales on CodePen.
Created
January 15, 2023 03:58
-
-
Save VashonG/4cff1a8822bf570fd30a416ae28ebb01 to your computer and use it in GitHub Desktop.
Define Your Destiny
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
<!-- | |
https://lifehacker.com/how-to-improve-your-character-stats-and-level-up-in-rea-1734253429 | |
http://tvtropes.org/pmwiki/pmwiki.php/Main/TheSixStats | |
http://gamedesign.wikidot.com/rpgdesign:stats | |
http://howtomakeanrpg.com/a/how-to-make-an-rpg-stats.html | |
https://en.wikipedia.org/wiki/Attribute_(role-playing_games) | |
--> | |
<header class="main-header"> | |
<div class="character-header"> | |
<img> | |
<h1 class="character-name">Jack Lee</h1> | |
<h2 class="character-level">#Level 5 / 436</h2> | |
</div> | |
<div class="menu-container"> | |
<ul class="main-menu"> | |
<li>A.Log</li> | |
<li>Quests</li> | |
<li class="active">Character</li> | |
<li>Clan</li> | |
<li>Inventory</li> | |
<li>Settings</li> | |
</ul> | |
</div> | |
</header> | |
<section class="screen class-selection"> | |
<article class="class-image"> | |
<hgroup class="title-hgroup"> | |
<h2 class="title-top">Choose Your</h2> | |
<h1 class="title-bottom">PATH</h1> | |
</hgroup> | |
<img width="350px" src="https://framerusercontent.com/modules/xcvKQVZ5wcab7utycx56/EE7nR3dZ8hM1c1iHztea/assets/boCokb1ogeDbkEaPRhXMAgBA.png"> | |
</article> | |
<article class="class-info select-class"> | |
<h2 class="centered">Select class</h2> | |
<ul class="class-selection list"> | |
<li> | |
<p>Titan <span class="screen-reader-text">(Warrior)</span></p> | |
</li> | |
<li class="active"> | |
<p>Hunter <span class="screen-reader-text">(Ranger)</span></p> | |
</li> | |
<li> | |
<p>Warlock <span class="screen-reader-text">(Druid)</span></p> | |
</li> | |
<li> | |
<p>Adventurer</p> | |
</li> | |
<li> | |
<p>Assassin</p> | |
</li> | |
<li> | |
<p>Monk</p> | |
</li> | |
<li> | |
<p>Scout</p> | |
</li> | |
<li> | |
<p>Rogue</p> | |
</li> | |
</ul> | |
<div class="selected-class-info"> | |
<hgroup> | |
<h2 class="class-name">Hunter <span class="screen-reader-text">(Ranger)</span></h2> | |
<h4 class="class-attributes">Agility • Adaptation • Instinct</h4> | |
</hgroup> | |
<p class="class-description">Agile and daring, Hunters are quick on their feet and quicker on the draw.</p> | |
<h4 class="class-ability-title">Class Ability</h4> | |
<img class="class-ability-icon"> | |
<p class="class-ability-description">Dodge: Avoid incoming enemy attacks with nimble skill.</p> | |
</div> | |
</article> | |
<article class="class-info customize active"> | |
<div class="left-column"> | |
<h2 class="centered">Customize</h2> | |
<ul class="class-selection customize list"> | |
<li class="active"> | |
<p>Stats</p> | |
</li> | |
<li> | |
<p>Story</p> | |
</li> | |
<li> | |
<p>Skills</p> | |
</li> | |
<li> | |
<p>Stuff</p> | |
</li> | |
<li> | |
<p>Life Wheel</p> | |
</li> | |
<li> | |
<p>Legacy</p> | |
</li> | |
</ul> | |
</div> | |
<div class="customize-box"> | |
<hgroup> | |
<h2 class="character-name">Jack Lee<i class="fas fa-pencil-alt edit-button" data-fa-transform="shrink-8"></i></h2> | |
<h4 class="character-class">Hunter <i class="fas fa-pencil-alt edit-button" data-fa-transform="shrink-5"></i></h4> | |
<h4 class="character-level">Level 5</h4> | |
</hgroup> | |
<div class="character-stats-box"> | |
<p class="notification">Notification</p> | |
<p class="hp"><img>436<span>HP</span></p> | |
<p class="slogan">Agile and daring, Hunters are quick on their feet and quicker on the draw. <i class="fas fa-pencil-alt edit-button" data-fa-transform="shrink-5"></i></p> | |
<dl class="character-stats"> | |
<dt class="stat-name">Strength</dt> | |
<dd> | |
<span class="stat-abbr">STR</span> | |
<progress class="stat-1" max="100" value="40"> | |
<strong>Stat Level: 40%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt class="stat-name">Dexterity</dt> | |
<dd> | |
<span class="stat-abbr">DEX</span> | |
<progress class="stat-1" max="100" value="40"> | |
<strong>Stat Level: 40%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt class="stat-name">Constitution</dt> | |
<dd> | |
<span class="stat-abbr">CON</span> | |
<progress class="stat-1" max="100" value="50"> | |
<strong>Stat Level: 50%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt class="stat-name">Intelligence</dt> | |
<dd> | |
<span class="stat-abbr">INT</span> | |
<progress class="stat-1" max="100" value="60"> | |
<strong>Stat Level: 60%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt class="stat-name">Wisdom</dt> | |
<dd> | |
<span class="stat-abbr">WIS</span> | |
<progress class="stat-1" max="100" value="50"> | |
<strong>Stat Level: 50%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt class="stat-name">Charisma</dt> | |
<dd> | |
<span class="stat-abbr">CHA</span> | |
<progress class="stat-1" max="100" value="70"> | |
<strong>Stat Level: 70%</strong> | |
</progress> | |
<span class="stat-level">5</span> | |
</dd> | |
<dt>Level</dt> | |
<dd>5</dd> | |
</dl> | |
<h4 class="class-ability-title">Class Ability</h4> | |
<img class="class-ability-icon"> | |
<p class="class-ability-description">Dodge: Avoid incoming enemy attacks with nimble skill.</p> | |
</div> | |
</div> | |
</article> | |
</section> | |
<section class="screen"> | |
<h1>Character stats</h1> | |
<ul> | |
<li>HP</li> | |
<li>MP</li> | |
<li>Weight</li> | |
<li>Money</li> | |
<li>Attack</li> | |
<li>Defense</li> | |
</ul> | |
<h2>Main stats</h2> | |
<ul> | |
<li>STR (strength)</li> | |
<li>DEX (dexterity)</li> | |
<li>CON (constitution)</li> | |
<li>INT (intelligence)</li> | |
<li>WIS (wisdom)</li> | |
<li>CHA (charisma)</li> | |
</ul> | |
<h3>Secondary stats</h3> | |
<ul> | |
<li>Range</li> | |
<li>Luck</li> | |
<li>Perception</li> | |
<li>Fatigue</li> | |
<li>Willpower</li> | |
</ul> | |
<h4>Skill stats</h4> | |
<ul> | |
<li>Coding</li> | |
<li>Design</li> | |
<li>Bass</li> | |
<li>Calisthenics</li> | |
<li>Korean</li> | |
<li>Business</li> | |
<li>Blogging</li> | |
<li>Writing</li> | |
<li>Reading</li> | |
<li>Learning</li> | |
</ul> | |
</section> |
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
var classes = { | |
"titan": { | |
"name": "Titan", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"hunter": { | |
"name": "Hunter", | |
"attributes": "Agility • Adaptation • Instinct", | |
"description": "Agile and daring, Hunters are quick on their feet and quicker on the draw.", | |
"ability": "Dodge: Avoid incoming enemy attacks with nimble skill.", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"warlock": { | |
"name": "Warlock", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"adventurer": { | |
"name": "Adventurer", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"assassin": { | |
"name": "Assassin", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"monk": { | |
"name": "Monk", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"scout": { | |
"name": "Scout", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
}, | |
"rogue": { | |
"name": "Rogue", | |
"attributes": "", | |
"description": "", | |
"ability": "", | |
"icon": "", | |
"image": "", | |
"banner": "" | |
} | |
} |
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
<script src="https://use.fontawesome.com/releases/v5.0.8/js/solid.js"></script> | |
<script src="https://use.fontawesome.com/releases/v5.0.8/js/fontawesome.js"></script> |
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
* { | |
display: relative; | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
.title-top { | |
font-size: 1.5rem; | |
font-weight: 100; | |
letter-spacing: 32px; | |
margin: 0px; | |
} | |
.title-bottom { | |
font-size: 3.5rem; | |
letter-spacing: 40px; | |
margin: 0; | |
} | |
.title-bottom:before, | |
.title-bottom:after { | |
display: none; | |
} | |
.title-hgroup { | |
margin: 0 auto; | |
width: 630px; | |
border-top: 8px solid; | |
text-align: center; | |
border-bottom: 2px solid; | |
padding: 2rem 0 2rem 0.5rem; | |
} | |
img { | |
display: block; | |
} | |
/* Text meant only for screen readers. */ | |
.screen-reader-text { | |
border: 0; | |
clip: rect(1px, 1px, 1px, 1px); | |
clip-path: inset(50%); | |
height: 1px; | |
margin: -1px; | |
overflow: hidden; | |
padding: 0; | |
position: absolute !important; | |
width: 1px; | |
word-wrap: normal !important; | |
} | |
body { | |
font-family: Roboto, "IBM Plex Sans", sans-serif; | |
/* font-style: italic; */ | |
/* font-weight: 400; */ | |
font-size: 0.8rem; | |
line-height: 1.6rem; | |
color: rgba(0, 0, 0, 1); | |
} | |
.screen { | |
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,e5e5e5+100;White+3D */ | |
background: #ffffff; /* Old browsers */ | |
background: -moz-linear-gradient( | |
top, | |
#ffffff 0%, | |
#e5e5e5 100% | |
); /* FF3.6-15 */ | |
background: -webkit-linear-gradient( | |
top, | |
#ffffff 0%, | |
#e5e5e5 100% | |
); /* Chrome10-25,Safari5.1-6 */ | |
background: linear-gradient( | |
to bottom, | |
#ffffff 0%, | |
#e5e5e5 100% | |
); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ | |
filter: progid:DXImageTransform.Microsoft.gradient( | |
startColorstr="#ffffff", | |
endColorstr="#e5e5e5", | |
GradientType=0 | |
); /* IE6-9 */ | |
min-height: 100vh; | |
} | |
h1 { | |
font-size: 3rem; | |
line-height: 4.4rem; | |
text-transform: uppercase; | |
font-weight: 900; | |
letter-spacing: 2px; | |
} | |
h1:before { | |
width: 100px; | |
content: ""; | |
display: block; | |
height: 8px; | |
background: rgba(0, 0, 0, 1); | |
} | |
h1:after { | |
width: 200px; | |
content: ""; | |
display: block; | |
height: 2px; | |
background: rgba(0, 0, 0, 1); | |
margin-bottom: 2rem; | |
} | |
h4, | |
.label { | |
line-height: 2rem; | |
border-bottom: 1px solid rgba(0, 0, 0, 0.3); | |
text-transform: uppercase; | |
font-weight: 400; | |
letter-spacing: 3px; | |
margin-bottom: 0.5rem; | |
margin-top: 0.5rem; | |
} | |
h2 { | |
text-transform: uppercase; | |
letter-spacing: 5px; | |
font-weight: 300; | |
font-size: 0.9rem; | |
line-height: 2rem; | |
} | |
h2.centered { | |
border-top: 1px solid rgba(0, 0, 0, 0.3); | |
border-bottom: 1px solid rgba(0, 0, 0, 0.3); | |
width: 220px; | |
text-align: center; | |
margin: 0 auto; | |
} | |
h3 { | |
} | |
h4 { | |
} | |
h5 { | |
} | |
h6 { | |
} | |
ul { | |
list-style: none; | |
margin: 1.5rem 2rem; | |
} | |
li { | |
/* https://codepen.io/mtclmn/pen/OPQmbx */ | |
position: relative; | |
} | |
li:after { | |
content: ""; | |
height: 6px; | |
width: 6px; | |
background: rgba(0, 0, 0, 1); | |
display: block; | |
position: absolute; | |
transform: rotate(45deg); | |
top: 0.5rem; | |
left: -1rem; | |
} | |
.screen { | |
height: 100vh; | |
width: 100vw; | |
padding: 7rem 3rem 3rem; | |
background: url(http://i.imgur.com/dwhDge7.jpg); | |
background-size: cover; | |
} | |
.main-header { | |
display: flex; | |
justify-content: space-between; | |
width: 100%; | |
padding: 1rem; | |
background-color: #ff0052; | |
background: -webkit-linear-gradient(right, #ff0052, #8e2b88); | |
background: -o-linear-gradient(right, #ff0052, #8e2b88); | |
background: -moz-linear-gradient(right, #ff0052, #8e2b88); | |
background: linear-gradient(right, #ff0052, #8e2b88); | |
opacity: 0.9; | |
height: 4rem; | |
position: absolute; | |
} | |
.character-header { | |
/* display: inline-block; */ | |
color: white; | |
/* width: 300px; */ | |
padding-left: 2rem; | |
} | |
.character-header .character-name { | |
margin: 0; | |
line-height: 1rem; | |
letter-spacing: 2px; | |
} | |
.character-header .character-name:before { | |
height: 0px; | |
width: 10px; | |
/* margin-bottom: 0.5rem; */ | |
/* background: white; */ | |
} | |
.character-header .character-name:after { | |
height: 0; | |
margin: 0; | |
} | |
.character-header .character-level { | |
margin: -0.25rem 0 -1rem; | |
font-weight: 300; | |
letter-spacing: 1px; | |
} | |
.menu-container { | |
align-content: flex-end; | |
} | |
.main-menu { | |
position: relative; | |
top: -2.1rem; | |
} | |
.main-menu li:after { | |
display: none; | |
} | |
.main-menu li { | |
display: inline-block; | |
color: white; | |
padding: 1rem 0.5rem; | |
margin: 0 1rem; | |
text-transform: uppercase; | |
letter-spacing: 1px; | |
font-weight: 300; | |
cursor: pointer; | |
} | |
.main-menu li.active, | |
.main-menu li:active, | |
.main-menu li:focus, | |
.main-menu li:hover { | |
border-bottom: 5px solid rgba(0,0,0,0.3); | |
} | |
.class-selection.screen { | |
display: flex; | |
} | |
.class-selection article { | |
flex: 1 1 50%; | |
} | |
.class-info { | |
display: none; | |
} | |
.class-info.active { | |
display: block; | |
} | |
.class-selection.list { | |
display: grid; | |
grid-template-columns: 25% 25% 25% 25%; | |
} | |
.class-selection.list li { | |
display: block; | |
background: rgba(0, 0, 0, 0.2); | |
color: white; | |
text-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.2); | |
text-transform: uppercase; | |
line-height: 1rem; | |
padding: 1.5rem 1rem; | |
margin: 0.25rem; | |
box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.3); | |
cursor: pointer; | |
text-align: center; | |
} | |
.class-selection.list li:after { | |
display: none; | |
} | |
.class-selection.list li.active, | |
.class-selection.list li:active, | |
.class-selection.list li:focus, | |
.class-selection.list li:hover { | |
background: rgba(0, 0, 0, 0.4); | |
box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.3); | |
color: white; | |
} | |
.selected-class-info { | |
max-width: 70%; | |
margin: 0 auto; | |
} | |
.class-image img { | |
min-height: 80vh; | |
} | |
.class-name, | |
.character-name { | |
font-weight: 500; | |
font-size: 1.4rem; | |
line-height: 2.4rem; | |
letter-spacing: 4px; | |
margin-top: 3rem; | |
} | |
.class-name:before { | |
content: ""; | |
display: block; | |
width: 50px; | |
height: 3px; | |
background: black; | |
} | |
.class-attributes { | |
font-weight: 400; | |
margin-top: -0.5rem; | |
border-bottom: 1px solid rgba(0, 0, 0, 0.3); | |
} | |
.class-description { | |
font-style: italic; | |
font-weight: 300; | |
border-bottom: 1px solid rgba(0, 0, 0, 0.3); | |
padding-bottom: 0.5rem; | |
line-height: 1.3rem; | |
} | |
.class-ability-title { | |
border: 0; | |
margin-bottom: -0.5rem; | |
letter-spacing: 1px; | |
} | |
.class-ability-description:after { | |
content: ""; | |
display: block; | |
width: 20px; | |
height: 3px; | |
background: rgba(0, 0, 0, 1); | |
margin-top: 0.5rem; | |
} | |
.class-info.customize { | |
display: flex; | |
} | |
.left-column { | |
margin-right: 2rem; | |
} | |
.customize.list { | |
display: block; | |
} | |
.customize-box { | |
background: rgba(26,28,30,0.9); | |
color: white; | |
padding: 1rem; | |
margin-top: 3.6rem; | |
} | |
.customize-box hgroup { | |
background: rgba(118, 68, 137, 0.6); | |
padding: 0.2rem 1rem; | |
margin: -1rem -1rem 0.5rem; | |
position: relative; | |
} | |
.customize-box .character-name { | |
letter-spacing: 1px; | |
font-weight: 400; | |
margin-top: 0; | |
} | |
.customize-box .character-class { | |
margin-top: -0.7rem; | |
margin-bottom: 0; | |
text-transform: capitalize; | |
letter-spacing: 0; | |
opacity: 0.6; | |
font-weight: 300; | |
border: none; | |
} | |
.customize-box .character-level { | |
font-weight: 300; | |
opacity: 0.3; | |
position: absolute; | |
right: 1rem; | |
bottom: 0; | |
border: none; | |
margin: 0; | |
letter-spacing: 1px; | |
} | |
.character-stats-box { | |
line-height: 1.3rem; | |
font-weight: 300; | |
color: rgba(255,255,255, 0.8); | |
} | |
.hp { | |
color: #9a72b6; | |
font-size: 3rem; | |
font-weight: 600; | |
line-height: 3.3rem; | |
margin-bottom: -0.7rem; | |
} | |
.hp span { | |
display: inline-block; | |
font-size: 1rem; | |
font-weight: 300; | |
opacity: 0.8; | |
position: relative; | |
top: -1rem; | |
left: 0.5rem; | |
} | |
.slogan { | |
border-bottom: 1px solid rgba(255,255,255,0.3); | |
padding-bottom: 0.5rem; | |
} | |
.character-stats { | |
margin: 1rem; | |
} | |
.character-stats dd { | |
margin-bottom: 0.2rem; | |
} | |
.character-stats .stat-name, | |
.character-stats dt { | |
float: left; | |
margin-right: 0.5rem; | |
text-align: right; | |
width: 25%; | |
} | |
.character-stats dd { | |
position: relative; | |
} | |
.stat-abbr { | |
position: absolute; | |
right: 15%; | |
top: 0; | |
opacity: 0.2; | |
} | |
.stat-level { | |
background: rgba(154, 114, 182, 0.6); | |
width: 25px; | |
text-align: center; | |
display: inline-block; | |
border-radius: 3px; | |
font-size: 0.7rem; | |
line-height: 1rem; | |
position: relative; | |
top: -2px; | |
left: 5px; | |
} | |
/* Progress Bars */ | |
progress, progress[role] { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
border: none; | |
background-size: auto; | |
height: 18px; | |
width: 60%; | |
} | |
progress[value]::-webkit-progress-value { | |
background-color: white; | |
} | |
progress[value]::-webkit-progress-bar { | |
background-color: rgba(255,255,255,0.1); | |
} | |
progress[value]::-moz-progress-value { | |
background-color: white; | |
} | |
progress[value]::-moz-progress-bar { | |
background-color: rgba(255,255,255,0.1); | |
} | |
.class-ability-title { | |
border-top: 1px solid rgba(255,255,255,0.3); | |
} |
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
<link href="https://fonts.googleapis.com/css?family=Roboto,IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment