images.d.ts added

This commit is contained in:
dimitar 2025-01-03 01:19:25 +01:00
parent ae55c3f8d7
commit 6608c07fd4
65 changed files with 328 additions and 6 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

12
.idea/mobilemkv2.iml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/mobilemkv2.iml" filepath="$PROJECT_DIR$/.idea/mobilemkv2.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -4,7 +4,7 @@
"slug": "mobilemkv2",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"icon": "./assets/images/phone.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
@ -28,9 +28,18 @@
"expo-splash-screen",
{
"image": "./assets/images/splash-icon.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
"resizeMode": "cover",
"backgroundColor": "#ffffff",
"enableFullScreenImage_legacy": true
}
],
[
"expo-font",
{
"fonts": ["./assets/fonts/SpaceMono-Regular.ttf",
"./assets/fonts/Rubik-Bold.ttf"
]
}
]
],

View File

@ -10,7 +10,7 @@ export default function Index() {
alignItems: "center",
}}
>
<Text className="font-bold text-lg mt-10">Welcome to mobile.mk</Text>
<Text className="font-bold my-10 uppercase">Welcome to mobile.mk</Text>
<Link href="/signin">SignIn</Link>
<Link href="/explore">explore</Link>
<Link href="/profile">profile</Link>

View File

@ -1,6 +1,23 @@
import { Stack } from "expo-router";
import { SplashScreen, Stack } from "expo-router";
import { useFonts } from "expo-font";
import { useEffect } from "react";
// import * as SplashScreen from "expo-splash-screen";
import "./global.css";
export default function RootLayout() {
const [fontLoaded] = useFonts({
spaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"),
});
useEffect(() => {
if (fontLoaded) {
SplashScreen.hideAsync();
}
}, [fontLoaded]);
if (!fontLoaded) {
return null;
}
return <Stack />;
}

BIN
assets/fonts/Rubik-Bold.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/icons/area.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

BIN
assets/icons/back-arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

BIN
assets/icons/bath.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

BIN
assets/icons/bed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

BIN
assets/icons/bell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/icons/calendar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
assets/icons/car-park.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/icons/chat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/icons/cutlery.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

BIN
assets/icons/dog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/icons/dumbell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

BIN
assets/icons/edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icons/filter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

BIN
assets/icons/google.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

BIN
assets/icons/home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

BIN
assets/icons/info.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/icons/language.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/icons/laundry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/icons/location.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

BIN
assets/icons/logout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/icons/people.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
assets/icons/person.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/icons/phone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

BIN
assets/icons/run.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/icons/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/icons/send.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/icons/shield.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

BIN
assets/icons/swim.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/wallet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
assets/icons/wifi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
assets/images/Untitled.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
assets/images/bar-chart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
assets/images/car1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
assets/images/car2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 56 KiB

BIN
assets/images/japan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

BIN
assets/images/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
assets/images/new-york.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

BIN
assets/images/no-result.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
assets/images/splash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

165
constants/data.ts Normal file
View File

@ -0,0 +1,165 @@
import icons from "./icons";
import images from "./images";
export const cards = [
{
title: "Card 1",
location: "Location 1",
price: "$100",
rating: 4.8,
category: "house",
image: images.newYork,
},
{
title: "Card 2",
location: "Location 2",
price: "$200",
rating: 3,
category: "house",
image: images.japan,
},
{
title: "Card 3",
location: "Location 3",
price: "$300",
rating: 2,
category: "flat",
image: images.newYork,
},
{
title: "Card 4",
location: "Location 4",
price: "$400",
rating: 5,
category: "villa",
image: images.japan,
},
];
export const featuredCards = [
{
title: "Featured 1",
location: "Location 1",
price: "$100",
rating: 4.8,
image: images.newYork,
category: "house",
},
{
title: "Featured 2",
location: "Location 2",
price: "$200",
rating: 3,
image: images.japan,
category: "flat",
},
];
export const categories = [
{ title: "All", category: "All" },
{ title: "Houses", category: "House" },
{ title: "Condos", category: "Condos" },
{ title: "Duplexes", category: "Duplexes" },
{ title: "Studios", category: "Studios" },
{ title: "Villas", category: "Villa" },
{ title: "Apartments", category: "Apartments" },
{ title: "Townhomes", category: "Townhomes" },
{ title: "Others", category: "Others" },
];
export const settings = [
{
title: "My Bookings",
icon: icons.calendar,
},
{
title: "Payments",
icon: icons.wallet,
},
{
title: "Profile",
icon: icons.person,
},
{
title: "Notifications",
icon: icons.bell,
},
{
title: "Security",
icon: icons.shield,
},
{
title: "Language",
icon: icons.language,
},
{
title: "Help Center",
icon: icons.info,
},
{
title: "Invite Friends",
icon: icons.people,
},
];
export const facilities = [
{
title: "Laundry",
icon: icons.laundry,
},
{
title: "Car Parking",
icon: icons.carPark,
},
{
title: "Sports Center",
icon: icons.run,
},
{
title: "Cutlery",
icon: icons.cutlery,
},
{
title: "Gym",
icon: icons.dumbell,
},
{
title: "Swimming pool",
icon: icons.swim,
},
{
title: "Wifi",
icon: icons.wifi,
},
{
title: "Pet Center",
icon: icons.dog,
},
];
export const gallery = [
{
id: 1,
image: images.newYork,
},
{
id: 2,
image: images.japan,
},
{
id: 3,
image: images.newYork,
},
{
id: 4,
image: images.japan,
},
{
id: 5,
image: images.newYork,
},
{
id: 6,
image: images.japan,
},
];

