Skip to content

Commit

Permalink
change menu
Browse files Browse the repository at this point in the history
  • Loading branch information
svinchy committed May 25, 2023
1 parent 36474ce commit 9910a7c
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 128 deletions.
11 changes: 6 additions & 5 deletions src/components/Banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ const props = {
boxSizing: 'border-box',
padding: '- - D -',
align: 'flex-end center',
style: {
backgroundRepeat: 'no-repeat',
animationDuration: '4s',
animatonTimingFunction: 'cubic-bezier(.17,.67,.65,.6)',

},
':before': {
content: '""',
boxSize: '100% 100%',
Expand All @@ -27,11 +33,6 @@ const props = {
bottom: '0',
pointerEvents: 'none'
},
style: {
backgroundRepeat: 'no-repeat',
animationDuration: '4s',
animatonTimingFunction: 'cubic-bezier(.17,.67,.65,.6)'
},
'@minTabletL': { style:{ backgroundAttachment: 'fixed !important' }},

heading: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import INSTAGRAM_PNG from '../assets/icons/social-instagram.png'
import { BookingLink } from './BookingLink'

const props = {
minWidth: '90%',
minWidth: '95%',
'@maxMobileM': { minWidth: '95%' },
position: 'fixed',
bottom: '0',
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const menu = {
}

const props = {
minWidth: '90%',
minWidth: '95%',
// '@maxMobileM': { minWidth: '95%' },
position: 'fixed',
top: '0',
Expand All @@ -54,7 +54,7 @@ const props = {
// borderBottom: '1px solid red',
// border: 'solid, cream .5',
// borderWidth: '0 0 .5px 0',
round: '0 0 A2 A2',
// round: '0 0 A2 A2',
overflow: 'hidden',
style: {
mixBlendMode: 'difference',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const props = {
fontWeight: '400',
textTransform: 'uppercase',
whiteSpace: 'nowrap',
letterSpacing: '3px',
letterSpacing: '2.5px',
overflow: 'hidden',
'@minTabletS': {
// opacity: '.7',
Expand Down
8 changes: 7 additions & 1 deletion src/components/PopUpRoomTour.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,11 @@ export const PopUpRoomTour = {
}
},

logo: {}
logo: {
class: {
show: (element, state) => state.activePopUp
? { opacity: '.8', transform: 'rotate3d(2, 1, 1, -0.1turn)' }
: { opacity: '0', transform: 'rotate3d(0)' }
}
}
}
61 changes: 38 additions & 23 deletions src/pages/Sololaki.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ const menu = {

const header = {
extend: Header,
class: {
show: (element, state) => state.activeResidenceMenu
? {
paddingLeft: `${5 / 16}em`,
paddingRight: `${5 / 16}em`,
transition: 'padding-left 1s ease, padding-right .75s ease'
}
: {
paddingLeft: `0`,
paddingRight: `0`,
transition: 'padding-left 1s ease, padding-right .55s ease'
}
},
...[
{},
{},
Expand Down Expand Up @@ -151,7 +164,9 @@ export const Sololaki = {
show: (element, state) => state.activeResidenceMenu
? {
height: '90%',
transition: 'height .75s ease'
transition: 'height .75s ease',
backdropFilter: 'blur(30px)',
background: 'rgba(0, 0, 0, .15)'
}
: {
height: '46px',
Expand All @@ -161,28 +176,28 @@ export const Sololaki = {
}
},

menuBackImage: {
props: {
backgroundImage: 'url(' + ORNAMENT_PNG + ')',
backgroundSize: 'cover',
backgroundPosition: 'center',
style: { backgroundAttachment: 'fixed'},
':after': { background: 'naviGreen .9' }
},
class: {
show: (element, state) => state.activeResidenceMenu
? {
height: '90%',
opacity: '1',
transition: 'height .75s ease, opacity .75s ease',
}
: {
height: '46px',
opacity: '0',
transition: 'height .55s ease, opacity .55s ease',
}
}
},
// menuBackImage: {
// props: {
// // backgroundImage: 'url(' + ORNAMENT_PNG + ')',
// // backgroundSize: 'cover',
// // backgroundPosition: 'center',
// style: { backgroundAttachment: 'fixed'},
// ':after': { background: 'naviGreen .9' }
// },
// class: {
// show: (element, state) => state.activeResidenceMenu
// ? {
// height: '90%',
// opacity: '1',
// transition: 'height .75s ease, opacity .75s ease',
// }
// : {
// height: '46px',
// opacity: '0',
// transition: 'height .55s ease, opacity .55s ease',
// }
// }
// },

header,
menu,
Expand Down
62 changes: 39 additions & 23 deletions src/pages/Travel.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ const menu = {

const header = {
extend: Header,
class: {
show: (element, state) => state.activeTravelMenu
? {
paddingLeft: `${10 / 16}em`,
paddingRight: `${10 / 16}em`,
transition: 'padding-left 1s ease, padding-right .75s ease'
}
: {
paddingLeft: `0`,
paddingRight: `0`,
transition: 'padding-left 1s ease, padding-right .55s ease'
}
},
...[
{},
{},
Expand Down Expand Up @@ -203,7 +216,9 @@ export const Travel = {
show: (element, state) => state.activeTravelMenu
? {
height: '90%',
transition: 'height .75s ease'
transition: 'height .75s ease',
backdropFilter: 'blur(30px)',
background: 'rgba(0, 0, 0, .15)'
}
: {
height: '46px',
Expand All @@ -213,28 +228,29 @@ export const Travel = {
}
},

menuBackImage: {
props: {
backgroundImage: 'url(' + ORNAMENT_PNG + ')',
backgroundSize: 'cover',
backgroundPosition: 'center',
style: { backgroundAttachment: 'fixed'},
':after': { background: 'naviBlue .9',}
},
class: {
show: (element, state) => state.activeTravelMenu
? {
height: '90%',
opacity: '1',
transition: 'height .75s ease, opacity .75s ease',
}
: {
height: '46px',
opacity: '0',
transition: 'height .55s ease, opacity .55s ease',
}
}
},
// menuBackImage: {
// props: {
// // backgroundImage: 'url(' + ORNAMENT_PNG + ')',
// // backgroundSize: 'cover',
// // backgroundPosition: 'center',
// style: { backgroundAttachment: 'fixed'},
// ':after': { background: 'naviBlue .9',}
// },
// class: {
// show: (element, state) => state.activeTravelMenu
// ? {
// height: '90%',
// opacity: '1',
// backdropFilter: 'blur(10px)',
// transition: 'height .75s ease, opacity .75s ease',
// }
// : {
// height: '46px',
// opacity: '0',
// transition: 'height .55s ease, opacity .55s ease',
// }
// }
// },

state,
header,
Expand Down
6 changes: 3 additions & 3 deletions src/pages/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ export const properties = {

menuBackground: {
position: 'fixed',
width: '90%',
width: '95%',
minHeight: '48px',
top: '0',
zIndex: '35',
alignSelf: 'center',
background: 'transparent',
round: '0 0 A2 A2',
border: 'solid, orange',
borderWidth: '0 0 1px 0',
borderWidth: '0 0 .5px 0',
style: {
animationName: opacity,
animationDuration: '2s',
Expand All @@ -54,7 +54,7 @@ export const properties = {
menuBackImage: {
backgroundColor: 'orange',
position: 'fixed',
boxSize: '48px 90%',
boxSize: '48px 95%',
top: '0',
zIndex: '30',
alignSelf: 'center',
Expand Down
1 change: 0 additions & 1 deletion src/sections/travelSections/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { positionOpacity, bannerBackground2 } from '../../animations'

const props = {
backgroundImage: 'url(' + LAKE_JPG + ')',
background: 'radial-gradient(rgba(0, 47, 57, 1), rgba(0, 47, 57, 1))',
style: { animationName: positionOpacity },
'@maxTabletM': {
backgroundImage: 'url(' + LAKE_TABLET_JPG + ')',
Expand Down
70 changes: 2 additions & 68 deletions src/sections/travelSections/gallery/gridGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,8 @@ const props = {
'@maxMobileL': {
height: '60%',
width: '100%',
overflow: 'hidden',
// border: '3px solid black',
// minHeight: '100%',
// flex: '1'
overflow: 'hidden'
},
// '@maxTabletS': {
// overflow: 'hidden',
// fontSize: `${15 / 16}em`
// },

// ':before': {
// content: '""',
// boxSize: '100% D',
// position: 'absolute',
// top: '0',
// left: '0',
// zIndex: '10',
// background: 'linear-gradient(to right, rgba(255, 249, 237, 1) 30%, rgba(255, 249, 237, 0) 70%)',
// pointerEvents: 'none',
// '@minTabletS': { display: 'none' }
// },

title: {
position: 'absolute',
Expand Down Expand Up @@ -71,22 +52,6 @@ const props = {
align: 'center center',
style: { boxShadow: 'rgba(0, 0, 0, 0.55) -20px 0px 20px 5px' }
},
// '@maxTabletS': {
// fontSize: 'E',
// color: 'cream .75',
// height: '100%',
// left: 'initial',
// top: '0',
// right: '0',
// padding: 'Z -',
// transform: 'rotate(0)',
// background: 'naviBlue',
// align: 'center center',
// style: {
// boxShadow: 'rgba(0, 0, 0, 0.45) -20px 0px 30px 5px'
// }
// },
// '@maxMobileM': { padding: 'B1 -' },
':before': { boxSize: 'C V' },
':after': { boxSize: 'C V' }
},
Expand All @@ -99,27 +64,11 @@ const props = {
gap: 'Y',
'@maxMobileL': {
display: 'flex',
// border: '3px solid red',
height: '100%',
gap: 'A',
padding: '- D - -',
style: {overflowX: 'auto', '::-webkit-scrollbar': { display: 'none' }}
},
// '@maxTabletS': {
// display: 'flex',
// maxWidth: '100%',
// padding: 'D1 E2 D1 C',
// minHeight: 'E2',
// gap: 'A',
// boxSizing: 'content-box',
// background: 'naviBlue',
// style: {
// overflow: 'auto',
// '::-webkit-scrollbar': { display: 'none' }
// }
// },
// '@maxMobileM': { padding: 'D E D B' },

childProps: {
position: 'relative',
backgroundSize: 'cover',
Expand All @@ -132,17 +81,7 @@ const props = {
minWidth: 'calc(100% - 68px)',
round: '0 !important',
border: 'none'
// minHeight: 'I',
// style: { borderRadius: '0 !important'}
},
// '@maxMobileM': { minWidth: 'G1'},
// '@maxMobileS': { minWidth: 'G'},
// '@maxTabletS': {
// minWidth: `${250 / 16}em`,
// round: 'B !important',
// border: 'solid, naviBlue',
// borderWidth: '1px',
// },
':before': {
content: '""',
position: 'absolute',
Expand Down Expand Up @@ -172,14 +111,12 @@ const props = {

scroll: {
border: '3px solid red',
// '@minTabletS': { display: 'none' },
position: 'absolute',
bottom: '0',
left: 'C',
zIndex: '10',
color: 'cream',
opacity: '.75',
// '@maxMobileM': { left: 'A1' },
lefts: { src: LEFT_ARROW },
rights: { src: RIGHT_ARROW }
}
Expand Down Expand Up @@ -333,8 +270,5 @@ export const gridGalleries = {
}
}
]
},
// scroll: {
// extend: ScrollTitle
// }
}
}

0 comments on commit 9910a7c

Please sign in to comment.