├── public ├── robots.txt ├── favicon.ico ├── logo192.png ├── logo512.png ├── manifest.json └── index.html ├── src ├── images │ ├── yasmeen.webp │ ├── compressed-image.jpg │ └── down-arrow.svg ├── setupTests.js ├── data.js ├── App.test.js ├── components │ ├── header.js │ └── scrollForMore.js ├── index.css ├── index.js ├── App.js ├── pages │ ├── home.js │ └── model.js ├── serviceWorker.js └── App.scss ├── .gitignore ├── package.json └── README.md /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wrongakram/framermotion-react-router/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wrongakram/framermotion-react-router/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wrongakram/framermotion-react-router/HEAD/public/logo512.png -------------------------------------------------------------------------------- /src/images/yasmeen.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wrongakram/framermotion-react-router/HEAD/src/images/yasmeen.webp -------------------------------------------------------------------------------- /src/images/compressed-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wrongakram/framermotion-react-router/HEAD/src/images/compressed-image.jpg -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | -------------------------------------------------------------------------------- /src/data.js: -------------------------------------------------------------------------------- 1 | export const items = [ 2 | // Photo by ivan Torres on Unsplash 3 | { 4 | id: "c", 5 | category: "Pizza", 6 | title: "5 Food Apps Delivering the Best of Your City", 7 | pointOfInterest: 80, 8 | backgroundColor: "#814A0E", 9 | }, 10 | // Photo by Dennis Brendel on Unsplash 11 | ]; 12 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | const { getByText } = render(); 7 | const linkElement = getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/components/header.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | const Header = () => { 4 | return ( 5 |
6 |
7 |
8 |
9 | JIMMY FERMIN 10 |
11 |
MENU
12 |
13 |
14 |
15 | ); 16 | }; 17 | 18 | export default Header; 19 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;600;800&display=swap"); 2 | 3 | body { 4 | margin: 0; 5 | font-family: "Darker Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", 6 | "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", 7 | "Helvetica Neue", sans-serif; 8 | -webkit-font-smoothing: antialiased; 9 | -moz-osx-font-smoothing: grayscale; 10 | } 11 | 12 | code { 13 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", 14 | monospace; 15 | } 16 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | import * as serviceWorker from "./serviceWorker"; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById("root") 12 | ); 13 | 14 | // If you want your app to work offline and load faster, you can change 15 | // unregister() to register() below. Note this comes with some pitfalls. 16 | // Learn more about service workers: https://bit.ly/CRA-PWA 17 | serviceWorker.unregister(); 18 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/images/down-arrow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sharedlayouttransitions", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.3.2", 8 | "@testing-library/user-event": "^7.1.2", 9 | "framer-motion": "^2.0.0-beta.77", 10 | "react": "^16.13.1", 11 | "react-dom": "^16.13.1", 12 | "react-progressive-image": "^0.6.0", 13 | "react-router-dom": "^5.2.0", 14 | "react-scripts": "3.4.1", 15 | "sass": "^1.26.9" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test", 21 | "eject": "react-scripts eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": "react-app" 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { AnimatePresence } from "framer-motion"; 3 | import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; 4 | //Pages 5 | import Home from "./pages/home"; 6 | import Model from "./pages/model"; 7 | //components 8 | import Header from "./components/header"; 9 | //Styles 10 | import "./App.scss"; 11 | 12 | function App() { 13 | const imageDetails = { 14 | width: 524, 15 | height: 650, 16 | }; 17 | 18 | return ( 19 | 20 |
21 | ( 23 | 24 | 25 | } 29 | /> 30 | } 34 | /> 35 | 36 | 37 | )} 38 | /> 39 | 40 | ); 41 | } 42 | 43 | export default App; 44 | -------------------------------------------------------------------------------- /src/components/scrollForMore.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { motion } from "framer-motion"; 3 | 4 | const transition = { duration: 1.4, ease: [0.6, 0.01, -0.05, 0.9] }; 5 | 6 | const ScrollForMore = () => { 7 | return ( 8 | 16 |
17 | 22 | 23 | 24 | 33 | 34 | 35 | 36 |
37 |
38 | Scroll
39 | for more 40 |
41 |
42 | ); 43 | }; 44 | 45 | export default ScrollForMore; 46 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/pages/home.js: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | import { Link } from "react-router-dom"; 3 | import { motion } from "framer-motion"; 4 | import ProgressiveImage from "react-progressive-image"; 5 | 6 | const transition = { duration: 0.6, ease: [0.43, 0.13, 0.23, 0.96] }; 7 | 8 | const Home = ({ imageDetails, image }) => ( 9 | <> 10 |
11 |
12 |
13 |
14 |
21 |
22 | 23 | 26 | {(src) => ( 27 | 33 | )} 34 | 35 | 36 |
37 |
38 | 42 |
Yasmeen Tariq
43 |
44 | 28.538336 45 | -81.379234 46 |
47 |
48 |
49 |
50 |
51 |
52 | 53 | ); 54 | 55 | export default Home; 56 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `yarn start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `yarn test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `yarn build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `yarn eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `yarn build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.0/8 are considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl, { 104 | headers: { 'Service-Worker': 'script' }, 105 | }) 106 | .then(response => { 107 | // Ensure service worker exists, and that we really are getting a JS file. 108 | const contentType = response.headers.get('content-type'); 109 | if ( 110 | response.status === 404 || 111 | (contentType != null && contentType.indexOf('javascript') === -1) 112 | ) { 113 | // No service worker found. Probably a different app. Reload the page. 114 | navigator.serviceWorker.ready.then(registration => { 115 | registration.unregister().then(() => { 116 | window.location.reload(); 117 | }); 118 | }); 119 | } else { 120 | // Service worker found. Proceed as normal. 121 | registerValidSW(swUrl, config); 122 | } 123 | }) 124 | .catch(() => { 125 | console.log( 126 | 'No internet connection found. App is running in offline mode.' 127 | ); 128 | }); 129 | } 130 | 131 | export function unregister() { 132 | if ('serviceWorker' in navigator) { 133 | navigator.serviceWorker.ready 134 | .then(registration => { 135 | registration.unregister(); 136 | }) 137 | .catch(error => { 138 | console.error(error.message); 139 | }); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /src/pages/model.js: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState } from "react"; 2 | import { motion, useViewportScroll, useTransform } from "framer-motion"; 3 | 4 | //Components 5 | import ScrollForMore from "../components/scrollForMore"; 6 | //Ease 7 | const transition = { duration: 1.4, ease: [0.6, 0.01, -0.05, 0.9] }; 8 | 9 | const firstName = { 10 | initial: { 11 | y: 0, 12 | }, 13 | animate: { 14 | y: 0, 15 | transition: { 16 | delayChildren: 0.6, 17 | staggerChildren: 0.04, 18 | staggerDirection: -1, 19 | }, 20 | }, 21 | }; 22 | 23 | const lastName = { 24 | initial: { 25 | y: 0, 26 | }, 27 | animate: { 28 | y: 0, 29 | transition: { 30 | delayChildren: 0.6, 31 | staggerChildren: 0.04, 32 | staggerDirection: 1, 33 | }, 34 | }, 35 | }; 36 | 37 | const letter = { 38 | initial: { 39 | y: 400, 40 | }, 41 | animate: { 42 | y: 0, 43 | transition: { duration: 1, ...transition }, 44 | }, 45 | }; 46 | 47 | const Model = ({ imageDetails }) => { 48 | const { scrollYProgress } = useViewportScroll(); 49 | const scale = useTransform(scrollYProgress, [0, 1], [1, 1.15]); 50 | 51 | const [canScroll, setCanScroll] = useState(false); 52 | 53 | useEffect(() => { 54 | if (canScroll === false) { 55 | document.querySelector("body").classList.add("no-scroll"); 56 | } else { 57 | document.querySelector("body").classList.remove("no-scroll"); 58 | } 59 | }, [canScroll]); 60 | 61 | return ( 62 | setCanScroll(true)} 64 | className='single' 65 | initial='initial' 66 | animate='animate' 67 | exit='exit'> 68 |
69 |
70 |
71 | 79 |
80 | 28.538336 81 | -81.379234 82 |
83 |
MUA: @mylifeascrystall
84 |
85 | 86 | 87 | Y 88 | a 89 | s 90 | m 91 | e 92 | e 93 | n 94 | 95 | 96 | T 97 | a 98 | r 99 | i 100 | q 101 | 102 | 103 |
104 |
105 |
106 |
107 | 108 | 1440 ? 800 : 400, 118 | transition: { delay: 0.2, ...transition }, 119 | }} 120 | className='thumbnail-single'> 121 | 125 | 1440 ? -1200 : -600, 133 | }} 134 | /> 135 | 136 | 137 | 138 |
139 | 140 |
141 |
142 |
143 |
144 |
145 |

146 | The insiration behind the artwork &
what it means. 147 |

148 |

149 | Contrary to popular belief, Lorem Ipsum is not simply random text. 150 | It has roots in a piece of classical Latin literature from 45 BC, 151 | making it over 2000 years old. Richard McClintock, a Latin 152 | professor at Hampden-Sydney College in Virginia, looked up one of 153 | the more obscure Latin words, consectetur, from a Lorem Ipsum 154 | passage, and going through the cites of the word in classical 155 | literature, discovered the undoubtable source. Lorem Ipsum comes 156 | from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et 157 | Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 158 | BC. This book is a treatise on the theory of ethics, very popular 159 | during the Renaissance. The first line of Lorem Ipsum, "Lorem 160 | ipsum dolor sit amet..", comes from a line in section 1.10.32. 161 |

162 |
163 |
164 |
165 |
166 | ); 167 | }; 168 | 169 | export default Model; 170 | -------------------------------------------------------------------------------- /src/App.scss: -------------------------------------------------------------------------------- 1 | $main: #f0d8bb; 2 | $white: #ffffff; 3 | $black: #1e1f13; 4 | 5 | * { 6 | box-sizing: border-box; 7 | font-family: "HelveticaNeue-CondensedBold", -apple-system, BlinkMacSystemFont, 8 | "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", 9 | sans-serif; 10 | font-weight: 900; 11 | } 12 | 13 | body { 14 | padding: 0; 15 | margin: 0; 16 | background-color: $main; 17 | color: $black; 18 | &:before { 19 | animation: grain 8s steps(10) infinite; 20 | background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/paper-pattern.png"); 21 | content: ""; 22 | height: 300%; 23 | left: -50%; 24 | opacity: 0.3; 25 | position: fixed; 26 | top: -100%; 27 | width: 300%; 28 | } 29 | &.no-scroll { 30 | overflow-y: hidden; 31 | } 32 | } 33 | 34 | @keyframes grain { 35 | 0%, 36 | 100% { 37 | transform: translate(0, 0); 38 | } 39 | 10% { 40 | transform: translate(-5%, -10%); 41 | } 42 | 20% { 43 | transform: translate(-15%, 5%); 44 | } 45 | 30% { 46 | transform: translate(7%, -25%); 47 | } 48 | 40% { 49 | transform: translate(-5%, 25%); 50 | } 51 | 50% { 52 | transform: translate(-15%, 10%); 53 | } 54 | 60% { 55 | transform: translate(15%, 0%); 56 | } 57 | 70% { 58 | transform: translate(0%, 15%); 59 | } 60 | 80% { 61 | transform: translate(3%, 35%); 62 | } 63 | 90% { 64 | transform: translate(-10%, 10%); 65 | } 66 | } 67 | 68 | //Header 69 | 70 | .container { 71 | flex-grow: 1; 72 | margin: 0 auto; 73 | padding: 0 32px; 74 | position: relative; 75 | width: auto; 76 | height: 100%; 77 | &.fluid { 78 | width: 100%; 79 | max-width: 100%; 80 | padding: 0; 81 | } 82 | @media (min-width: 1024px) { 83 | max-width: 960px; 84 | } 85 | @media (min-width: 1216px) { 86 | max-width: 1152px; 87 | } 88 | @media (min-width: 1408px) { 89 | max-width: 1560px; 90 | } 91 | 92 | .row { 93 | display: flex; 94 | align-items: center; 95 | &.space-between { 96 | justify-content: space-between; 97 | } 98 | &.center { 99 | justify-content: center; 100 | } 101 | } 102 | } 103 | 104 | header { 105 | font-size: 16px; 106 | position: fixed; 107 | z-index: 99; 108 | width: 100%; 109 | font-weight: "700"; 110 | .container { 111 | .row { 112 | height: 128px; 113 | .logo { 114 | a { 115 | color: $black; 116 | text-decoration: none; 117 | } 118 | } 119 | .menu { 120 | cursor: pointer; 121 | border-radius: 100%; 122 | border: 1px solid $black; 123 | height: 80px; 124 | width: 80px; 125 | display: flex; 126 | align-items: center; 127 | justify-content: center; 128 | transition: 0.3s ease-in-out; 129 | &:hover { 130 | color: $white; 131 | background: $black; 132 | } 133 | } 134 | } 135 | } 136 | } 137 | 138 | main { 139 | .container { 140 | position: relative; 141 | .row { 142 | height: 100vh; 143 | align-items: center; 144 | .image-container { 145 | position: relative; 146 | .thumbnail { 147 | overflow: hidden; 148 | position: relative; 149 | .frame { 150 | img { 151 | width: 100%; 152 | } 153 | } 154 | } 155 | .information { 156 | position: absolute; 157 | width: 100%; 158 | display: flex; 159 | align-items: center; 160 | justify-content: space-between; 161 | margin-top: 20px; 162 | text-transform: uppercase; 163 | .location { 164 | span:nth-child(2) { 165 | margin-left: 8px; 166 | } 167 | } 168 | } 169 | } 170 | } 171 | } 172 | } 173 | 174 | //single 175 | .single { 176 | .container { 177 | .top-row { 178 | height: 50vh; 179 | width: 100%; 180 | align-items: flex-end; 181 | .top { 182 | padding-bottom: 40px; 183 | .details { 184 | display: flex; 185 | align-items: center; 186 | justify-content: space-between; 187 | .location { 188 | span:nth-child(2) { 189 | margin-left: 16px; 190 | } 191 | } 192 | .mua { 193 | text-transform: uppercase; 194 | } 195 | } 196 | .model { 197 | overflow: hidden; 198 | .first { 199 | margin-right: 72px; 200 | } 201 | span { 202 | display: inline-block; 203 | position: relative; 204 | font-weight: 400; 205 | font-size: 224px; 206 | font-family: "Maragsa"; 207 | @media (max-width: 1440px) { 208 | font-size: 128px; 209 | } 210 | } 211 | } 212 | } 213 | } 214 | .bottom-row { 215 | height: 50vh; 216 | position: relative; 217 | .bottom { 218 | height: 100%; 219 | width: 100%; 220 | .thumbnail-single { 221 | width: 100%; 222 | height: 800px; 223 | margin: 0 auto; 224 | overflow: hidden; 225 | position: absolute; 226 | left: 0; 227 | right: 0; 228 | .frame-single { 229 | img { 230 | position: absolute; 231 | width: 100%; 232 | } 233 | } 234 | } 235 | } 236 | .scroll-for-more { 237 | position: absolute; 238 | bottom: 200px; 239 | left: 200px; 240 | z-index: 20; 241 | .icon { 242 | svg { 243 | height: auto; 244 | width: 28px; 245 | } 246 | } 247 | .text { 248 | margin-top: 8px; 249 | color: $white; 250 | text-transform: uppercase; 251 | } 252 | } 253 | } 254 | } 255 | } 256 | 257 | .detailed-information { 258 | margin-top: 200px; 259 | height: 600px; 260 | .container { 261 | .row { 262 | justify-content: space-between; 263 | align-items: flex-start; 264 | h2 { 265 | font-size: 28px; 266 | } 267 | p { 268 | font-family: "Helvetica Neue"; 269 | font-size: 16; 270 | line-height: 28px; 271 | font-weight: 400; 272 | width: 800px; 273 | } 274 | } 275 | } 276 | } 277 | --------------------------------------------------------------------------------