Skip to content

Commit 7f6fd87

Browse files
Merge pull request #6 from harshqa-webkul/zoom_in
zoom in zoom out images
2 parents b629834 + cbc8b27 commit 7f6fd87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+602
-498
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<template>
2+
<div>
3+
<!-- Thumbnail -->
4+
<img
5+
:src="src"
6+
:alt="alt"
7+
class="thumbnail"
8+
@click="open = true"
9+
/>
10+
11+
<!-- Fullscreen Overlay -->
12+
<div
13+
v-if="open"
14+
class="overlay"
15+
@click.self="open = false"
16+
>
17+
<div class="image-wrapper">
18+
<button class="close-btn" @click="open = false">✕</button>
19+
20+
<img :src="src" :alt="alt" class="popup-image" />
21+
</div>
22+
</div>
23+
</div>
24+
</template>
25+
26+
<script>
27+
export default {
28+
name: "ImagePopup",
29+
props: {
30+
src: String,
31+
alt: String
32+
},
33+
data() {
34+
return { open: false }
35+
}
36+
}
37+
</script>
38+
39+
<style scoped>
40+
.thumbnail {
41+
cursor: zoom-in;
42+
max-width: 100%;
43+
border-radius: 8px;
44+
}
45+
46+
/* FULLSCREEN OVERLAY */
47+
.overlay {
48+
position: fixed;
49+
top: 0;
50+
left: 0;
51+
width: 100vw;
52+
height: 100vh;
53+
background: rgba(0, 0, 0, 0.75);
54+
display: flex;
55+
align-items: center;
56+
justify-content: center;
57+
z-index: 99999;
58+
animation: fadeIn .25s ease;
59+
}
60+
61+
.image-wrapper {
62+
position: relative;
63+
animation: zoomIn .25s ease;
64+
}
65+
66+
.popup-image {
67+
max-width: 85vw;
68+
max-height: 85vh;
69+
border-radius: 10px;
70+
box-shadow: 0 0 20px rgba(0,0,0,0.5);
71+
}
72+
73+
.close-btn {
74+
position: absolute;
75+
top: -35px;
76+
right: -40px;
77+
background: white;
78+
color: black;
79+
border: none;
80+
border-radius: 50%;
81+
font-size: 20px;
82+
padding: 5px 10px;
83+
cursor: pointer;
84+
}
85+
86+
@media (max-width: 600px) {
87+
.close-btn {
88+
display: none;
89+
}
90+
}
91+
92+
@keyframes fadeIn {
93+
from { opacity: 0; }
94+
to { opacity: 1; }
95+
}
96+
97+
@keyframes zoomIn {
98+
from { transform: scale(0.7); opacity: 0; }
99+
to { transform: scale(1); opacity: 1; }
100+
}
101+
102+
</style>

.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { h } from 'vue'
22
import type { Theme } from 'vitepress'
33
import DefaultTheme from 'vitepress/theme'
44
import VersionSwitcher from '@theme/components/VersionSwitcher.vue'
5+
import ImagePopup from './components/ImagePopup.vue'
56
import '@theme/styles/index.css'
67
import '@theme/styles/custom.css'
78

@@ -12,5 +13,6 @@ export default {
1213
},
1314
enhanceApp({ app }) {
1415
app.component('VersionSwitcher', VersionSwitcher)
16+
app.component('ImagePopup', ImagePopup)
1517
}
1618
} satisfies Theme

src/master/contact/configurations.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This guide explains the key configurations available in the Contacts plugin and
1212

1313
1. Navigate to **`Contacts → Configurations → Tags → New Tag`** as shown in the below image.
1414

15-
![Config Contact](/images1/contacts/navigate_config_tags.png)
15+
<ImagePopup src="/images1/contacts/navigate_config_tags.png" alt="Config Contact" />
1616

1717
2. A modal form appears with the following fields:
1818

@@ -21,7 +21,7 @@ This guide explains the key configurations available in the Contacts plugin and
2121

2222
3. Click **Create** to save the tag.
2323

24-
![Config Contact](/images1/contacts/generate_tag.png)
24+
<ImagePopup src="/images1/contacts/generate_tag.png" alt="Config Contact" />
2525

2626
## Titles Configuration
2727

@@ -31,7 +31,7 @@ This guide explains the key configurations available in the Contacts plugin and
3131

3232
1. Navigate to **`Contacts → Configurations → Titles → New Title`** as shown in the below image.
3333

34-
![Config Contact](/images1/contacts/navigate_config_titles.png)
34+
<ImagePopup src="/images1/contacts/navigate_config_titles.png" alt="Config Contact" />
3535

3636
2. A modal form opens with these fields:
3737

@@ -40,7 +40,7 @@ This guide explains the key configurations available in the Contacts plugin and
4040

4141
3. Click **Create** to add the title to your system.
4242

43-
![Config Contact](/images1/contacts/generate_title.png)
43+
<ImagePopup src="/images1/contacts/generate_title.png" alt="Config Contact" />
4444

4545
## Industry Configuration
4646

@@ -50,7 +50,7 @@ This guide explains the key configurations available in the Contacts plugin and
5050

