Skip to content

Commit

Permalink
Merge pull request #8 from jetbrains-academy/add-duck-shop-client
Browse files Browse the repository at this point in the history
Add duck shop client
  • Loading branch information
nbirillo authored Aug 10, 2023
2 parents 9985157 + aa99b7e commit 315fdee
Show file tree
Hide file tree
Showing 36 changed files with 579 additions and 135 deletions.
12 changes: 12 additions & 0 deletions common/src/commonMain/kotlin/duck/shop/Duck.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package duck.shop

import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport

@OptIn(ExperimentalJsExport::class)
@JsExport
data class JsDuck(
val name: String,
val description: String? = null,
val hasKotlinAttribute: Boolean = false,
)
121 changes: 120 additions & 1 deletion duckShopFrontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,123 @@
height: inherit;
}

/****************BASE***************/
/****************BASE***************/

.App-button-collection {
background-size: contain;
width: 15vmin;
height: 5vmin;
}

.App-button-list {
background-image: url('assets/list_button.svg');
}

.App-button-set {
background-image: url('assets/set_button.svg');
}

.App-button-map {
background-image: url('assets/map_button.svg');
}

.App-ducks-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.App-ducks-row {
align-items: center;
justify-content: center;
display: flex;
flex-direction: row;
}

.App-ducks-row-top {
padding-top: 3vmin;
padding-bottom: 0.5vmin;
}

.App-ducks-row-bottom {
padding-top: 0.5vmin;
padding-bottom: 2vmin;
}

.App-duck-container {
background-image: url('assets/duck_box.svg');
height: 18vmin;
width: 18vmin;
background-size: contain;
background-repeat: no-repeat;
margin-left: 1vmin;
margin-right: 1vmin;
}


.App-duck-image {
height: 100%;
width: 100%;
background-repeat: no-repeat;
background-size: contain;
margin-bottom: 2vmin;
margin-right: 0;
}

.App-duck-image-alex {
background-image: url('assets/ducks/alex.svg');
}

.App-duck-image-daniel {
background-image: url('assets/ducks/daniel.svg');
}

.App-duck-image-dorian {
background-image: url('assets/ducks/dorian.svg');
}

.App-duck-image-jack {
background-image: url('assets/ducks/jack.svg');
}

.App-duck-image-kristian {
background-image: url('assets/ducks/kristian.svg');
}

.App-duck-image-leo {
background-image: url('assets/ducks/leo.svg');
}

.App-duck-image-mrpink {
background-image: url('assets/ducks/mr.pink.svg');
}

.App-duck-image-oliver {
background-image: url('assets/ducks/oliver.svg');
}

.App-duck-image-piter {
background-image: url('assets/ducks/piter.svg');
}

.App-duck-image-vanessa {
background-image: url('assets/ducks/vanessa.svg');
}


.App-duck-container-label {
background-image: url('assets/duck_label.svg');
position: absolute;
font-size: 15px;
padding-top: 4px;
padding-bottom: 4px;
margin-top: -4.7vmin;
margin-left: 0.5vmin;
width: 8vmin;
text-align: center;
}

.App-display-none {
display: none;
}
3 changes: 3 additions & 0 deletions duckShopFrontend/src/assets/best.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions duckShopFrontend/src/assets/duck_box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions duckShopFrontend/src/assets/duck_label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions duckShopFrontend/src/assets/ducks/alex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions duckShopFrontend/src/assets/ducks/daniel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 315fdee

Please sign in to comment.