Skip to content

Commit e8d9536

Browse files
authored
Merge pull request #61 from PelleNybe/fix/spacing-11327475747864157782
fix: reduce empty space between modules
2 parents 2c2d7c8 + 5fbe2b9 commit e8d9536

7 files changed

Lines changed: 31 additions & 14 deletions

File tree

.jules/masterjournal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
- Updated index.html from a company/product landing page to Pelle Nyberg's personal Developer Portfolio.
33
- Updated e2e tests to pass with the new page title.
44
- Improved Frontend Performance and Accessibility (added requestAnimationFrame, event delegation, aria attributes, skip to content links, proper alt texts).
5+
- Fixed excessively long empty spaces between modules by removing explicit hardcoded inline padding and margin on section tags in index.html, and adjusted the global section padding in styles.css.

app.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,6 +2733,22 @@ class GitHubActivityFeed {
27332733

27342734
// Feature: Web3 Integration Demo
27352735
class Web3Demo {
2736+
async doCheckConnection() {
2737+
try {
2738+
const accounts = await window.ethereum.request({ method: 'eth_accounts' });
2739+
if (accounts.length > 0) {
2740+
this.account = accounts[0];
2741+
this.statusText.textContent = `Connected: ${this.account.substring(0, 6)}...${this.account.substring(38)}`;
2742+
this.statusText.style.color = 'var(--success-color)';
2743+
this.connectBtn.style.display = 'none';
2744+
this.actionsDiv.style.display = 'flex';
2745+
} else {
2746+
localStorage.removeItem('corax_web3_account');
2747+
}
2748+
} catch (e) {
2749+
console.error("Silent reconnect failed", e);
2750+
}
2751+
}
27362752
async doCheckConnection() {
27372753
try {
27382754
const accounts = await window.ethereum.request({ method: 'eth_accounts' });

dist/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h1 class="glitch" data-text="Pelle Nyberg">Pelle Nyberg</h1>
158158

159159

160160
<!-- Featured Project Section -->
161-
<section id="featured-project" style="padding-top: 4rem; padding-bottom: 2rem;">
161+
<section id="featured-project">
162162
<div class="featured-project-container">
163163

164164
<div class="header-section">
@@ -290,7 +290,7 @@ <h3 style="color: var(--primary-color); border-bottom: 1px solid rgba(0,255,194,
290290
</style>
291291

292292

293-
<div class="grid-2" style="margin-top: 3rem;">
293+
<div class="grid-2">
294294
<div class="feature-card product-card tilt-card">
295295
<h3>GAP Platform (The Brain)</h3>
296296
<p>The industrial analysis and control center, developed to handle the most complex business logic and real-time data streams. A hybrid cloud/edge platform orchestrating fleets of robots.</p>
@@ -519,7 +519,7 @@ <h2 class="section-title">Open Source & Developer Tools</h2>
519519
<div id="error-message" class="error-message" style="display: none"></div>
520520
</section>
521521

522-
<section id="gallery" style="margin-top: 4rem; text-align: center;">
522+
<section id="gallery" style="text-align: center;">
523523
<h3 style="color: var(--text-secondary); margin-bottom: 2rem;">Platform Dashboard Previews</h3>
524524
<div class="projects-grid" style="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;">
525525
<div class="project-card"><img src="images/1773184753736.png" style="width: 100%; border-radius: var(--border-radius-small);" alt="Dashboard UI component demonstrating real-time data visualization" loading="lazy"></div>
@@ -536,7 +536,7 @@ <h3 style="color: var(--text-secondary); margin-bottom: 2rem;">Platform Dashboar
536536
<!-- About/Commitment Section -->
537537
<section id="domain-expertise">
538538
<h2 class="section-title">Domain Expertise: Biology Meets Tech</h2>
539-
<div class="grid-2" style="margin-top: 3rem; margin-bottom: 3rem;">
539+
<div class="grid-2">
540540
<div>
541541
<img src="images/gap_digital_bridge_between_old_industry_and_future_iot.png" alt="Digital Bridge" style="width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-soft);" loading="lazy">
542542
</div>
@@ -671,7 +671,7 @@ <h3 style="margin-bottom: 1rem; color: var(--text-primary);">Interactive Signatu
671671
</div>
672672

673673
<!-- Live GitHub Activity Feed Section -->
674-
<section id="activity" style="margin-top: 4rem">
674+
<section id="activity">
675675
<h3
676676
style="
677677
text-align: center;
@@ -697,7 +697,7 @@ <h3 style="margin-bottom: 1rem; color: var(--text-primary);">Interactive Signatu
697697

698698

699699
<!-- Global Network Section -->
700-
<section id="network" style="margin-top: 6rem; position: relative;">
700+
<section id="network" style="position: relative;">
701701
<h2 class="section-title">Global Decentralized Network</h2>
702702
<p class="section-subtitle">Real-time visualization of active edge nodes, validators, and data relays across the globe.</p>
703703

@@ -714,15 +714,15 @@ <h2 class="section-title">Global Decentralized Network</h2>
714714

715715

716716
<!-- System Telemetry Dashboard -->
717-
<section id="telemetry-dash" style="margin-top: 6rem; max-width: 800px; margin-left: auto; margin-right: auto;">
717+
<section id="telemetry-dash" style="max-width: 800px; margin-left: auto; margin-right: auto;">
718718
<h3 style="text-align: center; color: var(--text-secondary); margin-bottom: 2rem;">Live Swarm Telemetry</h3>
719719
<div style="background: var(--card-bg); padding: 2rem; border-radius: var(--border-radius); border: 1px solid rgba(0,255,194,0.2); box-shadow: var(--shadow-soft);">
720720
<canvas id="telemetryChart" height="100"></canvas>
721721
</div>
722722
</section>
723723

724724
<!-- Interactive Architecture Diagram -->
725-
<section id="architecture" style="margin-top: 4rem">
725+
<section id="architecture">
726726
<h3
727727
style="
728728
text-align: center;

styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ nav.scrolled {
426426
display: flex;
427427
flex-direction: column;
428428
align-items: center;
429-
margin-top: 150px; /* Extra 30px (~1cm) to push content further down */
429+
margin-top: 120px; /* Push content down */
430430
}
431431

432432
.hero-logo {
@@ -545,7 +545,7 @@ nav.scrolled {
545545

546546
/* Sections */
547547
section {
548-
padding: var(--spacing-xl) 0;
548+
padding: var(--spacing-lg) 0;
549549
max-width: var(--max-width);
550550
margin: 0 auto;
551551
padding-left: var(--spacing-md);
@@ -943,7 +943,7 @@ footer {
943943
text-align: center;
944944
padding: var(--spacing-lg) var(--spacing-md);
945945
border-top: 1px solid rgba(0, 255, 204, 0.2);
946-
margin-top: var(--spacing-xl);
946+
margin-top: var(--spacing-lg);
947947
position: relative;
948948
}
949949

0 commit comments

Comments
 (0)