├── .gitignore
├── README.md
├── jsconfig.json
├── package-lock.json
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── App.js
├── api
│ ├── banners.json
│ ├── cards.json
│ ├── categories.json
│ ├── menus.json
│ └── products.json
├── components
│ ├── Campaigns.js
│ ├── Cards.js
│ ├── Categories.js
│ ├── Favorites.js
│ ├── Footer.js
│ ├── Header.js
│ ├── HeroSection.js
│ ├── MobileApp.js
│ └── ui
│ │ ├── CardItem.js
│ │ ├── Category.js
│ │ ├── Menu.js
│ │ ├── ProductItem.js
│ │ └── Title.js
├── img
│ └── quick-response.png
├── index.js
└── style.css
├── tailwind.config.js
└── tailwind.css
/.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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # GETİR-CLONE
2 |
3 | Bu Repositories'te getir.com sitesinin klonu yer almaktadır.
4 |
5 | ## Live Demo
6 |
7 | *[Live Demo](https://trusting-feynman-fa90a6.netlify.app/)*
8 |
9 | ## Used Technologies
10 |
11 | + React.Js
12 | + Tailwind
13 |
14 | ## Resources that I have used
15 |
16 | + [Video Linki](https://www.youtube.com/playlist?list=PLfAfrKyDRWrE4Xl7eWBFdC92pOwywbb3e)
17 |
18 | ## Getting Started with Create React App
19 |
20 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
21 |
22 | ## Available Scripts
23 |
24 | In the project directory, you can run:
25 |
26 | ### `npm start`
27 |
28 | Runs the app in the development mode.\
29 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
30 |
31 | The page will reload when you make changes.\
32 | You may also see any lint errors in the console.
33 |
34 | ### `npm test`
35 |
36 | Launches the test runner in the interactive watch mode.\
37 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
38 |
39 | ### `npm run build`
40 |
41 | Builds the app for production to the `build` folder.\
42 | It correctly bundles React in production mode and optimizes the build for the best performance.
43 |
44 | The build is minified and the filenames include the hashes.\
45 | Your app is ready to be deployed!
46 |
47 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
48 |
49 | ### `npm run eject`
50 |
51 | **Note: this is a one-way operation. Once you `eject`, you can't go back!**
52 |
53 | 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.
54 |
55 | 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.
56 |
57 | 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.
58 |
59 | ## Learn More
60 |
61 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
62 |
63 | To learn React, check out the [React documentation](https://reactjs.org/).
64 |
65 | ### Code Splitting
66 |
67 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
68 |
69 | ### Analyzing the Bundle Size
70 |
71 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
72 |
73 | ### Making a Progressive Web App
74 |
75 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
76 |
77 | ### Advanced Configuration
78 |
79 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
80 |
81 | ### Deployment
82 |
83 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
84 |
85 | ### `npm run build` fails to minify
86 |
87 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
88 |
--------------------------------------------------------------------------------
/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "src"
4 | },
5 | "include": [
6 | "src"
7 | ],
8 | "exclude": [
9 | "node_modules",
10 | "build"
11 | ]
12 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "getir-clone",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@react-hook/window-size": "^3.0.7",
7 | "@testing-library/jest-dom": "^5.16.2",
8 | "@testing-library/react": "^12.1.2",
9 | "@testing-library/user-event": "^13.5.0",
10 | "react": "^17.0.2",
11 | "react-collapse": "^5.1.1",
12 | "react-dom": "^17.0.2",
13 | "react-flags-select": "^2.1.2",
14 | "react-icons": "^4.3.1",
15 | "react-scripts": "5.0.0",
16 | "react-slick": "^0.28.1",
17 | "web-vitals": "^2.1.4"
18 | },
19 | "scripts": {
20 | "start": "react-scripts start",
21 | "build": "react-scripts build",
22 | "test": "react-scripts test",
23 | "eject": "react-scripts eject",
24 | "watch": "npx tailwindcss -i tailwind.css -o src/style.css --watch"
25 | },
26 | "eslintConfig": {
27 | "extends": [
28 | "react-app",
29 | "react-app/jest"
30 | ]
31 | },
32 | "browserslist": {
33 | "production": [
34 | ">0.2%",
35 | "not dead",
36 | "not op_mini all"
37 | ],
38 | "development": [
39 | "last 1 chrome version",
40 | "last 1 firefox version",
41 | "last 1 safari version"
42 | ]
43 | },
44 | "devDependencies": {
45 | "autoprefixer": "^10.4.2",
46 | "postcss": "^8.4.6",
47 | "tailwindcss": "^3.0.18"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zehraikizler/getir-clone/e0c6d26422fa186bc1301cf57c029605668f2fa5/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | Getir | Anasayfa
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zehraikizler/getir-clone/e0c6d26422fa186bc1301cf57c029605668f2fa5/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zehraikizler/getir-clone/e0c6d26422fa186bc1301cf57c029605668f2fa5/public/logo512.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import Header from "components/Header";
2 | import HeroSection from "components/HeroSection";
3 | import Categories from "components/Categories";
4 | import Campaigns from "components/Campaigns";
5 | import Favorites from "components/Favorites";
6 | import MobileApp from "components/MobileApp";
7 | import Cards from "components/Cards";
8 | import Footer from "components/Footer";
9 | import { useWindowWidth } from "@react-hook/window-size";
10 |
11 | function App() {
12 | const windowWidth = useWindowWidth();
13 |
14 | return (
15 | <>
16 |
17 | {windowWidth < 768 && }
18 |
19 |
20 | {windowWidth >= 768 && }
21 |
22 |
23 |
24 |
25 | >
26 | );
27 | }
28 |
29 | export default App;
30 |
--------------------------------------------------------------------------------
/src/api/banners.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 1,
4 | "image": "https://cdn.getir.com/misc/611e55d33ea65bef40f9ba05_banner_tr_1629378026496.jpeg"
5 | },
6 | {
7 | "id": 2,
8 | "image": "https://cdn.getir.com/misc/611e4a50c270af509cd486b5_banner_tr_1629375115516.jpeg"
9 | },
10 | {
11 | "id": 3,
12 | "image": "https://cdn.getir.com/misc/5fb524d4c725f1530045cefc_banner_tr_1609343376255.jpeg"
13 | },
14 | {
15 | "id": 4,
16 | "image": "https://cdn.getir.com/misc/6069cee3f7be2b6472dc8b5f_banner_tr_1629921878792.jpeg"
17 | }
18 | ]
19 |
--------------------------------------------------------------------------------
/src/api/cards.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "Her siparişinize bir kampanya",
4 | "description": "Getir'de vereceğiniz her siparişe uygun bir kampanya bulabilirsiniz.",
5 | "image": "https://getir.com/_next/static/images/intro-in-minutes-a7a9238a73013642a6597c4db06653c1.svg"
6 | },
7 | {
8 | "title": "Dakikalar içinde kapınızda",
9 | "description": "Getir’le siparişiniz dakikalar içinde kapınıza gelir.",
10 | "image": "https://getir.com/_next/static/images/intro-market-courier-34cd8b0ca1d547580d506566edfacf8d.svg"
11 | },
12 | {
13 | "title": "Binlerce çeşit mutluluk",
14 | "description": "Getir’de binlerce çeşit arasından seçiminizi yapabilirsiniz.",
15 | "image": "https://getir.com/_next/static/images/intro-discount-6248544cb695830a2e25debd3c0f3d29.svg"
16 | }
17 | ]
18 |
--------------------------------------------------------------------------------
/src/api/categories.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 1,
4 | "title": "Yeni Ürünler",
5 | "image": "http://cdn.getir.com/cat/5697c78dc181490f00c99fea_f7ef7ccb-f3a4-4388-b787-232967c16320.jpeg"
6 | },
7 | {
8 | "id": 2,
9 | "title": "İndirimler",
10 | "image": "http://cdn.getir.com/cat/5fd8c58f3bdc2389a56e0fb0_3322c10f-2eed-4ce9-ab5a-90db5ce067f2.jpeg"
11 | },
12 | {
13 | "id": 3,
14 | "title": "Su & İçecek",
15 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c5e_1619242669958_1619242670038.jpeg"
16 | },
17 | {
18 | "id": 4,
19 | "title": "Meyve & Sebze",
20 | "image": "http://cdn.getir.com/cat/5928113e616cab00041ec6de_1619242870968_1619242871055.jpeg"
21 | },
22 | {
23 | "id": 5,
24 | "title": "Fırından",
25 | "image": "http://cdn.getir.com/cat/566eeb85f9facb0f00b1cb16_1619242817768_1619242817849.jpeg"
26 | },
27 | {
28 | "id": 6,
29 | "title": "Temel Gıda",
30 | "image": "http://cdn.getir.com/cat/56dfcfba86004203000a870d_1619242834654_1619242834734.jpeg"
31 | },
32 | {
33 | "id": 7,
34 | "title": "Atıştırmalık",
35 | "image": "http://cdn.getir.com/cat/56dfe03cf82055030022cdc0_1619242841966_1619242842053.jpeg"
36 | },
37 | {
38 | "id": 8,
39 | "title": "Dondurma",
40 | "image": "http://cdn.getir.com/cat/55bca8484dcda90c00e3aa80_1619242741382_1619242741482.jpeg"
41 | },
42 | {
43 | "id": 9,
44 | "title": "Yiyecek",
45 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c5d_1619242660025_1619242660107.jpeg"
46 | },
47 | {
48 | "id": 10,
49 | "title": "Süt & Kahvaltı",
50 | "image": "http://cdn.getir.com/cat/56dfed05ab747f03008d9379_1619242850313_1619242850394.jpeg"
51 | },
52 | {
53 | "id": 11,
54 | "title": "Fit & Form",
55 | "image": "http://cdn.getir.com/cat/57e2996551f3ee030027e28b_1619242858559_1619242858642.jpeg"
56 | },
57 | {
58 | "id": 12,
59 | "title": "Kişisel Bakım",
60 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c5c_1619242651249_1619242651335.jpeg"
61 | },
62 | {
63 | "id": 13,
64 | "title": "Ev Bakım",
65 | "image": "http://cdn.getir.com/cat/55449fdf02632e11003c2da8_1619242719523_1619242719602.jpeg"
66 | },
67 | {
68 | "id": 14,
69 | "title": "Ev & Yaşam",
70 | "image": "http://cdn.getir.com/cat/5b06b056b883b700044e3e4c_1619242916956_1619242917048.jpeg"
71 | },
72 | {
73 | "id": 15,
74 | "title": "Teknoloji",
75 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c62_1619242697597_1619242697702.jpeg"
76 | },
77 | {
78 | "id": 16,
79 | "title": "Evcil Hayvan",
80 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c63_1619242711604_1619242711687.jpeg"
81 | },
82 | {
83 | "id": 17,
84 | "title": "Bebek",
85 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c5b_1619242620186_1619242620271.jpeg"
86 | },
87 | {
88 | "id": 18,
89 | "title": "Cinsel Sağlık",
90 | "image": "http://cdn.getir.com/cat/559c07b093be370c0063dd29_1619242727735_1619242727816.jpeg"
91 | },
92 | {
93 | "id": 19,
94 | "title": "Giyim",
95 | "image": "http://cdn.getir.com/cat/551430043427d5010a3a5c5f_1619242679723_1619242679822.jpeg"
96 | }
97 | ]
98 |
--------------------------------------------------------------------------------
/src/api/menus.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "Getir'i keşfedin",
4 | "items": [
5 | {
6 | "title": "Hakkımızda"
7 | },
8 | {
9 | "title": "Kariyer"
10 | },
11 | {
12 | "title": "Teknoloji Kariyerleri"
13 | },
14 | {
15 | "title": "İletişim"
16 | },
17 | {
18 | "title": "COVID-19 Duyuru"
19 | },
20 | {
21 | "title": "Sosyal Sorumluluk Projeleri"
22 | }
23 | ]
24 | },
25 | {
26 | "title": "Yardıma mı ihtiyacınız var?",
27 | "items": [
28 | {
29 | "title": "Sıkça Sorulan Sorular"
30 | },
31 | {
32 | "title": "Kişisel Verilerin Korunması"
33 | },
34 | {
35 | "title": "Gizlilik Politikası"
36 | },
37 | {
38 | "title": "Kullanım Koşulları"
39 | },
40 | {
41 | "title": "Çerez Politikası"
42 | }
43 | ]
44 | },
45 | {
46 | "title": "İş Ortağımız Olun",
47 | "items": [
48 | {
49 | "title": "Bayimiz Olun"
50 | },
51 | {
52 | "title": "Deponuzu Kiralayın"
53 | },
54 | {
55 | "title": "GetirYemek Restoranı Olun"
56 | },
57 | {
58 | "title": "GetirÇarşı İşletmesi Olun"
59 | }
60 | ]
61 | }
62 | ]
63 |
--------------------------------------------------------------------------------
/src/api/products.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 1,
4 | "title": "Lay's Mevsim Yeşillikli",
5 | "image": "https://cdn.getir.com/product/5bc97aabb137fb001d751ac7_tr_1609123518121.jpeg",
6 | "alt": "96 g",
7 | "price": 6.36
8 | },
9 | {
10 | "id": 2,
11 | "title": "Eti Canga",
12 | "image": "https://cdn.getir.com/product/5f3538dc71a71226677fba17_tr_1624437105104.jpeg",
13 | "alt": "45 g",
14 | "price": 2.85
15 | },
16 | {
17 | "id": 3,
18 | "title": "Kuzeyden",
19 | "image": "https://cdn.getir.com/product/5a7b20fd8e19da0004bb27f8_tr_1615375864268.jpeg",
20 | "alt": "1.5 L",
21 | "price": 2.95
22 | },
23 | {
24 | "id": 4,
25 | "title": "Kızılay Erzincan",
26 | "image": "https://cdn.getir.com/product/60018c5bca2126d84459c47f_tr_1610788125046.jpeg",
27 | "alt": "6 x 200 ml",
28 | "price": 5.9
29 | },
30 | {
31 | "id": 5,
32 | "title": "Ülker Napoliten",
33 | "image": "https://cdn.getir.com/product/574b2219dee8a90300f18d24_tr_1599938278519.jpeg",
34 | "alt": "33 g",
35 | "price": 3.3
36 | },
37 | {
38 | "id": 6,
39 | "title": "Kavrulmuş Siyah Ay Çekirdeği",
40 | "image": "https://cdn.getir.com/product/5ccaf4ff1a1763000175a869_tr_1580904995656.jpeg",
41 | "alt": "180 g",
42 | "price": 10.95
43 | },
44 | {
45 | "id": 7,
46 | "title": "Magnum Badem",
47 | "image": "https://cdn.getir.com/product/559fec01f462100c00461d5c_tr_1618323765236.jpeg",
48 | "alt": "100 ml",
49 | "price": 7.5
50 | },
51 | {
52 | "id": 8,
53 | "title": "İçim %3 Yağlı Süt",
54 | "image": "https://cdn.getir.com/product/5ced482d4a8a2a000137da6d_tr_1623652387464.jpeg",
55 | "alt": "1 L",
56 | "price": 7.95
57 | },
58 | {
59 | "id": 9,
60 | "title": "Lay's Mevsim Yeşillikli",
61 | "image": "https://cdn.getir.com/product/5bc97aabb137fb001d751ac7_tr_1609123518121.jpeg",
62 | "alt": "96 g",
63 | "price": 6.36
64 | },
65 | {
66 | "id": 10,
67 | "title": "Eti Canga",
68 | "image": "https://cdn.getir.com/product/5f3538dc71a71226677fba17_tr_1624437105104.jpeg",
69 | "alt": "45 g",
70 | "price": 2.85
71 | },
72 | {
73 | "id": 11,
74 | "title": "Kuzeyden",
75 | "image": "https://cdn.getir.com/product/5a7b20fd8e19da0004bb27f8_tr_1615375864268.jpeg",
76 | "alt": "1.5 L",
77 | "price": 2.95
78 | },
79 | {
80 | "id": 12,
81 | "title": "Kızılay Erzincan",
82 | "image": "https://cdn.getir.com/product/60018c5bca2126d84459c47f_tr_1610788125046.jpeg",
83 | "alt": "6 x 200 ml",
84 | "price": 5.9
85 | },
86 | {
87 | "id": 13,
88 | "title": "Ülker Napoliten",
89 | "image": "https://cdn.getir.com/product/574b2219dee8a90300f18d24_tr_1599938278519.jpeg",
90 | "alt": "33 g",
91 | "price": 3.3
92 | },
93 | {
94 | "id": 14,
95 | "title": "Kavrulmuş Siyah Ay Çekirdeği",
96 | "image": "https://cdn.getir.com/product/5ccaf4ff1a1763000175a869_tr_1580904995656.jpeg",
97 | "alt": "180 g",
98 | "price": 10.95
99 | },
100 | {
101 | "id": 15,
102 | "title": "Magnum Badem",
103 | "image": "https://cdn.getir.com/product/559fec01f462100c00461d5c_tr_1618323765236.jpeg",
104 | "alt": "100 ml",
105 | "price": 7.5
106 | },
107 | {
108 | "id": 16,
109 | "title": "İçim %3 Yağlı Süt",
110 | "image": "https://cdn.getir.com/product/5ced482d4a8a2a000137da6d_tr_1623652387464.jpeg",
111 | "alt": "1 L",
112 | "price": 7.95
113 | }
114 | ]
115 |
--------------------------------------------------------------------------------
/src/components/Campaigns.js:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 | import Slider from "react-slick";
3 | import Banners from "api/banners.json";
4 | import Title from "components/ui/Title";
5 | import { IoIosArrowBack, IoIosArrowForward } from "react-icons/io";
6 |
7 | function NextButton({ onClick, className }) {
8 | return (
9 |
15 | );
16 | }
17 | function PrevButton({ onClick, className }) {
18 | return (
19 |
25 | );
26 | }
27 |
28 | export default function Campaigns() {
29 | const [banners, setBanners] = useState([]);
30 |
31 | useEffect(() => {
32 | setBanners(Banners);
33 | }, []);
34 |
35 | const settings = {
36 | dots: false,
37 | infinite: true,
38 | speed: 500,
39 | slidesToShow: 3,
40 | slidesToScroll: 1,
41 | autoplay: true,
42 | autoplaySpeed: 3500,
43 | cssEase: "linear",
44 | nextArrow: ,
45 | prevArrow: ,
46 | responsive: [
47 | {
48 | breakpoint: 1280,
49 | settings: {
50 | slidesToShow: 3,
51 | slidesToScroll: 3,
52 | infinite: true,
53 | dots: true,
54 | arrows: true
55 | }
56 | },
57 | {
58 | breakpoint: 1024,
59 | settings: {
60 | slidesToShow: 2,
61 | slidesToScroll: 2,
62 | initialSlide: 2,
63 | arrows: false
64 | }
65 | },
66 | {
67 | breakpoint: 768,
68 | settings: {
69 | slidesToShow: 1,
70 | slidesToScroll: 1,
71 | arrows: false
72 | }
73 | }
74 | ]
75 | };
76 |
77 | return (
78 |
79 |
80 |
Kampanyalar
81 |
82 |
83 | {banners &&
84 | banners.map(banner => (
85 |
86 |
87 |
88 |
89 |
90 | ))}
91 |
92 |
93 | );
94 | }
95 |
--------------------------------------------------------------------------------
/src/components/Cards.js:
--------------------------------------------------------------------------------
1 | import cards from "api/cards.json";
2 | import CardItem from "components/ui/CardItem";
3 |
4 | export default function Cards() {
5 | return (
6 |
7 |
8 | {cards.map((card, key) => (
9 |
10 | ))}
11 |
12 |
13 | );
14 | }
15 |
--------------------------------------------------------------------------------
/src/components/Categories.js:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 | import categoryData from "api/categories.json";
3 | import Category from "components/ui/Category";
4 | import Title from "components/ui/Title";
5 |
6 | export default function Categories() {
7 | const [categories, setCategories] = useState([]);
8 |
9 | useEffect(() => {
10 | // istek
11 | setCategories(categoryData);
12 | }, []);
13 |
14 | return (
15 |
16 |
17 |
Kategoriler
18 |
19 | {categories &&
20 | categories.map((category, index) => (
21 |
22 | ))}
23 |
24 |
25 |
26 | );
27 | }
28 |
--------------------------------------------------------------------------------
/src/components/Favorites.js:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 | import Title from "components/ui/Title";
3 | import Products from "api/products.json";
4 | import ProductItem from "components/ui/ProductItem";
5 |
6 | export default function Favorites() {
7 | const [products, setProducts] = useState([]);
8 |
9 | useEffect(() => {
10 | setProducts(Products);
11 | }, []);
12 |
13 | return (
14 |
15 |
Favoriler
16 |
17 | {products.length &&
18 | products.map((product, index) => (
19 |
20 | ))}
21 |
22 |
23 | );
24 | }
25 |
--------------------------------------------------------------------------------
/src/components/Footer.js:
--------------------------------------------------------------------------------
1 | import Menu from "components/ui/Menu";
2 | import menus from "api/menus.json";
3 | import { FaFacebook, FaTwitter, FaInstagram } from "react-icons/fa";
4 | import { FiGlobe } from "react-icons/fi";
5 |
6 | export default function Footer() {
7 | return (
8 |
9 |
10 |
11 |
34 | {menus.map((menu, index) => (
35 |
36 | ))}
37 |
46 |
47 |
48 |
86 |
87 |
88 | );
89 | }
90 |
--------------------------------------------------------------------------------
/src/components/Header.js:
--------------------------------------------------------------------------------
1 | import { BiGlobe } from "react-icons/bi";
2 | import { RiUserFill, RiUserAddFill } from "react-icons/ri";
3 | import { HiLocationMarker } from "react-icons/hi";
4 | import { IoIosArrowForward } from "react-icons/io";
5 |
6 | export default function Header() {
7 | return (
8 | <>
9 |
73 |
74 |
75 |
76 | Teslimat Adresi Belirle
77 |
78 |
79 |
80 | >
81 | );
82 | }
83 |
--------------------------------------------------------------------------------
/src/components/HeroSection.js:
--------------------------------------------------------------------------------
1 | import { useState } from "react";
2 | import Slider from "react-slick";
3 | import ReactFlagsSelect from "react-flags-select";
4 | import { useWindowWidth } from "@react-hook/window-size";
5 |
6 | export default function HeroSection() {
7 | const windowWidth = useWindowWidth();
8 |
9 | const [selected, setSelected] = useState("TR");
10 |
11 | const phones = {
12 | US: "+1",
13 | DE: "+50",
14 | TR: "+90",
15 | IT: "+7",
16 | IN: "*15"
17 | };
18 |
19 | const settings = {
20 | dots: false,
21 | infinite: true,
22 | speed: 500,
23 | slidesToShow: 1,
24 | slidesToScroll: 1,
25 | autoplay: true,
26 | autoplaySpeed: 3500,
27 | arrows: false
28 | };
29 |
30 | return (
31 |
32 | {windowWidth >= 768 && (
33 |
34 |
35 |

39 |
40 |
41 |

45 |
46 |
47 | )}
48 |
49 |
50 |

51 |
52 | Dakikalar içinde
kapınızda
53 |
54 |
55 |
56 |
57 | Giriş yap veya kayıt ol
58 |
59 |
60 |
61 | setSelected(code)}
65 | selected={selected}
66 | className="flag-select"
67 | />
68 |
77 |
78 |
81 |
82 |
83 |
84 |
85 | );
86 | }
87 |
--------------------------------------------------------------------------------
/src/components/MobileApp.js:
--------------------------------------------------------------------------------
1 | export default function MobileApp() {
2 | return (
3 |
4 |
5 |
6 |
7 | Getir'i indirin!
8 |
9 |
10 | İstediğiniz ürünleri dakikalar içinde kapınıza
getirelim.
11 |
12 |
32 |
33 |
34 |

35 |
36 |
37 |
38 | );
39 | }
40 |
--------------------------------------------------------------------------------
/src/components/ui/CardItem.js:
--------------------------------------------------------------------------------
1 | function CardItem({ card: { title, image, description } }) {
2 | return (
3 |
4 |

5 |
{title}
6 |
{description}
7 |
8 | );
9 | }
10 |
11 | export default CardItem;
12 |
--------------------------------------------------------------------------------
/src/components/ui/Category.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Category({ category: { id, title, image } }) {
4 | return (
5 |
9 |
14 |
15 | {" "}
16 | {title}{" "}
17 |
18 |
19 | );
20 | }
21 |
--------------------------------------------------------------------------------
/src/components/ui/Menu.js:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 | import { Collapse } from "react-collapse";
3 | import { useWindowWidth } from "@react-hook/window-size";
4 | import { IoIosArrowDown } from "react-icons/io";
5 |
6 | export default function Menu({ title, items }) {
7 | const [itemTitle, setItemTitle] = useState([]);
8 |
9 | const [isOpen, setIsOpen] = useState(true);
10 |
11 | const windowWidth = useWindowWidth();
12 |
13 | const toggleCollapse = () => {
14 | if (windowWidth <= 768) {
15 | setIsOpen(!isOpen);
16 | }
17 | };
18 |
19 | useEffect(() => {
20 | if (isOpen && windowWidth <= 768) {
21 | setIsOpen(false);
22 | }
23 | if (!isOpen && windowWidth > 768) {
24 | setIsOpen(true);
25 | }
26 | }, [windowWidth]);
27 |
28 | useEffect(() => {
29 | setItemTitle(items);
30 | }, []);
31 |
32 | return (
33 |
34 |
64 |
65 | );
66 | }
67 |
--------------------------------------------------------------------------------
/src/components/ui/ProductItem.js:
--------------------------------------------------------------------------------
1 | import { FiPlus } from "react-icons/fi";
2 |
3 | export default function ProductItem({ product }) {
4 | return (
5 |
6 |
9 |

10 |
{product.price}
11 |
{product.title}
12 |
{product.alt}
13 |
14 | );
15 | }
16 |
--------------------------------------------------------------------------------
/src/components/ui/Title.js:
--------------------------------------------------------------------------------
1 | export default function Title({ children }) {
2 | return (
3 | {children}
4 | );
5 | }
6 |
--------------------------------------------------------------------------------
/src/img/quick-response.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zehraikizler/getir-clone/e0c6d26422fa186bc1301cf57c029605668f2fa5/src/img/quick-response.png
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import './style.css';
4 | import App from './App';
5 |
6 | ReactDOM.render(
7 |
8 |
9 | ,
10 | document.getElementById('root')
11 | );
12 |
--------------------------------------------------------------------------------
/src/style.css:
--------------------------------------------------------------------------------
1 | /*
2 | ! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com
3 | */
4 |
5 | /*
6 | 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
7 | 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
8 | */
9 |
10 | *,
11 | ::before,
12 | ::after {
13 | box-sizing: border-box;
14 | /* 1 */
15 | border-width: 0;
16 | /* 2 */
17 | border-style: solid;
18 | /* 2 */
19 | border-color: #e5e7eb;
20 | /* 2 */
21 | }
22 |
23 | ::before,
24 | ::after {
25 | --tw-content: '';
26 | }
27 |
28 | /*
29 | 1. Use a consistent sensible line-height in all browsers.
30 | 2. Prevent adjustments of font size after orientation changes in iOS.
31 | 3. Use a more readable tab size.
32 | 4. Use the user's configured `sans` font-family by default.
33 | */
34 |
35 | html {
36 | line-height: 1.5;
37 | /* 1 */
38 | -webkit-text-size-adjust: 100%;
39 | /* 2 */
40 | /* 3 */
41 | tab-size: 4;
42 | /* 3 */
43 | font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
44 | /* 4 */
45 | }
46 |
47 | /*
48 | 1. Remove the margin in all browsers.
49 | 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
50 | */
51 |
52 | body {
53 | margin: 0;
54 | /* 1 */
55 | line-height: inherit;
56 | /* 2 */
57 | }
58 |
59 | /*
60 | 1. Add the correct height in Firefox.
61 | 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
62 | 3. Ensure horizontal rules are visible by default.
63 | */
64 |
65 | hr {
66 | height: 0;
67 | /* 1 */
68 | color: inherit;
69 | /* 2 */
70 | border-top-width: 1px;
71 | /* 3 */
72 | }
73 |
74 | /*
75 | Add the correct text decoration in Chrome, Edge, and Safari.
76 | */
77 |
78 | abbr:where([title]) {
79 | -webkit-text-decoration: underline dotted;
80 | text-decoration: underline dotted;
81 | }
82 |
83 | /*
84 | Remove the default font size and weight for headings.
85 | */
86 |
87 | h1,
88 | h2,
89 | h3,
90 | h4,
91 | h5,
92 | h6 {
93 | font-size: inherit;
94 | font-weight: inherit;
95 | }
96 |
97 | /*
98 | Reset links to optimize for opt-in styling instead of opt-out.
99 | */
100 |
101 | a {
102 | color: inherit;
103 | text-decoration: inherit;
104 | }
105 |
106 | /*
107 | Add the correct font weight in Edge and Safari.
108 | */
109 |
110 | b,
111 | strong {
112 | font-weight: bolder;
113 | }
114 |
115 | /*
116 | 1. Use the user's configured `mono` font family by default.
117 | 2. Correct the odd `em` font sizing in all browsers.
118 | */
119 |
120 | code,
121 | kbd,
122 | samp,
123 | pre {
124 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
125 | /* 1 */
126 | font-size: 1em;
127 | /* 2 */
128 | }
129 |
130 | /*
131 | Add the correct font size in all browsers.
132 | */
133 |
134 | small {
135 | font-size: 80%;
136 | }
137 |
138 | /*
139 | Prevent `sub` and `sup` elements from affecting the line height in all browsers.
140 | */
141 |
142 | sub,
143 | sup {
144 | font-size: 75%;
145 | line-height: 0;
146 | position: relative;
147 | vertical-align: baseline;
148 | }
149 |
150 | sub {
151 | bottom: -0.25em;
152 | }
153 |
154 | sup {
155 | top: -0.5em;
156 | }
157 |
158 | /*
159 | 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
160 | 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
161 | 3. Remove gaps between table borders by default.
162 | */
163 |
164 | table {
165 | text-indent: 0;
166 | /* 1 */
167 | border-color: inherit;
168 | /* 2 */
169 | border-collapse: collapse;
170 | /* 3 */
171 | }
172 |
173 | /*
174 | 1. Change the font styles in all browsers.
175 | 2. Remove the margin in Firefox and Safari.
176 | 3. Remove default padding in all browsers.
177 | */
178 |
179 | button,
180 | input,
181 | optgroup,
182 | select,
183 | textarea {
184 | font-family: inherit;
185 | /* 1 */
186 | font-size: 100%;
187 | /* 1 */
188 | line-height: inherit;
189 | /* 1 */
190 | color: inherit;
191 | /* 1 */
192 | margin: 0;
193 | /* 2 */
194 | padding: 0;
195 | /* 3 */
196 | }
197 |
198 | /*
199 | Remove the inheritance of text transform in Edge and Firefox.
200 | */
201 |
202 | button,
203 | select {
204 | text-transform: none;
205 | }
206 |
207 | /*
208 | 1. Correct the inability to style clickable types in iOS and Safari.
209 | 2. Remove default button styles.
210 | */
211 |
212 | button,
213 | [type='button'],
214 | [type='reset'],
215 | [type='submit'] {
216 | -webkit-appearance: button;
217 | /* 1 */
218 | background-color: transparent;
219 | /* 2 */
220 | background-image: none;
221 | /* 2 */
222 | }
223 |
224 | /*
225 | Use the modern Firefox focus style for all focusable elements.
226 | */
227 |
228 | :-moz-focusring {
229 | outline: auto;
230 | }
231 |
232 | /*
233 | Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
234 | */
235 |
236 | :-moz-ui-invalid {
237 | box-shadow: none;
238 | }
239 |
240 | /*
241 | Add the correct vertical alignment in Chrome and Firefox.
242 | */
243 |
244 | progress {
245 | vertical-align: baseline;
246 | }
247 |
248 | /*
249 | Correct the cursor style of increment and decrement buttons in Safari.
250 | */
251 |
252 | ::-webkit-inner-spin-button,
253 | ::-webkit-outer-spin-button {
254 | height: auto;
255 | }
256 |
257 | /*
258 | 1. Correct the odd appearance in Chrome and Safari.
259 | 2. Correct the outline style in Safari.
260 | */
261 |
262 | [type='search'] {
263 | -webkit-appearance: textfield;
264 | /* 1 */
265 | outline-offset: -2px;
266 | /* 2 */
267 | }
268 |
269 | /*
270 | Remove the inner padding in Chrome and Safari on macOS.
271 | */
272 |
273 | ::-webkit-search-decoration {
274 | -webkit-appearance: none;
275 | }
276 |
277 | /*
278 | 1. Correct the inability to style clickable types in iOS and Safari.
279 | 2. Change font properties to `inherit` in Safari.
280 | */
281 |
282 | ::-webkit-file-upload-button {
283 | -webkit-appearance: button;
284 | /* 1 */
285 | font: inherit;
286 | /* 2 */
287 | }
288 |
289 | /*
290 | Add the correct display in Chrome and Safari.
291 | */
292 |
293 | summary {
294 | display: list-item;
295 | }
296 |
297 | /*
298 | Removes the default spacing and border for appropriate elements.
299 | */
300 |
301 | blockquote,
302 | dl,
303 | dd,
304 | h1,
305 | h2,
306 | h3,
307 | h4,
308 | h5,
309 | h6,
310 | hr,
311 | figure,
312 | p,
313 | pre {
314 | margin: 0;
315 | }
316 |
317 | fieldset {
318 | margin: 0;
319 | padding: 0;
320 | }
321 |
322 | legend {
323 | padding: 0;
324 | }
325 |
326 | ol,
327 | ul,
328 | menu {
329 | list-style: none;
330 | margin: 0;
331 | padding: 0;
332 | }
333 |
334 | /*
335 | Prevent resizing textareas horizontally by default.
336 | */
337 |
338 | textarea {
339 | resize: vertical;
340 | }
341 |
342 | /*
343 | 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
344 | 2. Set the default placeholder color to the user's configured gray 400 color.
345 | */
346 |
347 | input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
348 | opacity: 1;
349 | /* 1 */
350 | color: #9ca3af;
351 | /* 2 */
352 | }
353 |
354 | input:-ms-input-placeholder, textarea:-ms-input-placeholder {
355 | opacity: 1;
356 | /* 1 */
357 | color: #9ca3af;
358 | /* 2 */
359 | }
360 |
361 | input::placeholder,
362 | textarea::placeholder {
363 | opacity: 1;
364 | /* 1 */
365 | color: #9ca3af;
366 | /* 2 */
367 | }
368 |
369 | /*
370 | Set the default cursor for buttons.
371 | */
372 |
373 | button,
374 | [role="button"] {
375 | cursor: pointer;
376 | }
377 |
378 | /*
379 | Make sure disabled buttons don't get the pointer cursor.
380 | */
381 |
382 | :disabled {
383 | cursor: default;
384 | }
385 |
386 | /*
387 | 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
388 | 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
389 | This can trigger a poorly considered lint error in some tools but is included by design.
390 | */
391 |
392 | img,
393 | svg,
394 | video,
395 | canvas,
396 | audio,
397 | iframe,
398 | embed,
399 | object {
400 | display: block;
401 | /* 1 */
402 | vertical-align: middle;
403 | /* 2 */
404 | }
405 |
406 | /*
407 | Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
408 | */
409 |
410 | img,
411 | video {
412 | max-width: 100%;
413 | height: auto;
414 | }
415 |
416 | /*
417 | Ensure the default browser behavior of the `hidden` attribute.
418 | */
419 |
420 | [hidden] {
421 | display: none;
422 | }
423 |
424 | html,
425 | body {
426 | font-family: "Open Sans", sans-serif;
427 | --tw-bg-opacity: 1;
428 | background-color: rgb(249 250 251 / var(--tw-bg-opacity));
429 | -webkit-font-smoothing: antialiased;
430 | -moz-osx-font-smoothing: grayscale;
431 | }
432 |
433 | .flag-select {
434 | padding-bottom: 0px !important;
435 | }
436 |
437 | .flag-select button {
438 | height: 3.5rem;
439 | border-radius: 0.25rem;
440 | border-width: 2px;
441 | --tw-border-opacity: 1;
442 | border-color: rgb(229 231 235 / var(--tw-border-opacity));
443 | --tw-bg-opacity: 1;
444 | background-color: rgb(255 255 255 / var(--tw-bg-opacity));
445 | transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
446 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
447 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
448 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
449 | transition-duration: 150ms;
450 | }
451 |
452 | .flag-select button:hover {
453 | --tw-border-opacity: 1;
454 | border-color: rgb(93 62 188 / var(--tw-border-opacity));
455 | }
456 |
457 | .flag-select button > span span:nth-child(2) {
458 | padding-left: 0.5rem;
459 | font-size: 0.875rem;
460 | line-height: 1.25rem;
461 | }
462 |
463 | *, ::before, ::after {
464 | --tw-translate-x: 0;
465 | --tw-translate-y: 0;
466 | --tw-rotate: 0;
467 | --tw-skew-x: 0;
468 | --tw-skew-y: 0;
469 | --tw-scale-x: 1;
470 | --tw-scale-y: 1;
471 | --tw-pan-x: ;
472 | --tw-pan-y: ;
473 | --tw-pinch-zoom: ;
474 | --tw-scroll-snap-strictness: proximity;
475 | --tw-ordinal: ;
476 | --tw-slashed-zero: ;
477 | --tw-numeric-figure: ;
478 | --tw-numeric-spacing: ;
479 | --tw-numeric-fraction: ;
480 | --tw-ring-inset: ;
481 | --tw-ring-offset-width: 0px;
482 | --tw-ring-offset-color: #fff;
483 | --tw-ring-color: rgb(59 130 246 / 0.5);
484 | --tw-ring-offset-shadow: 0 0 #0000;
485 | --tw-ring-shadow: 0 0 #0000;
486 | --tw-shadow: 0 0 #0000;
487 | --tw-shadow-colored: 0 0 #0000;
488 | --tw-blur: ;
489 | --tw-brightness: ;
490 | --tw-contrast: ;
491 | --tw-grayscale: ;
492 | --tw-hue-rotate: ;
493 | --tw-invert: ;
494 | --tw-saturate: ;
495 | --tw-sepia: ;
496 | --tw-drop-shadow: ;
497 | --tw-backdrop-blur: ;
498 | --tw-backdrop-brightness: ;
499 | --tw-backdrop-contrast: ;
500 | --tw-backdrop-grayscale: ;
501 | --tw-backdrop-hue-rotate: ;
502 | --tw-backdrop-invert: ;
503 | --tw-backdrop-opacity: ;
504 | --tw-backdrop-saturate: ;
505 | --tw-backdrop-sepia: ;
506 | }
507 |
508 | .container {
509 | width: 100%;
510 | }
511 |
512 | @media (min-width: 640px) {
513 | .container {
514 | max-width: 640px;
515 | }
516 | }
517 |
518 | @media (min-width: 768px) {
519 | .container {
520 | max-width: 768px;
521 | }
522 | }
523 |
524 | @media (min-width: 1024px) {
525 | .container {
526 | max-width: 1024px;
527 | }
528 | }
529 |
530 | @media (min-width: 1280px) {
531 | .container {
532 | max-width: 1280px;
533 | }
534 | }
535 |
536 | @media (min-width: 1536px) {
537 | .container {
538 | max-width: 1536px;
539 | }
540 | }
541 |
542 | .absolute {
543 | position: absolute;
544 | }
545 |
546 | .relative {
547 | position: relative;
548 | }
549 |
550 | .top-1\/2 {
551 | top: 50%;
552 | }
553 |
554 | .-right-6 {
555 | right: -1.5rem;
556 | }
557 |
558 | .-left-6 {
559 | left: -1.5rem;
560 | }
561 |
562 | .top-0 {
563 | top: 0px;
564 | }
565 |
566 | .left-0 {
567 | left: 0px;
568 | }
569 |
570 | .top-3 {
571 | top: 0.75rem;
572 | }
573 |
574 | .right-3 {
575 | right: 0.75rem;
576 | }
577 |
578 | .z-20 {
579 | z-index: 20;
580 | }
581 |
582 | .mx-auto {
583 | margin-left: auto;
584 | margin-right: auto;
585 | }
586 |
587 | .my-4 {
588 | margin-top: 1rem;
589 | margin-bottom: 1rem;
590 | }
591 |
592 | .mx-6 {
593 | margin-left: 1.5rem;
594 | margin-right: 1.5rem;
595 | }
596 |
597 | .mb-4 {
598 | margin-bottom: 1rem;
599 | }
600 |
601 | .mb-2 {
602 | margin-bottom: 0.5rem;
603 | }
604 |
605 | .mt-0 {
606 | margin-top: 0px;
607 | }
608 |
609 | .mt-8 {
610 | margin-top: 2rem;
611 | }
612 |
613 | .mt-3 {
614 | margin-top: 0.75rem;
615 | }
616 |
617 | .mt-4 {
618 | margin-top: 1rem;
619 | }
620 |
621 | .mb-3 {
622 | margin-bottom: 0.75rem;
623 | }
624 |
625 | .block {
626 | display: block;
627 | }
628 |
629 | .flex {
630 | display: flex;
631 | }
632 |
633 | .grid {
634 | display: grid;
635 | }
636 |
637 | .hidden {
638 | display: none;
639 | }
640 |
641 | .h-8 {
642 | height: 2rem;
643 | }
644 |
645 | .h-16 {
646 | height: 4rem;
647 | }
648 |
649 | .h-14 {
650 | height: 3.5rem;
651 | }
652 |
653 | .h-10 {
654 | height: 2.5rem;
655 | }
656 |
657 | .h-auto {
658 | height: auto;
659 | }
660 |
661 | .h-\[500px\] {
662 | height: 500px;
663 | }
664 |
665 | .h-full {
666 | height: 100%;
667 | }
668 |
669 | .h-12 {
670 | height: 3rem;
671 | }
672 |
673 | .h-36 {
674 | height: 9rem;
675 | }
676 |
677 | .h-6 {
678 | height: 1.5rem;
679 | }
680 |
681 | .w-16 {
682 | width: 4rem;
683 | }
684 |
685 | .w-8 {
686 | width: 2rem;
687 | }
688 |
689 | .w-14 {
690 | width: 3.5rem;
691 | }
692 |
693 | .w-full {
694 | width: 100%;
695 | }
696 |
697 | .w-36 {
698 | width: 9rem;
699 | }
700 |
701 | .w-12 {
702 | width: 3rem;
703 | }
704 |
705 | .w-6 {
706 | width: 1.5rem;
707 | }
708 |
709 | .flex-1 {
710 | flex: 1 1 0%;
711 | }
712 |
713 | .-translate-y-1\/2 {
714 | --tw-translate-y: -50%;
715 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
716 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
717 | }
718 |
719 | .translate-x-0 {
720 | --tw-translate-x: 0px;
721 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
722 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
723 | }
724 |
725 | .-rotate-180 {
726 | --tw-rotate: -180deg;
727 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
728 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
729 | }
730 |
731 | .transform {
732 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
733 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
734 | }
735 |
736 | .grid-cols-1 {
737 | grid-template-columns: repeat(1, minmax(0, 1fr));
738 | }
739 |
740 | .grid-cols-4 {
741 | grid-template-columns: repeat(4, minmax(0, 1fr));
742 | }
743 |
744 | .grid-cols-3 {
745 | grid-template-columns: repeat(3, minmax(0, 1fr));
746 | }
747 |
748 | .flex-col {
749 | flex-direction: column;
750 | }
751 |
752 | .place-items-center {
753 | place-items: center;
754 | }
755 |
756 | .items-center {
757 | align-items: center;
758 | }
759 |
760 | .justify-start {
761 | justify-content: flex-start;
762 | }
763 |
764 | .justify-center {
765 | justify-content: center;
766 | }
767 |
768 | .justify-between {
769 | justify-content: space-between;
770 | }
771 |
772 | .gap-4 {
773 | gap: 1rem;
774 | }
775 |
776 | .gap-1 {
777 | gap: 0.25rem;
778 | }
779 |
780 | .gap-0\.1 {
781 | gap: 0.063rem;
782 | }
783 |
784 | .gap-0 {
785 | gap: 0px;
786 | }
787 |
788 | .gap-2 {
789 | gap: 0.5rem;
790 | }
791 |
792 | .gap-y-6 {
793 | row-gap: 1.5rem;
794 | }
795 |
796 | .gap-y-5 {
797 | row-gap: 1.25rem;
798 | }
799 |
800 | .gap-x-4 {
801 | -webkit-column-gap: 1rem;
802 | column-gap: 1rem;
803 | }
804 |
805 | .gap-y-3 {
806 | row-gap: 0.75rem;
807 | }
808 |
809 | .gap-y-4 {
810 | row-gap: 1rem;
811 | }
812 |
813 | .gap-x-8 {
814 | -webkit-column-gap: 2rem;
815 | column-gap: 2rem;
816 | }
817 |
818 | .gap-x-2 {
819 | -webkit-column-gap: 0.5rem;
820 | column-gap: 0.5rem;
821 | }
822 |
823 | .gap-y-2 {
824 | row-gap: 0.5rem;
825 | }
826 |
827 | .gap-y-1 {
828 | row-gap: 0.25rem;
829 | }
830 |
831 | .self-end {
832 | align-self: flex-end;
833 | }
834 |
835 | .overflow-hidden {
836 | overflow: hidden;
837 | }
838 |
839 | .overflow-x-hidden {
840 | overflow-x: hidden;
841 | }
842 |
843 | .whitespace-nowrap {
844 | white-space: nowrap;
845 | }
846 |
847 | .rounded-lg {
848 | border-radius: 0.5rem;
849 | }
850 |
851 | .rounded {
852 | border-radius: 0.25rem;
853 | }
854 |
855 | .rounded-md {
856 | border-radius: 0.375rem;
857 | }
858 |
859 | .border {
860 | border-width: 1px;
861 | }
862 |
863 | .border-2 {
864 | border-width: 2px;
865 | }
866 |
867 | .border-t {
868 | border-top-width: 1px;
869 | }
870 |
871 | .border-gray-100 {
872 | --tw-border-opacity: 1;
873 | border-color: rgb(243 244 246 / var(--tw-border-opacity));
874 | }
875 |
876 | .border-gray-200 {
877 | --tw-border-opacity: 1;
878 | border-color: rgb(229 231 235 / var(--tw-border-opacity));
879 | }
880 |
881 | .bg-white {
882 | --tw-bg-opacity: 1;
883 | background-color: rgb(255 255 255 / var(--tw-bg-opacity));
884 | }
885 |
886 | .bg-brand-color {
887 | --tw-bg-opacity: 1;
888 | background-color: rgb(76 51 152 / var(--tw-bg-opacity));
889 | }
890 |
891 | .bg-transparent {
892 | background-color: transparent;
893 | }
894 |
895 | .bg-gray-50 {
896 | --tw-bg-opacity: 1;
897 | background-color: rgb(249 250 251 / var(--tw-bg-opacity));
898 | }
899 |
900 | .bg-brand-yellow {
901 | --tw-bg-opacity: 1;
902 | background-color: rgb(255 211 0 / var(--tw-bg-opacity));
903 | }
904 |
905 | .bg-purple-700 {
906 | --tw-bg-opacity: 1;
907 | background-color: rgb(126 34 206 / var(--tw-bg-opacity));
908 | }
909 |
910 | .bg-primary-brand-color {
911 | --tw-bg-opacity: 1;
912 | background-color: rgb(93 62 188 / var(--tw-bg-opacity));
913 | }
914 |
915 | .bg-opacity-10 {
916 | --tw-bg-opacity: 0.1;
917 | }
918 |
919 | .bg-mobile-app {
920 | background-image: url(https://getir.com/_next/static/images/doodle-d659f9f1fd505c811c2331fe3ffddd5f.png);
921 | }
922 |
923 | .object-cover {
924 | object-fit: cover;
925 | }
926 |
927 | .p-6 {
928 | padding: 1.5rem;
929 | }
930 |
931 | .p-5 {
932 | padding: 1.25rem;
933 | }
934 |
935 | .p-4 {
936 | padding: 1rem;
937 | }
938 |
939 | .p-3 {
940 | padding: 0.75rem;
941 | }
942 |
943 | .px-4 {
944 | padding-left: 1rem;
945 | padding-right: 1rem;
946 | }
947 |
948 | .py-4 {
949 | padding-top: 1rem;
950 | padding-bottom: 1rem;
951 | }
952 |
953 | .px-3 {
954 | padding-left: 0.75rem;
955 | padding-right: 0.75rem;
956 | }
957 |
958 | .px-2 {
959 | padding-left: 0.5rem;
960 | padding-right: 0.5rem;
961 | }
962 |
963 | .px-6 {
964 | padding-left: 1.5rem;
965 | padding-right: 1.5rem;
966 | }
967 |
968 | .py-6 {
969 | padding-top: 1.5rem;
970 | padding-bottom: 1.5rem;
971 | }
972 |
973 | .px-5 {
974 | padding-left: 1.25rem;
975 | padding-right: 1.25rem;
976 | }
977 |
978 | .pt-8 {
979 | padding-top: 2rem;
980 | }
981 |
982 | .pt-6 {
983 | padding-top: 1.5rem;
984 | }
985 |
986 | .pt-1 {
987 | padding-top: 0.25rem;
988 | }
989 |
990 | .pt-2 {
991 | padding-top: 0.5rem;
992 | }
993 |
994 | .text-center {
995 | text-align: center;
996 | }
997 |
998 | .text-lg {
999 | font-size: 1.125rem;
1000 | line-height: 1.75rem;
1001 | }
1002 |
1003 | .text-xs {
1004 | font-size: 0.75rem;
1005 | line-height: 1rem;
1006 | }
1007 |
1008 | .text-sm {
1009 | font-size: 0.875rem;
1010 | line-height: 1.25rem;
1011 | }
1012 |
1013 | .text-4xl {
1014 | font-size: 2.25rem;
1015 | line-height: 2.5rem;
1016 | }
1017 |
1018 | .text-3xl {
1019 | font-size: 1.875rem;
1020 | line-height: 2.25rem;
1021 | }
1022 |
1023 | .font-semibold {
1024 | font-weight: 600;
1025 | }
1026 |
1027 | .font-normal {
1028 | font-weight: 400;
1029 | }
1030 |
1031 | .font-bold {
1032 | font-weight: 700;
1033 | }
1034 |
1035 | .tracking-tighter {
1036 | letter-spacing: -0.05em;
1037 | }
1038 |
1039 | .tracking-tight {
1040 | letter-spacing: -0.025em;
1041 | }
1042 |
1043 | .text-brand-color {
1044 | --tw-text-opacity: 1;
1045 | color: rgb(76 51 152 / var(--tw-text-opacity));
1046 | }
1047 |
1048 | .text-purple-700 {
1049 | --tw-text-opacity: 1;
1050 | color: rgb(126 34 206 / var(--tw-text-opacity));
1051 | }
1052 |
1053 | .text-gray-700 {
1054 | --tw-text-opacity: 1;
1055 | color: rgb(55 65 81 / var(--tw-text-opacity));
1056 | }
1057 |
1058 | .text-primary-brand-color {
1059 | --tw-text-opacity: 1;
1060 | color: rgb(93 62 188 / var(--tw-text-opacity));
1061 | }
1062 |
1063 | .text-gray-600 {
1064 | --tw-text-opacity: 1;
1065 | color: rgb(75 85 99 / var(--tw-text-opacity));
1066 | }
1067 |
1068 | .text-white {
1069 | --tw-text-opacity: 1;
1070 | color: rgb(255 255 255 / var(--tw-text-opacity));
1071 | }
1072 |
1073 | .text-gray-500 {
1074 | --tw-text-opacity: 1;
1075 | color: rgb(107 114 128 / var(--tw-text-opacity));
1076 | }
1077 |
1078 | .text-gray-900 {
1079 | --tw-text-opacity: 1;
1080 | color: rgb(17 24 39 / var(--tw-text-opacity));
1081 | }
1082 |
1083 | .text-opacity-80 {
1084 | --tw-text-opacity: 0.8;
1085 | }
1086 |
1087 | .shadow-md {
1088 | --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
1089 | --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
1090 | box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1091 | }
1092 |
1093 | .outline-none {
1094 | outline: 2px solid transparent;
1095 | outline-offset: 2px;
1096 | }
1097 |
1098 | .transition-all {
1099 | transition-property: all;
1100 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1101 | transition-duration: 150ms;
1102 | }
1103 |
1104 | .transition-colors {
1105 | transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
1106 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1107 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
1108 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1109 | transition-duration: 150ms;
1110 | }
1111 |
1112 | .transition {
1113 | transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, -webkit-text-decoration-color, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;
1114 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1115 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;
1116 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1117 | transition-duration: 150ms;
1118 | }
1119 |
1120 | @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
1121 |
1122 | @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css");
1123 |
1124 | @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css");
1125 |
1126 | .before\:absolute::before {
1127 | content: var(--tw-content);
1128 | position: absolute;
1129 | }
1130 |
1131 | .before\:inset-0::before {
1132 | content: var(--tw-content);
1133 | top: 0px;
1134 | right: 0px;
1135 | bottom: 0px;
1136 | left: 0px;
1137 | }
1138 |
1139 | .before\:-left-4::before {
1140 | content: var(--tw-content);
1141 | left: -1rem;
1142 | }
1143 |
1144 | .before\:top-1\/2::before {
1145 | content: var(--tw-content);
1146 | top: 50%;
1147 | }
1148 |
1149 | .before\:z-10::before {
1150 | content: var(--tw-content);
1151 | z-index: 10;
1152 | }
1153 |
1154 | .before\:h-\[3px\]::before {
1155 | content: var(--tw-content);
1156 | height: 3px;
1157 | }
1158 |
1159 | .before\:h-full::before {
1160 | content: var(--tw-content);
1161 | height: 100%;
1162 | }
1163 |
1164 | .before\:w-\[3px\]::before {
1165 | content: var(--tw-content);
1166 | width: 3px;
1167 | }
1168 |
1169 | .before\:w-full::before {
1170 | content: var(--tw-content);
1171 | width: 100%;
1172 | }
1173 |
1174 | .before\:-translate-y-1\/2::before {
1175 | content: var(--tw-content);
1176 | --tw-translate-y: -50%;
1177 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1178 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1179 | }
1180 |
1181 | .before\:rounded-full::before {
1182 | content: var(--tw-content);
1183 | border-radius: 9999px;
1184 | }
1185 |
1186 | .before\:bg-black::before {
1187 | content: var(--tw-content);
1188 | --tw-bg-opacity: 1;
1189 | background-color: rgb(0 0 0 / var(--tw-bg-opacity));
1190 | }
1191 |
1192 | .before\:bg-gradient-to-r::before {
1193 | content: var(--tw-content);
1194 | background-image: linear-gradient(to right, var(--tw-gradient-stops));
1195 | }
1196 |
1197 | .before\:from-primary-brand-color::before {
1198 | content: var(--tw-content);
1199 | --tw-gradient-from: #5d3ebc;
1200 | --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(93 62 188 / 0));
1201 | }
1202 |
1203 | .before\:to-transparent::before {
1204 | content: var(--tw-content);
1205 | --tw-gradient-to: transparent;
1206 | }
1207 |
1208 | .hover\:scale-105:hover {
1209 | --tw-scale-x: 1.05;
1210 | --tw-scale-y: 1.05;
1211 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1212 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1213 | }
1214 |
1215 | .hover\:rounded-t-lg:hover {
1216 | border-top-left-radius: 0.5rem;
1217 | border-top-right-radius: 0.5rem;
1218 | }
1219 |
1220 | .hover\:border-purple-700:hover {
1221 | --tw-border-opacity: 1;
1222 | border-color: rgb(126 34 206 / var(--tw-border-opacity));
1223 | }
1224 |
1225 | .hover\:bg-purple-50:hover {
1226 | --tw-bg-opacity: 1;
1227 | background-color: rgb(250 245 255 / var(--tw-bg-opacity));
1228 | }
1229 |
1230 | .hover\:bg-brand-hover-purple:hover {
1231 | --tw-bg-opacity: 1;
1232 | background-color: rgb(93 62 188 / var(--tw-bg-opacity));
1233 | }
1234 |
1235 | .hover\:bg-primary-brand-color:hover {
1236 | --tw-bg-opacity: 1;
1237 | background-color: rgb(93 62 188 / var(--tw-bg-opacity));
1238 | }
1239 |
1240 | .hover\:bg-brand-color:hover {
1241 | --tw-bg-opacity: 1;
1242 | background-color: rgb(76 51 152 / var(--tw-bg-opacity));
1243 | }
1244 |
1245 | .hover\:text-purple-700:hover {
1246 | --tw-text-opacity: 1;
1247 | color: rgb(126 34 206 / var(--tw-text-opacity));
1248 | }
1249 |
1250 | .hover\:text-brand-yellow:hover {
1251 | --tw-text-opacity: 1;
1252 | color: rgb(255 211 0 / var(--tw-text-opacity));
1253 | }
1254 |
1255 | .hover\:text-opacity-100:hover {
1256 | --tw-text-opacity: 1;
1257 | }
1258 |
1259 | .hover\:underline:hover {
1260 | -webkit-text-decoration-line: underline;
1261 | text-decoration-line: underline;
1262 | }
1263 |
1264 | .focus\:border-purple-700:focus {
1265 | --tw-border-opacity: 1;
1266 | border-color: rgb(126 34 206 / var(--tw-border-opacity));
1267 | }
1268 |
1269 | .group:focus-within .group-focus-within\:h-7 {
1270 | height: 1.75rem;
1271 | }
1272 |
1273 | .group:focus-within .group-focus-within\:text-xs {
1274 | font-size: 0.75rem;
1275 | line-height: 1rem;
1276 | }
1277 |
1278 | .group:focus-within .group-focus-within\:text-purple-600 {
1279 | --tw-text-opacity: 1;
1280 | color: rgb(147 51 234 / var(--tw-text-opacity));
1281 | }
1282 |
1283 | .group:hover .group-hover\:text-brand-color {
1284 | --tw-text-opacity: 1;
1285 | color: rgb(76 51 152 / var(--tw-text-opacity));
1286 | }
1287 |
1288 | .peer:valid ~ .peer-valid\:h-7 {
1289 | height: 1.75rem;
1290 | }
1291 |
1292 | .peer:valid ~ .peer-valid\:text-xs {
1293 | font-size: 0.75rem;
1294 | line-height: 1rem;
1295 | }
1296 |
1297 | .peer:valid ~ .peer-valid\:text-purple-600 {
1298 | --tw-text-opacity: 1;
1299 | color: rgb(147 51 234 / var(--tw-text-opacity));
1300 | }
1301 |
1302 | @media (min-width: 640px) {
1303 | .sm\:mt-8 {
1304 | margin-top: 2rem;
1305 | }
1306 |
1307 | .sm\:grid-cols-4 {
1308 | grid-template-columns: repeat(4, minmax(0, 1fr));
1309 | }
1310 |
1311 | .sm\:grid-cols-1 {
1312 | grid-template-columns: repeat(1, minmax(0, 1fr));
1313 | }
1314 |
1315 | .sm\:flex-row {
1316 | flex-direction: row;
1317 | }
1318 |
1319 | .sm\:p-0 {
1320 | padding: 0px;
1321 | }
1322 |
1323 | .sm\:pt-10 {
1324 | padding-top: 2.5rem;
1325 | }
1326 |
1327 | .sm\:pb-6 {
1328 | padding-bottom: 1.5rem;
1329 | }
1330 |
1331 | .sm\:pl-12 {
1332 | padding-left: 3rem;
1333 | }
1334 |
1335 | .sm\:text-left {
1336 | text-align: left;
1337 | }
1338 |
1339 | .sm\:text-base {
1340 | font-size: 1rem;
1341 | line-height: 1.5rem;
1342 | }
1343 | }
1344 |
1345 | @media (min-width: 768px) {
1346 | .md\:container {
1347 | width: 100%;
1348 | }
1349 |
1350 | @media (min-width: 640px) {
1351 | .md\:container {
1352 | max-width: 640px;
1353 | }
1354 | }
1355 |
1356 | @media (min-width: 768px) {
1357 | .md\:container {
1358 | max-width: 768px;
1359 | }
1360 | }
1361 |
1362 | @media (min-width: 1024px) {
1363 | .md\:container {
1364 | max-width: 1024px;
1365 | }
1366 | }
1367 |
1368 | @media (min-width: 1280px) {
1369 | .md\:container {
1370 | max-width: 1280px;
1371 | }
1372 | }
1373 |
1374 | @media (min-width: 1536px) {
1375 | .md\:container {
1376 | max-width: 1536px;
1377 | }
1378 | }
1379 |
1380 | .md\:absolute {
1381 | position: absolute;
1382 | }
1383 |
1384 | .md\:left-1\/2 {
1385 | left: 50%;
1386 | }
1387 |
1388 | .md\:-mx-2 {
1389 | margin-left: -0.5rem;
1390 | margin-right: -0.5rem;
1391 | }
1392 |
1393 | .md\:mx-0 {
1394 | margin-left: 0px;
1395 | margin-right: 0px;
1396 | }
1397 |
1398 | .md\:mt-6 {
1399 | margin-top: 1.5rem;
1400 | }
1401 |
1402 | .md\:block {
1403 | display: block;
1404 | }
1405 |
1406 | .md\:flex {
1407 | display: flex;
1408 | }
1409 |
1410 | .md\:hidden {
1411 | display: none;
1412 | }
1413 |
1414 | .md\:h-11 {
1415 | height: 2.75rem;
1416 | }
1417 |
1418 | .md\:h-10 {
1419 | height: 2.5rem;
1420 | }
1421 |
1422 | .md\:h-\[500px\] {
1423 | height: 500px;
1424 | }
1425 |
1426 | .md\:w-10 {
1427 | width: 2.5rem;
1428 | }
1429 |
1430 | .md\:w-\[400px\] {
1431 | width: 400px;
1432 | }
1433 |
1434 | .md\:-translate-x-1\/2 {
1435 | --tw-translate-x: -50%;
1436 | -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1437 | transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1438 | }
1439 |
1440 | .md\:grid-cols-3 {
1441 | grid-template-columns: repeat(3, minmax(0, 1fr));
1442 | }
1443 |
1444 | .md\:grid-cols-6 {
1445 | grid-template-columns: repeat(6, minmax(0, 1fr));
1446 | }
1447 |
1448 | .md\:grid-cols-2 {
1449 | grid-template-columns: repeat(2, minmax(0, 1fr));
1450 | }
1451 |
1452 | .md\:flex-row {
1453 | flex-direction: row;
1454 | }
1455 |
1456 | .md\:justify-between {
1457 | justify-content: space-between;
1458 | }
1459 |
1460 | .md\:gap-y-4 {
1461 | row-gap: 1rem;
1462 | }
1463 |
1464 | .md\:gap-y-3 {
1465 | row-gap: 0.75rem;
1466 | }
1467 |
1468 | .md\:rounded-lg {
1469 | border-radius: 0.5rem;
1470 | }
1471 |
1472 | .md\:rounded-t-lg {
1473 | border-top-left-radius: 0.5rem;
1474 | border-top-right-radius: 0.5rem;
1475 | }
1476 |
1477 | .md\:bg-brand-hover-purple {
1478 | --tw-bg-opacity: 1;
1479 | background-color: rgb(93 62 188 / var(--tw-bg-opacity));
1480 | }
1481 |
1482 | .md\:px-2 {
1483 | padding-left: 0.5rem;
1484 | padding-right: 0.5rem;
1485 | }
1486 |
1487 | .md\:px-0 {
1488 | padding-left: 0px;
1489 | padding-right: 0px;
1490 | }
1491 |
1492 | .md\:py-10 {
1493 | padding-top: 2.5rem;
1494 | padding-bottom: 2.5rem;
1495 | }
1496 |
1497 | .md\:pt-8 {
1498 | padding-top: 2rem;
1499 | }
1500 |
1501 | .md\:pt-0 {
1502 | padding-top: 0px;
1503 | }
1504 | }
1505 |
1506 | @media (min-width: 1024px) {
1507 | .lg\:flex {
1508 | display: flex;
1509 | }
1510 |
1511 | .lg\:h-auto {
1512 | height: auto;
1513 | }
1514 |
1515 | .lg\:grid-cols-8 {
1516 | grid-template-columns: repeat(8, minmax(0, 1fr));
1517 | }
1518 |
1519 | .lg\:grid-cols-6 {
1520 | grid-template-columns: repeat(6, minmax(0, 1fr));
1521 | }
1522 |
1523 | .lg\:grid-cols-5 {
1524 | grid-template-columns: repeat(5, minmax(0, 1fr));
1525 | }
1526 | }
1527 |
1528 | @media (min-width: 1280px) {
1529 | .xl\:grid-cols-10 {
1530 | grid-template-columns: repeat(10, minmax(0, 1fr));
1531 | }
1532 |
1533 | .xl\:grid-cols-8 {
1534 | grid-template-columns: repeat(8, minmax(0, 1fr));
1535 | }
1536 | }
1537 |
1538 | @media (min-width: 1536px) {
1539 | .\32xl\:grid-cols-12 {
1540 | grid-template-columns: repeat(12, minmax(0, 1fr));
1541 | }
1542 |
1543 | .\32xl\:grid-cols-9 {
1544 | grid-template-columns: repeat(9, minmax(0, 1fr));
1545 | }
1546 | }
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | mode: 'jit',
3 | purge: [],
4 | darkMode: false,
5 | purge: [
6 | './public/**/*.html',
7 | './src/**/*.{js,jsx,ts,tsx,vue}',
8 | ],
9 | theme: {
10 | extend: {
11 | spacing: {
12 | '0.1': '0.063rem'
13 | },
14 | backgroundImage: theme => ({
15 | 'mobile-app': 'url(https://getir.com/_next/static/images/doodle-d659f9f1fd505c811c2331fe3ffddd5f.png)'
16 | }),
17 | colors: {
18 | 'brand-color': '#4c3398',
19 | 'primary-brand-color': '#5d3ebc',
20 | 'secondary-brand-color': '#7849f7',
21 | 'brand-yellow': '#ffd300',
22 | 'brand-hover-purple': '#5d3ebc'
23 | }
24 | },
25 | },
26 | plugins: [],
27 | }
28 |
--------------------------------------------------------------------------------
/tailwind.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
5 | @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
6 | @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css");
7 | @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css");
8 |
9 | @layer base {
10 | html,
11 | body {
12 | font-family: "Open Sans", sans-serif;
13 | @apply antialiased bg-gray-50;
14 | }
15 | .flag-select {
16 | @apply !pb-0;
17 | }
18 | .flag-select button {
19 | @apply h-14 border-2 border-gray-200 transition-colors bg-white rounded hover:border-primary-brand-color;
20 | }
21 | .flag-select button > span span:nth-child(2) {
22 | @apply text-sm pl-2;
23 | }
24 | .ReactCollapse--collapse {
25 | @apply transition-all;
26 | }
27 | }
--------------------------------------------------------------------------------