-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
…to feat-mvp
Showing
15 changed files
with
236 additions
and
45 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import './styles.scss'; | ||
|
||
export interface IEquipment { | ||
type: string; | ||
name?: string | undefined; | ||
} | ||
|
||
const Equipment = (props: IEquipment) => { | ||
|
||
const { name, type } = props; | ||
|
||
if (!name) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={'mi-equipment'} style={{ | ||
backgroundImage: `url("/assets/img/hero/${type}/${name}.png")`, | ||
}}> | ||
<div className="equipment-info"> | ||
<div className="equipment-info-content"> | ||
<ul className="loot-list"> | ||
<li className="loot-item"></li> | ||
<li className="loot-item"></li> | ||
<li className="loot-item"></li> | ||
</ul> | ||
|
||
<p className="equipment-desc">This piece of equipment is synthesized from 3 pieces of loot</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Equipment; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.mi-equipment { | ||
position: relative; | ||
width: 64px; | ||
height: 64px; | ||
background-repeat: no-repeat; | ||
image-rendering: pixelated; | ||
background-size: 1600%; | ||
background-position: 2px 4px; | ||
|
||
.equipment-info { | ||
display: none; | ||
position: absolute; | ||
z-index: 1; | ||
top: -80px; | ||
left: 99%; | ||
width: 440px; | ||
padding-left: 20px; | ||
height: 226px; | ||
|
||
|
||
.equipment-info-content { | ||
position: relative; | ||
width: 420px; | ||
height: 100%; | ||
padding: 12px; | ||
border-radius: 10px; | ||
border: 5px solid #DCC7AF; | ||
background: #FFF5E9; | ||
|
||
&::before, &::after { | ||
content: ''; | ||
position: absolute; | ||
right: 100%; | ||
top: 50%; | ||
transform: translate3d(0, -50%, 0); | ||
} | ||
|
||
&::before { | ||
border: 20px solid; | ||
border-color: transparent #DCC7AF transparent transparent; | ||
} | ||
|
||
&::after { | ||
border: 14px solid; | ||
transform: translate3d(1px, -50%, 0); | ||
border-color: transparent #FFF5E9 transparent transparent; | ||
} | ||
} | ||
|
||
.loot-list { | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
.loot-item { | ||
width: 120px; | ||
height: 120px; | ||
background: #000; | ||
} | ||
} | ||
|
||
.equipment-desc { | ||
margin-top: 12px; | ||
font-size: 12px; | ||
line-height: 1.57; | ||
color: #BC8C61; | ||
} | ||
} | ||
|
||
&:hover .equipment-info { | ||
//display: block; | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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