Skip to content

Commit 6248e8a

Browse files
committed
COA
1 parent 4dbf3ae commit 6248e8a

10 files changed

Lines changed: 63 additions & 5 deletions

File tree

PAL/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
content="The memory address you are trying to access is not allocated. Invalid register access. Please reset your program counter.">
2626
<meta name="robots" content="noindex, follow">
2727
<meta name="theme-color" content="#2563eb">
28-
<link rel="icon" type="image/svg+xml"
29-
href="/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-AND-PROCESSOR-ARCHITECTURE-LAB/assets/icon.svg">
28+
<link rel="icon" type="image/png" href="assets/icon-192.png">
29+
<link rel="apple-touch-icon" href="assets/icon-192.png">
3030

3131
<!-- Fonts -->
3232
<link

PAL/assets/icon-192.png

395 KB
Loading

PAL/assets/icon-512.png

395 KB
Loading

PAL/assets/og-image.png

649 KB
Loading

PAL/assets/screenshot-narrow.png

509 KB
Loading

PAL/assets/screenshot-wide.png

626 KB
Loading

PAL/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
content="https://amey-thakur.github.io/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-AND-PROCESSOR-ARCHITECTURE-LAB/PAL/">
2828
<meta property="og:site_name" content="COA/PAL Lab Portfolio">
2929
<meta property="og:locale" content="en_US">
30+
<meta property="og:image"
31+
content="https://amey-thakur.github.io/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-AND-PROCESSOR-ARCHITECTURE-LAB/PAL/assets/og-image.png">
32+
<meta property="og:image:width" content="1200">
33+
<meta property="og:image:height" content="630">
3034

3135
<!-- Twitter Card Meta Tags -->
3236
<meta name="twitter:card" content="summary_large_image">
@@ -35,6 +39,8 @@
3539
content="Scholarly portfolio for Computer Organization and Architecture (COA) and Processor Architecture Lab (PAL).">
3640
<meta name="twitter:url"
3741
content="https://amey-thakur.github.io/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-AND-PROCESSOR-ARCHITECTURE-LAB/PAL/">
42+
<meta name="twitter:image"
43+
content="https://amey-thakur.github.io/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-AND-PROCESSOR-ARCHITECTURE-LAB/PAL/assets/og-image.png">
3844

3945
<!-- Structured Data for SEO -->
4046
<script type="application/ld+json">
@@ -53,7 +59,7 @@
5359
</script>
5460

5561
<!-- Favicon -->
56-
<link rel="icon" type="image/svg+xml" href="assets/icon.svg">
62+
<link rel="icon" type="image/png" href="assets/icon-192.png">
5763
<link rel="apple-touch-icon" href="assets/icon-192.png">
5864

5965
<!-- PWA Manifest -->

PAL/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "COA/PAL Lab Portfolio",
33
"short_name": "PAL Lab",
4-
"description": "Interactive portfolio for Computer Organization and Architecture & Processor Architecture Lab by Amey Thakur.",
4+
"description": "Interactive portfolio for Computer Organization and Architecture & Processor Architecture Lab by Amey Thakur & Mega Satish.",
55
"start_url": "./index.html",
66
"display": "standalone",
77
"background_color": "#0f172a",

PAL/script.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,38 @@ document.addEventListener('DOMContentLoaded', () => {
159159
initCommandPalette();
160160
initBoothsVisualizer();
161161

162+
const shareBtn = document.getElementById('share-btn');
163+
if (shareBtn) {
164+
shareBtn.addEventListener('click', async () => {
165+
const shareData = {
166+
title: 'COA/PAL Lab Portfolio — Amey & Mega',
167+
text: 'Explore the Computer Organization and Architecture & Processor Architecture Lab Portfolio by Amey Thakur & Mega Satish. Featuring Booth\'s Algorithm Visualizer and advanced digital logic designs!',
168+
url: window.location.href
169+
};
170+
171+
try {
172+
if (navigator.share) {
173+
await navigator.share(shareData);
174+
} else {
175+
throw new Error('Web Share API not supported');
176+
}
177+
} catch (err) {
178+
// Fallback: Copy to clipboard
179+
const textArea = document.createElement("textarea");
180+
textArea.value = window.location.href;
181+
document.body.appendChild(textArea);
182+
textArea.select();
183+
try {
184+
document.execCommand('copy');
185+
alert('Portfolio link copied to clipboard!');
186+
} catch (err) {
187+
console.error('Copy failed', err);
188+
}
189+
document.body.removeChild(textArea);
190+
}
191+
});
192+
}
193+
162194
const kbdHint = document.getElementById('kbd-hint');
163195
if (kbdHint) setTimeout(() => kbdHint.classList.add('hidden'), 8000);
164196
});
@@ -376,7 +408,14 @@ function initBoothsVisualizer() {
376408
line.className = `terminal-line ${type}`;
377409
line.innerHTML = text; // Allow HTML for colors
378410
outputDiv.appendChild(line);
379-
outputDiv.scrollTop = outputDiv.scrollHeight;
411+
412+
// Ensure smooth scroll to bottom for mobile/desktop
413+
requestAnimationFrame(() => {
414+
outputDiv.scrollTo({
415+
top: outputDiv.scrollHeight,
416+
behavior: 'smooth'
417+
});
418+
});
380419
}
381420

382421
visualizeBtn.addEventListener('click', async () => {

PAL/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,19 @@ section {
11241124
.logic-visualizer-card .row {
11251125
flex-direction: column;
11261126
}
1127+
1128+
.visualizer-info {
1129+
padding-right: 0;
1130+
text-align: center;
1131+
}
1132+
1133+
.visualizer-info .icon-wrapper {
1134+
margin: 0 auto 16px;
1135+
}
1136+
1137+
.terminal-frame {
1138+
height: 320px;
1139+
}
11271140
}
11281141

11291142
@media (max-width: 576px) {

0 commit comments

Comments
 (0)