Skip to content

Commit

Permalink
add merchant and improve margins
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Sep 19, 2022
1 parent b19512e commit bb265c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions components/discover/page2.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ function Page2({ direction }) {
return (
<div className={[styles.page1, directionStyle].join(" ")}>
<div className={styles.cards}>
<div className={[styles.vertical_card, styles.bg_merchant].join(" ")}>
<div className={styles.vertical_content}>
<h1>Merchants</h1>
<p>Merchants gain prestige by trading. They establish trade routes and go in search of the most sought-after resources from other kingdoms.</p>
</div>
</div>

<div className={[styles.vertical_card, styles.bg_diplomat].join(" ")}>
<div className={styles.vertical_content}>
Expand All @@ -34,6 +28,14 @@ function Page2({ direction }) {
<p>Warlords gain prestige by destroying other empires. They can put violence in the service of the wealthy or stand on the side of good and defend the just causes.</p>
</div>
</div>

<div className={[styles.vertical_card, styles.bg_merchant].join(" ")}>
<div className={styles.vertical_content}>
<h1>Merchants</h1>
<p>Merchants gain prestige by trading. They establish trade routes and go in search of the most sought-after resources from other kingdoms.</p>
</div>
</div>

</div>
</div>
);
Expand Down
Binary file added public/illustrations/merchant.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion styles/Discover.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

.bg_merchant {
background-image: linear-gradient(rgba(0, 0, 0, 0),
rgb(27, 20, 14)), url("/illustrations/warrior2.webp");
rgb(27, 20, 14)), url("/illustrations/merchant.webp");
}

.bg_diplomat {
Expand Down
2 changes: 1 addition & 1 deletion styles/components/Slider.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
display : flex;
align-items : center;
justify-content: center;
margin-top : 20px;
}

@media (max-width: 1240px) {
.slider {
margin-top : 20px;
margin-bottom: 50px;
}
}
Expand Down

0 comments on commit bb265c2

Please sign in to comment.