69
constants/icons.ts Normal file
View File

@ -0,0 +1,69 @@
import google from "../assets/icons/google.png";
import home from "../assets/icons/home.png";
import search from "../assets/icons/search.png";
import person from "../assets/icons/person.png";
import bell from "@/assets/icons/bell.png";
import filter from "@/assets/icons/filter.png";
import star from "@/assets/icons/star.png";
import heart from "@/assets/icons/heart.png";
import backArrow from "@/assets/icons/back-arrow.png";
import calendar from "@/assets/icons/calendar.png";
import info from "@/assets/icons/info.png";
import language from "@/assets/icons/language.png";
import logout from "@/assets/icons/logout.png";
import people from "@/assets/icons/people.png";
import shield from "@/assets/icons/shield.png";
import wallet from "@/assets/icons/wallet.png";
import rightArrow from "@/assets/icons/right-arrow.png";
import send from "@/assets/icons/send.png";
import bed from "@/assets/icons/bed.png";
import bath from "@/assets/icons/bath.png";
import area from "@/assets/icons/area.png";
import chat from "@/assets/icons/chat.png";
import phone from "@/assets/icons/phone.png";
import carPark from "@/assets/icons/car-park.png";
import cutlery from "@/assets/icons/cutlery.png";
import dog from "@/assets/icons/dog.png";
import dumbell from "@/assets/icons/dumbell.png";
import laundry from "@/assets/icons/laundry.png";
import run from "@/assets/icons/run.png";
import swim from "@/assets/icons/swim.png";
import wifi from "@/assets/icons/wifi.png";
import location from "@/assets/icons/location.png";
import edit from "@/assets/icons/edit.png";
export default {
google,
home,
search,
person,
bell,
filter,
star,
heart,
backArrow,
calendar,
info,
language,
logout,
people,
shield,
wallet,
rightArrow,
send,
bed,
bath,
area,
chat,
phone,
carPark,
cutlery,
dog,
dumbell,
laundry,
run,
swim,
wifi,
location,
edit,
};

18
constants/images.ts Normal file
View File

@ -0,0 +1,18 @@
// @ts-ignore
// import onboarding from "@/assets/images/onboarding.png";
// import avatar from "@/assets/images/avatar.png";
// import newYork from "@/assets/images/new-york.png";
// import japan from "@/assets/images/japan.png";
// import cardGradient from "@/assets/images/card-gradient.png";
// import barChart from "@/assets/images/bar-chart.png";
// import whiteGradient from "@/assets/images/white-gradient.png";
// import map from "@/assets/images/map.png";
// import noResult from "@/assets/images/no-result.png";
import car1 from "../assets/images/car1.jpg";
// @ts-ignore
import car2 from '../assets/images/car2.jpg';
export default {
car1,
car2,
};

9
image.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
declare module "*.png" {
const value: any;
export default value;
}
declare module "*.jpg" {
const value: any;
export default value;
}

1
notes.md Normal file
View File

@ -0,0 +1 @@
splash screen not showing