5151
1. Navigate to **`Contacts → Configurations → Industry → New Industry`** as shown in the below image.
5252

53-
![Config Contact](/images1/contacts/navigate_config_industry.png)
53+
<ImagePopup src="/images1/contacts/navigate_config_industry.png" alt="Config Contact" />
5454

5555
2. A modal form appears with:
5656

@@ -59,7 +59,7 @@ This guide explains the key configurations available in the Contacts plugin and
5959

6060
3. Click **Create** to save.
6161

62-
![Config Contact](/images1/contacts/generate_industry.png)
62+
<ImagePopup src="/images1/contacts/generate_industry.png" alt="Config Contact" />
6363

6464
## Banks Configuration
6565

@@ -69,7 +69,7 @@ This guide explains the key configurations available in the Contacts plugin and
6969

7070
1. Navigate to **`Contacts → Configurations → Banks → New Bank`** as shown in the below image.
7171

72-
![Config Contact](/images1/contacts/navigate_config_banks.png)
72+
<ImagePopup src="/images1/contacts/navigate_config_banks.png" alt="Config Contact" />
7373

7474
2. A form with the following sections appears:
7575

@@ -90,7 +90,7 @@ This guide explains the key configurations available in the Contacts plugin and
9090

9191
3. Click **Create** to add the bank.
9292

93-
![Config Contact](/images1/contacts/generate_bank.png)
93+
<ImagePopup src="/images1/contacts/generate_bank.png" alt="Config Contact" />
9494

9595
## Bank Accounts Configuration
9696

@@ -100,7 +100,7 @@ This guide explains the key configurations available in the Contacts plugin and
100100

101101
1. Navigate to **`Contacts → Configurations → Bank Accounts → New Bank Account`** as shown in the below image.
102102

103-
![Config Contact](/images1/contacts/navigate_config_bank_accounts.png)
103+
<ImagePopup src="/images1/contacts/navigate_config_bank_accounts.png" alt="Config Contact" />
104104

105105
2. A modal form appears with these fields:
106106

@@ -111,7 +111,7 @@ This guide explains the key configurations available in the Contacts plugin and
111111

112112
3. Click **Create** to save the new bank account.
113113

114-
![Config Contact](/images1/contacts/generate_bank_account.png)
114+
<ImagePopup src="/images1/contacts/generate_bank_account.png" alt="Config Contact" />
115115

116116
## Summary
117117

src/master/contact/contacts.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The **Contacts** plugin in **AureusERP** helps you manage all types of business
88

99
1. Navigate to **`Contacts → Contacts → Create Contact`** as shown in the below image.
1010

11-
![Create Contact](/images1/contacts/navigate_create_contact.png)
11+
<ImagePopup src="/images1/contacts/navigate_create_contact.png" alt="Create Contact" />
1212

1313
2. Fill out the form with the following details:
1414

@@ -27,7 +27,7 @@ The **Contacts** plugin in **AureusERP** helps you manage all types of business
2727
- **_Tags:_** Labels or categories to organize contacts better.
2828
- **_Address:_** Fill in full address details including street, city, zip code, state, and country.
2929

30-
![General Contact](/images1/contacts/general_contact.png)
30+
<ImagePopup src="/images1/contacts/general_contact.png" alt="General Contact" />
3131

3232
### Sales and Purchase Section
3333

@@ -41,7 +41,7 @@ The **Contacts** plugin in **AureusERP** helps you manage all types of business
4141
- **_Reference:_** Optional code for cross-referencing.
4242
- **_Industry:_** Select the business sector this contact belongs to.
4343

44-
![General Contact](/images1/contacts/others_contact.png)
44+
<ImagePopup src="/images1/contacts/others_contact.png" alt="General Contact" />
4545

4646
3. Action Buttons:
4747

@@ -53,7 +53,7 @@ The **Contacts** plugin in **AureusERP** helps you manage all types of business
5353

5454
Click **Create** to save the contact. You'll be redirected to the **View Partner** page.
5555

56-
![View Contact](/images1/contacts/view_contact.png)
56+
<ImagePopup src="/images1/contacts/view_contact.png" alt="View Contact" />
5757

5858
### Edit Partner
5959

@@ -70,7 +70,7 @@ This allows you to:
7070
- Add multiple representatives or staff members for a business contact.
7171
- Store different contact roles (salesperson, support, billing, etc.).
7272

73-
![Manage Contacts](/images1/contacts/manage_contacts.png)
73+
<ImagePopup src="/images1/contacts/manage_contacts.png" alt="Manage Contacts" />
7474

7575
> 📌 **Use Case:** Useful for organizations that need to store multiple points of contact under one company.
7676
@@ -84,7 +84,7 @@ This allows you to:
8484
- **_Types:_** Choose the address type—Permanent, Present, Invoice, Delivery, or Other.
8585
- **_Fields:_** Fill in details like name, email, phone, mobile, and complete address.
8686

87-
![Manage Address](/images1/contacts/address_tab.png)
87+
<ImagePopup src="/images1/contacts/address_tab.png" alt="Manage Address" />
8888

8989
This structure ensures that all address-related information is properly categorized and easily accessible.
9090

0 commit comments

Comments
 (0)