Add good backgrounds, many style improvements

This commit is contained in:
Joshua Seigler 2019-05-04 01:19:43 -04:00
parent 51a4c5bfba
commit 9ec942b3fa
22 changed files with 88 additions and 49 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 KiB

View file

@ -1,9 +1,11 @@
.footer { .footer {
align-self: stretch;
font-family: var(--font-header); font-family: var(--font-header);
justify-content: center; justify-content: center;
align-items: center; align-items: center;
display: flex; display: flex;
line-height: 2; line-height: 2;
background-image: linear-gradient(to top, hsla(0,0%,0%,0.8), hsla(0,0%,0%,0));
} }
.footer span a { .footer span a {
@ -12,7 +14,7 @@
} }
.footer a:hover { .footer a:hover {
color: hsla(0, 100%, 50%, 1); color: #E2264D;
} }
.heart { .heart {

View file

@ -1,6 +1,7 @@
.nav { .nav {
display: flex; align-self: stretch;
justify-content: center; justify-content: center;
background-image: linear-gradient(to bottom, hsla(0,0%,0%,0.8), hsla(0,0%,0%,0));
} }
.links { .links {
@ -16,7 +17,7 @@
padding: 0.5em; padding: 0.5em;
} }
.nav a:hover { .nav a:hover, .nav a:focus {
background-color: var(--blue); background-color: #FED600;
color: var(--white); color: black;
} }

View file

@ -13,16 +13,20 @@
align-items: center; align-items: center;
} }
.skill:before { .skill:before, .skill:after {
content: '';
background-image: linear-gradient(to bottom, #333, #555);
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
z-index: -1;
clip-path: polygon(0 15%, 15% 0, 100% 0, 100% 85%, 85% 100%, 0% 100%); clip-path: polygon(0 15%, 15% 0, 100% 0, 100% 85%, 85% 100%, 0% 100%);
}
.skill:before {
content: '';
z-index: -1;
background-image: linear-gradient(to bottom, #333, #555);
transform: scale(0.9);
filter: brightness(50%); filter: brightness(50%);
} }
@ -31,22 +35,37 @@
} }
.usable:before { .usable:before {
background-image: linear-gradient(to bottom, hsl(var(--themeHue),91%,50%), hsl(var(--themeHue),91%,30%)); background-image: linear-gradient(to bottom, hsl(var(--themeHue),91%,40%), hsl(var(--themeHue),91%,20%));
}
.skill:hover:before {
background-image: linear-gradient(to bottom, hsl(30,100%,30%), hsl(30,100%,60%));
filter: brightness(100%);
} }
.actionSkill:before { .usable:after {
z-index: -2;
content: '';
background-color: hsl(var(--themeHue),91%,70%);
}
.skill:hover:before {
background-image: linear-gradient(to bottom, hsl(51, 100%, 40%), hsl(51, 100%, 50%));
filter: brightness(100%);
}
.skill:hover:after {
background-color: black;
}
.skill:hover {
color: black;
}
.actionSkill:before, .actionSkill:after {
clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
} }
.chevron:before { .chevron:before, .chevron:after {
clip-path: polygon(0 0, 50% 25%, 100% 0, 100% 75%, 50% 100%, 0 75%); clip-path: polygon(0 0, 50% 25%, 100% 0, 100% 75%, 50% 100%, 0 75%);
transform-origin: 50% 60%;
} }
.diamond:before { .diamond:before, .diamond:after {
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0 50%); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0 50%);
} }
@ -85,5 +104,6 @@
right: -0.25rem; right: -0.25rem;
font-size: 0.75em; font-size: 0.75em;
background-color: #333; background-color: #333;
color: var(--whiteText);
padding: 0.1em; padding: 0.1em;
} }

View file

@ -5,6 +5,23 @@
cursor: default; cursor: default;
} }
.title {
display: block;
margin: 0 auto;
top: 3rem;
text-transform: uppercase;
text-align: center;
font-size: 3rem;
color: hsl(51, 100%, 50%);
background-color: black;
padding: 0.2em;
line-height: 1;
}
.subtitle {
text-transform: uppercase;
font-size: 0.5em;
}
.trees, .tier { .trees, .tier {
display: flex; display: flex;
} }
@ -19,6 +36,7 @@
.tree { .tree {
--themeColor: hsl(var(--themeHue),91%,22%); --themeColor: hsl(var(--themeHue),91%,22%);
display: flex; display: flex;
z-index: 1;
flex-direction: column; flex-direction: column;
margin: 1rem; margin: 1rem;
padding: 0 3.5rem; padding: 0 3.5rem;

View file

@ -37,7 +37,9 @@ export default function VaultHunter ({
return ( return (
<div class={style.VaultHunter}> <div class={style.VaultHunter}>
<h2>{ name } the { discipline }</h2> <h1 class={style.title}>{ name }
<div class={style.subtitle}>the { discipline }</div>
</h1>
<div class={style.trees}> <div class={style.trees}>
{ trees } { trees }
</div> </div>

View file

@ -1,11 +1,9 @@
:root { :root {
--radius: 2px; --radius: 2px;
--blue: #1E88E5; --whiteText: hsla(0,0%,100%,0.8);
--white: #FFFFFF;
--offwhite: #F8F8FA;
--transition-duration: 300ms; --transition-duration: 300ms;
--font-header: sans-serif; --font-header: sans-serif;
--font-list: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; --font-list: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
font-size: 1.5vw; font-size: 1.5vw;
} }
@ -33,9 +31,13 @@ body {
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: #333; color: #F8F8FA;
font-family: var(--font-list); font-family: var(--font-list);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
background-color: #333;
background-image: url('@assets/backgrounds/background2.jpg');
background-size: cover;
background-position: center;
} }
a { a {
@ -44,9 +46,10 @@ a {
} }
a:hover { a:hover {
color: #E2264D;
text-decoration: underline; text-decoration: underline;
} }
a:visited { a:visited {
color: rgb(0,80,160); color: inherit;
} }

View file

@ -1,7 +0,0 @@
.section {
padding-bottom: 64px;
}
.section h2 {
margin-bottom: 16px;
}

View file

@ -1,9 +1,9 @@
import style from './index.css'; // import style from './index.css';
export default function () { export default function () {
return ( return (
<div> <div>
Home Home
</div> </div>
); );
} }

View file

@ -3,11 +3,11 @@ import VaultHunter from '@components/VaultHunter';
import skills from './skills.js'; import skills from './skills.js';
export default function Operative () { export default function Operative () {
return ( return (
<VaultHunter <VaultHunter
name = 'Zane' name='Zane'
discipline = 'Operative' discipline='Operative'
skills = { skills } skills={skills}
/> />
); );
} }

View file

@ -3,11 +3,11 @@ import VaultHunter from '@components/VaultHunter';
import skills from './skills.js'; import skills from './skills.js';
export default function Siren () { export default function Siren () {
return ( return (
<VaultHunter <VaultHunter
name = 'Amara' name='Amara'
discipline = 'Siren' discipline='Siren'
skills = { skills } skills={skills}
/> />
); );
} }