-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #878 from bounswe/main
Deploy recent changes 27.11.2023 15.37
- Loading branch information
Showing
17 changed files
with
334 additions
and
143 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
108 changes: 52 additions & 56 deletions
108
app/frontend/src/Components/Achievement/SquareAchievement/SquareAchievement.module.scss
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 |
---|---|---|
@@ -1,58 +1,54 @@ | ||
@import "../../../colors"; | ||
.achievement { | ||
display: flex; | ||
align-items: center; | ||
margin: 10px; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 8px; | ||
transition: border-color 0.3s; | ||
width: 10%; | ||
height: 10%; | ||
background-color: $violet-light-30; | ||
} | ||
|
||
|
||
|
||
.icon { | ||
border-radius: 10%; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.achievement_content { | ||
flex: 1; | ||
} | ||
|
||
|
||
.achievementTitle { | ||
visibility: visible; | ||
font-size: 18px; | ||
} | ||
|
||
.achievementGame { | ||
visibility: visible; | ||
font-size: 14px; | ||
} | ||
|
||
|
||
.achievement_description { | ||
font-size: 14px; | ||
color: #555; | ||
} | ||
|
||
.floatingDescription { | ||
visibility: hidden; | ||
color: #fff; | ||
text-align: center ; | ||
border-radius: 6px; | ||
padding: 5px 0; | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
|
||
.tooltip{ | ||
position: relative; | ||
display: inline-block; | ||
border-bottom: 1px dotted black; | ||
} | ||
display: flex; | ||
align-items: center; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 8px; | ||
transition: border-color 0.3s; | ||
width: 100px; | ||
height: 100px; | ||
background-color: $violet-light-30; | ||
} | ||
|
||
.icon { | ||
border-radius: 10%; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.achievement_content { | ||
flex: 1; | ||
} | ||
|
||
.achievementTitle { | ||
visibility: visible; | ||
font-size: 18px; | ||
} | ||
|
||
.achievementGame { | ||
visibility: visible; | ||
font-size: 14px; | ||
} | ||
|
||
.achievement_description { | ||
font-size: 14px; | ||
color: #555; | ||
} | ||
|
||
.floatingDescription { | ||
visibility: hidden; | ||
color: #fff; | ||
text-align: center; | ||
border-radius: 6px; | ||
padding: 5px 0; | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
|
||
.tooltip { | ||
position: relative; | ||
display: inline-block; | ||
border-bottom: 1px dotted black; | ||
padding: 0; | ||
} |
45 changes: 19 additions & 26 deletions
45
app/frontend/src/Components/Achievement/SquareAchievement/SquareAchievement.tsx
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 |
---|---|---|
@@ -1,31 +1,24 @@ | ||
import React, { useState } from 'react'; | ||
import styles from './SquareAchievement.module.scss'; | ||
import { Tooltip } from 'antd'; | ||
|
||
|
||
function SquareAchievement ({ props }:{ props: any }) { | ||
|
||
import React, { useState } from "react"; | ||
import styles from "./SquareAchievement.module.scss"; | ||
import { Tooltip } from "antd"; | ||
|
||
function SquareAchievement({ props }: { props: any }) { | ||
return ( | ||
<div> | ||
<div className= {styles.achievement}> | ||
|
||
|
||
<div className={styles.achievement_content}> | ||
<Tooltip title={props.title+ ": "+ props.description} className={styles.tootip}> | ||
<img | ||
src={`${import.meta.env.VITE_APP_IMG_URL}${props?.icon}`} | ||
alt="achievement icon" | ||
className={styles.icon} | ||
></img> | ||
</Tooltip> | ||
</div> | ||
|
||
</div> | ||
|
||
<div className={styles.achievement}> | ||
<div className={styles.achievement_content}> | ||
<Tooltip | ||
title={props.title + ": " + props.description} | ||
className={styles.tootip} | ||
> | ||
<img | ||
src={`${import.meta.env.VITE_APP_IMG_URL}${props?.icon}`} | ||
alt="achievement icon" | ||
className={styles.icon} | ||
></img> | ||
</Tooltip> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
} | ||
|
||
export default SquareAchievement; | ||
export default SquareAchievement; |
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
Oops, something went wrong.