1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 02:19:34 +05:30

(feat): added embeded share feature

This commit is contained in:
2023-11-27 20:25:17 +05:30
parent b6c09cf319
commit d43e96bd4d
2 changed files with 39 additions and 71 deletions

View File

@@ -100,7 +100,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="sharewindow" class="sharewindow w-[90vw] md:w-[50vw] mx-auto h-[45vh] md:h-[60vh] py-6 fixed inset-x-0 top-[20vh] z-40 justify-between items-center bg-bg_secondary rounded-xl hidden"> <div id="sharewindow" class="sharewindow w-[90vw] md:w-[50vw] mx-auto py-6 fixed inset-x-0 top-[20vh] z-40 justify-between items-center bg-bg_secondary rounded-xl hidden">
<div class="shareviaqr w-fit h-full flex flex-col items-center py-3 px-7"> <div class="shareviaqr w-fit h-full flex flex-col items-center py-3 px-7">
<p class="self-start text-xl">Scan to Share</p> <p class="self-start text-xl">Scan to Share</p>
<div class="bg-bg_primary p-5 rounded-lg my-3"> <div class="bg-bg_primary p-5 rounded-lg my-3">
@@ -123,6 +123,10 @@
<botton class="shareitems w-10 h-10 flex justify-center items-center bg-bg_secondary rounded-full cursor-pointer hover:bg-bg_third transition transform duration-500" title="Tweet on twitter" onclick="window.open('https://twitter.com/intent/tweet?text=' + 'Check-out%20this%20awesome%20website:%0A' + '&url=' + encodeURIComponent(window.location.href))"><i class="fa-brands fa-x-twitter text-accent_primary"></i></botton> <botton class="shareitems w-10 h-10 flex justify-center items-center bg-bg_secondary rounded-full cursor-pointer hover:bg-bg_third transition transform duration-500" title="Tweet on twitter" onclick="window.open('https://twitter.com/intent/tweet?text=' + 'Check-out%20this%20awesome%20website:%0A' + '&url=' + encodeURIComponent(window.location.href))"><i class="fa-brands fa-x-twitter text-accent_primary"></i></botton>
<botton class="shareitems w-10 h-10 flex justify-center items-center bg-bg_secondary rounded-full cursor-pointer hover:bg-bg_third transition transform duration-500" title="More sharing options" onclick="call_webshare_api()"><i class="fa-solid fa-ellipsis text-accent_primary"></i></botton> <botton class="shareitems w-10 h-10 flex justify-center items-center bg-bg_secondary rounded-full cursor-pointer hover:bg-bg_third transition transform duration-500" title="More sharing options" onclick="call_webshare_api()"><i class="fa-solid fa-ellipsis text-accent_primary"></i></botton>
</div> </div>
<!-- <p class="text-xs my-3">EMBED THIS PAGE</p> -->
<div class="embedpagecode w-full bg-bg_primary p-4 rounded-lg">
<pre class="text-accent_four text-xs whitespace-pre-wrap"><code>&lt;iframe&#13;&#10;src="https://localhost/neosubhamoy/htdocs/projects"&#13;&#10;height="200"&#13;&#10;width="300"&#13;&#10;title="test iframe"&gt;&lt;/iframe&gt;</code></pre>
</div>
</div> </div>
</div> </div>
<div id="floating-bar" class="fixed inset-x-0 bottom-[7vh] z-[50] flex justify-center items-center"> <div id="floating-bar" class="fixed inset-x-0 bottom-[7vh] z-[50] flex justify-center items-center">

View File

@@ -854,6 +854,10 @@ video {
margin-top: 30vh; margin-top: 30vh;
} }
.inline-block {
display: inline-block;
}
.flex { .flex {
display: flex; display: flex;
} }
@@ -870,6 +874,10 @@ video {
display: none; display: none;
} }
.h-10 {
height: 2.5rem;
}
.h-20 { .h-20 {
height: 5rem; height: 5rem;
} }
@@ -930,30 +938,26 @@ video {
height: 100vh; height: 100vh;
} }
.h-\[20px\] { .h-\[80\%\] {
height: 20px; height: 80%;
} }
.h-5 { .h-\[90\%\] {
height: 1.25rem; height: 90%;
} }
.h-14 { .h-\[70\%\] {
height: 3.5rem; height: 70%;
}
.h-12 {
height: 3rem;
}
.h-10 {
height: 2.5rem;
} }
.w-0 { .w-0 {
width: 0px; width: 0px;
} }
.w-10 {
width: 2.5rem;
}
.w-2 { .w-2 {
width: 0.5rem; width: 0.5rem;
} }
@@ -1035,34 +1039,6 @@ video {
width: 100vw; width: 100vw;
} }
.w-\[20px\] {
width: 20px;
}
.w-5 {
width: 1.25rem;
}
.w-14 {
width: 3.5rem;
}
.w-12 {
width: 3rem;
}
.w-10 {
width: 2.5rem;
}
.w-20 {
width: 5rem;
}
.w-24 {
width: 6rem;
}
.rotate-\[15deg\] { .rotate-\[15deg\] {
--tw-rotate: 15deg; --tw-rotate: 15deg;
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)); 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));
@@ -1086,14 +1062,6 @@ video {
cursor: pointer; cursor: pointer;
} }
.grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid-cols-3 { .grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
} }
@@ -1138,15 +1106,15 @@ video {
justify-items: center; justify-items: center;
} }
.gap-y-3 {
row-gap: 0.75rem;
}
.gap-x-3 { .gap-x-3 {
-moz-column-gap: 0.75rem; -moz-column-gap: 0.75rem;
column-gap: 0.75rem; column-gap: 0.75rem;
} }
.gap-y-3 {
row-gap: 0.75rem;
}
.self-start { .self-start {
align-self: flex-start; align-self: flex-start;
} }
@@ -1163,6 +1131,14 @@ video {
white-space: nowrap; white-space: nowrap;
} }
.whitespace-pre-wrap {
white-space: pre-wrap;
}
.break-words {
overflow-wrap: break-word;
}
.rounded { .rounded {
border-radius: 0.25rem; border-radius: 0.25rem;
} }
@@ -1311,6 +1287,10 @@ video {
padding: 0.75rem; padding: 0.75rem;
} }
.p-4 {
padding: 1rem;
}
.p-5 { .p-5 {
padding: 1.25rem; padding: 1.25rem;
} }
@@ -1319,10 +1299,6 @@ video {
padding: 0.30rem; padding: 0.30rem;
} }
.p-4 {
padding: 1rem;
}
.px-2 { .px-2 {
padding-left: 0.5rem; padding-left: 0.5rem;
padding-right: 0.5rem; padding-right: 0.5rem;
@@ -1737,10 +1713,6 @@ video {
.md\:w-\[50vw\] { .md\:w-\[50vw\] {
width: 50vw; width: 50vw;
} }
.md\:grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
@@ -1923,10 +1895,6 @@ video {
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)); 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));
} }
.lg\:grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lg\:grid-cols-4 { .lg\:grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-columns: repeat(4, minmax(0, 1fr));
} }
@@ -2011,10 +1979,6 @@ video {
.xl\:grid-cols-6 { .xl\:grid-cols-6 {
grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-columns: repeat(6, minmax(0, 1fr));
} }
.xl\:grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
} }
@media (min-width: 1536px) { @media (min-width: 1536px) {