diff --git a/src/App.scss b/src/App.scss index fcf3262..53a39d6 100644 --- a/src/App.scss +++ b/src/App.scss @@ -8,6 +8,7 @@ @import "./sass/base/utilities"; @import "./sass/components/button"; +@import "./sass/components/composition"; @import "./sass/layout/header"; @import "./sass/layout/grid"; diff --git a/src/commons/about-section/about.jsx b/src/commons/about-section/about.jsx index fa7225a..1aa2c9e 100644 --- a/src/commons/about-section/about.jsx +++ b/src/commons/about-section/about.jsx @@ -1,4 +1,7 @@ import ButtonSecondary from "../../components/button/button-secondary"; +import nat1Large from "../../commons/images/nat-1-large.jpg"; +import nat2Large from "../../commons/images/nat-2-large.jpg"; +import nat3Large from "../../commons/images/nat-3-large.jpg"; function About() { return ( @@ -31,7 +34,25 @@ function About() { -
Image
+
+
+ Photo 1 + Photo 2 + Photo 3 +
+
diff --git a/src/sass/components/composition.scss b/src/sass/components/composition.scss new file mode 100644 index 0000000..6557a7c --- /dev/null +++ b/src/sass/components/composition.scss @@ -0,0 +1,35 @@ +.composition { + position: relative; + &__photo { + width: 55%; + box-shadow: 0 1.5rem 4rem rgba($color-black, 0.4); + border-radius: 2px; + position: absolute; + z-index: 10; + transition: all 0.2s; + + &--p1 { + left: 0; + top: -2rem; + } + &--p2 { + right: 0; + top: 2rem; + } + &--p3 { + left: 20%; + top: 10rem; + } + + &:hover { + outline: 1.5rem solid $color-primary; + transform: scale(1.05) translateY(-0.5rem); + box-shadow: 0 2.5rem 4rem rgba($color-black, 0.5); + z-index: 20; + } + } + + &:hover &__photo:not(:hover) { + transform: scale(0.95); + } +}