Remove public lab exposure and hero status copy
This commit is contained in:
@@ -10,5 +10,4 @@
|
||||
<path d="M24 26H40V32H30V36H39" fill="none" stroke="url(#gg)" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M43 26H49C54 26 56 28 56 32C56 36 54 38 49 38H43V26Z" fill="none" stroke="#8dff5a" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<text x="72" y="33" fill="#f4f8ff" font-size="15" font-family="Source Sans 3, Segoe UI, sans-serif" font-weight="700" letter-spacing="1.8">ELECTRON RARE</text>
|
||||
<text x="72" y="50" fill="#9fb3d3" font-size="10" font-family="Source Sans 3, Segoe UI, sans-serif" letter-spacing="1.6">UNSTABLE BY DESIGN</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 949 B |
+10
-4
@@ -7,9 +7,15 @@
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://electron-rare.github.io/lab/</loc>
|
||||
<lastmod>2026-03-02</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
<loc>https://electron-rare.github.io/formation/</loc>
|
||||
<lastmod>2026-03-14</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://electron-rare.github.io/mentions-legales/</loc>
|
||||
<lastmod>2026-03-14</lastmod>
|
||||
<changefreq>yearly</changefreq>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
|
||||
@@ -23,22 +23,10 @@ const run = (command) => {
|
||||
|
||||
console.log(`[build-astro-external] Using PUBLIC_SITE_URL=${process.env.PUBLIC_SITE_URL}`);
|
||||
|
||||
run('npm run lab:build');
|
||||
run('npm run build');
|
||||
|
||||
const labSource = path.resolve(process.cwd(), 'lab');
|
||||
const labDestination = path.resolve(process.cwd(), 'dist', 'lab');
|
||||
|
||||
if (fs.existsSync(labSource)) {
|
||||
fs.rmSync(labDestination, { recursive: true, force: true });
|
||||
fs.cpSync(labSource, labDestination, { recursive: true });
|
||||
console.log('[build-astro-external] Included lab/ output in dist/lab.');
|
||||
} else {
|
||||
console.warn('[build-astro-external] Warning: lab/ not found; skipping lab route packaging.');
|
||||
}
|
||||
|
||||
const robotsContent = `User-agent: *\nAllow: /\n\nSitemap: ${siteUrl}sitemap.xml\n`;
|
||||
const sitemapContent = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url>\n <loc>${siteUrl}</loc>\n <changefreq>weekly</changefreq>\n <priority>1.0</priority>\n </url>\n <url>\n <loc>${siteUrl}lab/</loc>\n <changefreq>weekly</changefreq>\n <priority>0.8</priority>\n </url>\n</urlset>\n`;
|
||||
const sitemapContent = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url>\n <loc>${siteUrl}</loc>\n <changefreq>weekly</changefreq>\n <priority>1.0</priority>\n </url>\n <url>\n <loc>${siteUrl}formation/</loc>\n <changefreq>monthly</changefreq>\n <priority>0.9</priority>\n </url>\n <url>\n <loc>${siteUrl}mentions-legales/</loc>\n <changefreq>yearly</changefreq>\n <priority>0.3</priority>\n </url>\n</urlset>\n`;
|
||||
|
||||
fs.writeFileSync(path.resolve(process.cwd(), 'dist', 'robots.txt'), robotsContent, 'utf8');
|
||||
fs.writeFileSync(path.resolve(process.cwd(), 'dist', 'sitemap.xml'), sitemapContent, 'utf8');
|
||||
|
||||
@@ -22,10 +22,6 @@ export function Hero() {
|
||||
<article className="figma-lab-left hero-panel-image">
|
||||
<div className="hero-panel-head">
|
||||
<p className="hero-eyebrow hero-eyebrow--image">Design électronique · Consulting · Formation</p>
|
||||
<div className="hero-status-stack" aria-label="Cadre d'intervention">
|
||||
<span className="hero-status-badge">disponible</span>
|
||||
<span className="hero-status-note">freelance · France</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1 id="hero-title" className="figma-lab-title">
|
||||
|
||||
+1
-2
@@ -3,8 +3,7 @@ export const TRACK_EVENTS = {
|
||||
outboundLinkedinContact: 'outbound_linkedin_contact',
|
||||
outboundEmailContact: 'outbound_email_contact',
|
||||
outboundGithubContact: 'outbound_github_contact',
|
||||
outboundGithubProjectAudioBattery: 'outbound_github_project_audio_battery',
|
||||
ctaLabInteractifOpen: 'cta_lab_interactif_open'
|
||||
outboundGithubProjectAudioBattery: 'outbound_github_project_audio_battery'
|
||||
} as const;
|
||||
|
||||
export type TrackEventName = (typeof TRACK_EVENTS)[keyof typeof TRACK_EVENTS];
|
||||
|
||||
@@ -13,7 +13,6 @@ const homeAboutHref = withSiteBase('/#a-propos');
|
||||
const homeMissionsHref = withSiteBase('/#graphic-sprints-title');
|
||||
const formationHref = withSiteBase('/formation/');
|
||||
const contactHref = withSiteBase('/#contact');
|
||||
const labHref = withSiteBase('/lab/');
|
||||
const mentionsHref = withSiteBase('/mentions-legales/');
|
||||
const headerItems = [
|
||||
{ href: homeAboutHref, label: 'Approche' },
|
||||
@@ -255,7 +254,6 @@ const headerItems = [
|
||||
<nav aria-label="Ressources" class="footer-links footer-links--single-rail">
|
||||
<a href={homeHref} class="footer-link">Accueil</a>
|
||||
<a href={formationHref} class="footer-link">Formation</a>
|
||||
<a href={labHref} class="footer-link">Lab</a>
|
||||
<a href="https://fr.linkedin.com/in/electron-rare" target="_blank" rel="noopener noreferrer me" class="footer-link">LinkedIn</a>
|
||||
<a href="mailto:contact@lelectronrare.fr" class="footer-link">contact@lelectronrare.fr</a>
|
||||
<a href="https://github.com/electron-rare/" target="_blank" rel="noopener noreferrer me" class="footer-link">GitHub</a>
|
||||
|
||||
@@ -13,13 +13,11 @@ import { withSiteBase } from '@/lib/site';
|
||||
import { TRACK_EVENTS, trackAttrs } from '@/lib/tracking';
|
||||
|
||||
const formationHref = withSiteBase('/formation/');
|
||||
const labHref = withSiteBase('/lab/');
|
||||
const mentionsHref = withSiteBase('/mentions-legales/');
|
||||
const headerItems = [
|
||||
{ href: '#a-propos', label: 'Approche' },
|
||||
{ href: '#graphic-sprints-title', label: 'Missions' },
|
||||
{ href: formationHref, label: 'Formation' },
|
||||
{ href: labHref, label: 'Lab', attrs: trackAttrs(TRACK_EVENTS.ctaLabInteractifOpen, labHref) },
|
||||
{ href: '#faq', label: 'FAQ' },
|
||||
{ href: '#contact', label: 'Contact', desktopOnly: true }
|
||||
];
|
||||
@@ -106,7 +104,6 @@ const headerItems = [
|
||||
<a href="#a-propos" class="footer-link">Approche</a>
|
||||
<a href="#graphic-sprints-title" class="footer-link">Missions</a>
|
||||
<a href={formationHref} class="footer-link">Formation</a>
|
||||
<a href={labHref} class="footer-link" {...trackAttrs(TRACK_EVENTS.ctaLabInteractifOpen, labHref)}>Lab</a>
|
||||
<a href="#faq" class="footer-link">FAQ</a>
|
||||
<a href="#contact" class="footer-link">Contact</a>
|
||||
<a
|
||||
|
||||
@@ -12,7 +12,6 @@ const homeAboutHref = withSiteBase('/#a-propos');
|
||||
const homeMissionsHref = withSiteBase('/#graphic-sprints-title');
|
||||
const formationHref = withSiteBase('/formation/');
|
||||
const contactHref = withSiteBase('/#contact');
|
||||
const labHref = withSiteBase('/lab/');
|
||||
const mentionsHref = withSiteBase('/mentions-legales/');
|
||||
const headerItems = [
|
||||
{ href: homeAboutHref, label: 'Approche' },
|
||||
@@ -167,7 +166,6 @@ const headerItems = [
|
||||
<nav aria-label="Ressources" class="footer-links footer-links--single-rail">
|
||||
<a href={homeHref} class="footer-link">Accueil</a>
|
||||
<a href={formationHref} class="footer-link">Formation</a>
|
||||
<a href={labHref} class="footer-link">Lab</a>
|
||||
<a href={mentionsHref} class="footer-link" aria-current="page">Mentions légales</a>
|
||||
<a href="https://fr.linkedin.com/in/electron-rare" target="_blank" rel="noopener noreferrer me" class="footer-link">LinkedIn</a>
|
||||
<a href="mailto:contact@lelectronrare.fr" class="footer-link">contact@lelectronrare.fr</a>
|
||||
|
||||
@@ -6,7 +6,6 @@ export const GET: APIRoute = () => {
|
||||
const pages = [
|
||||
{ path: '', priority: '1.0', changefreq: 'weekly' },
|
||||
{ path: 'formation/', priority: '0.9', changefreq: 'monthly' },
|
||||
{ path: 'lab/', priority: '0.8', changefreq: 'weekly' },
|
||||
{ path: 'mentions-legales/', priority: '0.3', changefreq: 'yearly' }
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user