WIP React > Svelte
Put most of the developed design into Svelte
This commit is contained in:
83
src/style/molecules/_footer.scss
Normal file
83
src/style/molecules/_footer.scss
Normal file
@@ -0,0 +1,83 @@
|
||||
/* ==========================================================================
|
||||
FOOTER
|
||||
========================================================================== */
|
||||
.footer {
|
||||
background-color: #2D0458;
|
||||
|
||||
.wrap {
|
||||
display: block;
|
||||
padding-top: 48px;
|
||||
padding-bottom: 32px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 120px;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Left part
|
||||
&__left {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 32px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Right part
|
||||
&__right{
|
||||
font-size: 14px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
// Instagram
|
||||
.instagram {
|
||||
margin-bottom: 20px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin: 0 40px 0 0;
|
||||
}
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
|
||||
span {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Collective
|
||||
.cetrucflotte {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
span {
|
||||
color: rgba(#fff, .4)
|
||||
}
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
margin: 12px 0 0 12px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
17
src/style/molecules/_globe.scss
Normal file
17
src/style/molecules/_globe.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
// Globe
|
||||
.globe {
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
|
||||
.wrap {
|
||||
@include breakpoint (xs) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Image (for now)
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
55
src/style/molecules/_pagination.scss
Normal file
55
src/style/molecules/_pagination.scss
Normal file
@@ -0,0 +1,55 @@
|
||||
// Pagination
|
||||
.pagination {
|
||||
background-color: $color-tertiary;
|
||||
text-align: center;
|
||||
padding: 64px 0 72px;
|
||||
position: relative;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
padding: 16vw 0 7.5vw;
|
||||
margin-top: -64px;
|
||||
}
|
||||
@include breakpoint (xl) {
|
||||
padding-top: 200px;
|
||||
}
|
||||
|
||||
// Pages
|
||||
&__page {
|
||||
p {
|
||||
font-family: $font-serif-extra;
|
||||
color: rgba($color-text, .15);
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
font-size: rem(72px);
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: rem(160px);
|
||||
}
|
||||
|
||||
span {
|
||||
font-family: $font-serif;
|
||||
color: #FF0536;
|
||||
position: absolute;
|
||||
font-size: 18px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -65%);
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: rem(40px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Caption
|
||||
&__caption {
|
||||
font-size: 10px;
|
||||
color: $color-lightgray;
|
||||
letter-spacing: 2px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
146
src/style/molecules/_photo.scss
Normal file
146
src/style/molecules/_photo.scss
Normal file
@@ -0,0 +1,146 @@
|
||||
.photo {
|
||||
|
||||
// Location
|
||||
&__location {
|
||||
margin-bottom: 32px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-bottom: 56px;
|
||||
}
|
||||
|
||||
@include breakpoint (xs) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: left;
|
||||
white-space: pre-line;
|
||||
|
||||
@include breakpoint (xs) {
|
||||
font-size: rem(40px);
|
||||
}
|
||||
}
|
||||
p {
|
||||
color: $color-lightgray;
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
// Image container
|
||||
&__image {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
|
||||
@include breakpoint (xs) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Alignment (left or right for list view)
|
||||
.align {
|
||||
position: relative;
|
||||
max-width: 1180px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// Image container
|
||||
&--img {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
overflow: hidden;
|
||||
border-radius: 0;
|
||||
box-shadow: 0 8px 18px rgba(#715E4E, .2);
|
||||
|
||||
@include breakpoint (sm) {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
// Cursor
|
||||
.cursor {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
// Overlay
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background-color: $color-primary;
|
||||
display: block;
|
||||
z-index: 3;
|
||||
transition: all 200ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
|
||||
// Hover
|
||||
&:hover {
|
||||
cursor: none;
|
||||
|
||||
.photo__image--img:after {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Date (on the side)
|
||||
&--date {
|
||||
display: block;
|
||||
color: $color-lightgray;
|
||||
font-size: rem(14px);
|
||||
margin-top: 16px;
|
||||
padding: 0 8vw;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
left: calc(100% + 30px);
|
||||
bottom: 0;
|
||||
transform: rotate(270deg);
|
||||
transform-origin: 0 0;
|
||||
white-space: nowrap;
|
||||
line-height: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Photo number
|
||||
&--number {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
font-family: $font-serif-extra;
|
||||
color: rgba($color-tertiary, .5);
|
||||
font-size: rem(124px);
|
||||
bottom: -80px;
|
||||
right: 24px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: 18.75vw;
|
||||
left: 92%;
|
||||
top: 50%;
|
||||
z-index: 1;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user