* Refactor GitHub Actions workflows for build, documentation, and linting - Consolidated build logic into reusable workflows (`task-build.yml` and `task-docs.yml`) to reduce duplication across multiple workflows. - Introduced `environments.json` to centralize the list of PlatformIO build environments, improving maintainability and clarity. - Updated `build.yml` and `build_and_docs_to_dev.yml` to utilize the new reusable workflows and environment definitions. - Enhanced `release.yml` to streamline the release process and integrate documentation generation. - Created reusable linting workflow (`task-lint.yml`) to standardize code formatting checks across the repository. - Simplified manual documentation workflow by leveraging the new reusable documentation workflow. - Improved artifact management and retention policies across workflows. - Updated dependencies and versions in workflows to ensure compatibility and performance. CI/CD pipeline agnostic of Workflow Engine and integrated on github actions - Implemented ci.sh for orchestrating the complete build pipeline. - Created ci_00_config.sh for centralized configuration of build scripts. - Created ci_build_firmware.sh for building firmware for specified PlatformIO environments. - Created ci_prepare_artifacts.sh for preparing firmware artifacts for upload or deployment. - Created ci_set_version.sh for updating version tags in firmware configuration files. - Created ci_build.sh to orchestrate the complete build pipeline. - Created ci_qa.sh for code linting and formatting checks using clang-format. - Created ci_site.sh for building and deploying VuePress documentation with version management. - Implemented checks for required tools and dependencies in the new scripts. - Improved internal scripts for better error handling and logging. UPDATE the web installer manifest generation and update documentation structure - Enhanced ci_list-env.sh to list environments from a JSON file. - Replaced common_wu.py and gen_wu.py scripts with new npm scripts for site generation and previewing on docsgen/gen_wu.js - Replaced generate_board_docs.py with docsgen/generated_board_docs.js - Added new npm scripts for integration of site generation on build phase. - Created preview_site.js to serve locally generated site over HTTPS with improved error handling. - Added new CI environments for CI builds in environments.json. - Deleted lint.yml as part of workflow cleanup. - Enhanced task-build.yml to include linting as a job and added support for specifying PlatformIO version. - Improved task-docs.yml to handle versioning more effectively and added clean option. Enhance documentation - ADD CLEAR Mark of development version of site - Updated README.md to include detailed workflow dependencies and relationships using mermaid diagrams. - Improved development.md with a quick checklist for contributors and clarified the code style guide. - Enhanced quick_start.md with tips for contributors and streamlined the workflow explanation. LINT FIX - Refined User_config.h for better formatting consistency. - Adjusted blufi.cpp and gatewayBT.cpp for improved code readability and consistency in formatting. - Updated gatewaySERIAL.cpp and mqttDiscovery.cpp to enhance logging error messages. - Improved sensorDS1820.cpp for better logging of device information. Add security scan workflows for vulnerability detection Add SBOM generation and upload to release workflow; update security scan summary handling Add shellcheck suppor + FIX shellcheck warning Enhance documentation for CI/CD scripts and workflows, adding details for security scanning and SBOM generation processes Fix formatting and alignment in BLE connection handling Reviewed the full web board presentation and the ESP32 web upload. The project uses a modern pattern where data is divided from the presentation layer. - Removed the `generate_board_docs` script. - Updated the `gen_wu` script in order to generate `boards-info.json`: the fail that containe all information about the configuration - Created and isolate the file `boards-info.js` to streamline the parsing of PlatformIO dependencies, modules, environments and improve the handling of library information. - Introduced vuepress component `BoardEnvironmentTable.vue` that render `boards-info.json` as UI card component - Introduced vuepress component `FlashEnvironmentSelector.vue` that render a selectred environment from `boards-info.json` and provide esp-web-upload feature on it - Introduced a new board page `board-selector.md` for improved firmware selection. - Updated `web-install.md` to enhance the firmware upload process, including a new board environment table. - Enhanced custom descriptions in `environments.ini` to include HTML links for better user guidance and board image link Add CC1101 initialization improvements and logging enhancements Add installation step for PlatformIO dependencies in documentation workflow Remove ci_set_version.sh script and associated versioning functionality * Fix comment provisined Fix PlatformIO version input reference in documentation workflow Remove outdated Squeezelite-ESP32 installer documentation
687 lines
18 KiB
Vue
687 lines
18 KiB
Vue
<template>
|
|
<div class="flash-selector">
|
|
<!-- Loading State -->
|
|
<div v-if="loading" class="custom-block tip">
|
|
<p class="custom-block-title">
|
|
<span class="loading-spinner"></span>
|
|
Loading environments...
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Error State -->
|
|
<div v-if="error" class="custom-block danger">
|
|
<p class="custom-block-title">Error</p>
|
|
<p>{{ error }}</p>
|
|
</div>
|
|
|
|
<!-- Board Details (when selected) -->
|
|
<transition name="fade">
|
|
<div v-if="currentEnvironment && !loading" class="board-details">
|
|
|
|
<!-- Hero Section - Clean and Focused -->
|
|
<div class="board-hero">
|
|
<div class="board-hero__content">
|
|
<!-- Inline Board Switcher -->
|
|
<h2>
|
|
<div class="board-switcher">
|
|
<label for="envSelect" class="switcher-label">Environment:</label>
|
|
<div class="switcher-select-wrapper">
|
|
<select
|
|
id="envSelect"
|
|
v-model="selectedEnvironment"
|
|
class="switcher-select">
|
|
<option
|
|
v-for="env in environments"
|
|
:key="env.environment"
|
|
:value="env.environment">
|
|
{{ env.environment }}
|
|
</option>
|
|
</select>
|
|
<span class="switcher-icon">⚙️</span>
|
|
</div>
|
|
</div>
|
|
</h2>
|
|
|
|
<div v-if="currentEnvironment.microcontroller" class="board-hero__meta">
|
|
<span class="meta-label">MCU:</span>
|
|
<span class="meta-value">{{ currentEnvironment.microcontroller }}</span>
|
|
</div>
|
|
|
|
<p v-if="currentEnvironment.description" class="board-hero__description">
|
|
<span class="meta-label">Description:</span> <span v-html="currentEnvironment.description"></span>
|
|
</p>
|
|
|
|
<!-- Primary Action -->
|
|
<div class="hero-action">
|
|
<esp-web-install-button
|
|
v-if="manifestUrl"
|
|
:manifest="manifestUrl"
|
|
aria-label="Flash firmware to device">
|
|
</esp-web-install-button>
|
|
<button v-else class="connect-button connect-button--disabled" disabled>
|
|
CONNECT
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Image Optional -->
|
|
<div v-if="boardImageUrl && !imageError" class="board-hero__image">
|
|
<img
|
|
:src="boardImageUrl"
|
|
:alt="currentEnvironment.environment"
|
|
loading="lazy"
|
|
@error="handleImageError">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Technical Details - Collapsible -->
|
|
<details class="tech-details" open>
|
|
<summary class="tech-details__summary">
|
|
<span class="tech-details__icon">📋</span>
|
|
<span class="tech-details__title">Technical Information</span>
|
|
<span class="tech-details__toggle">▼</span>
|
|
</summary>
|
|
|
|
<div class="tech-details__content">
|
|
<div class="tech-grid">
|
|
|
|
<!-- Libraries -->
|
|
<div v-if="currentEnvironment.libraries && currentEnvironment.libraries.length" class="tech-section">
|
|
<h4 class="tech-section__title">Libraries</h4>
|
|
<div class="tech-section__content">
|
|
<div class="chip-group">
|
|
<span v-for="(lib, index) in currentEnvironment.libraries" :key="index" class="chip">
|
|
{{ lib }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Gateway Modules -->
|
|
<div v-if="currentEnvironment.modules && currentEnvironment.modules.length" class="tech-section">
|
|
<h4 class="tech-section__title">Gateway Modules</h4>
|
|
<div class="tech-section__content">
|
|
<div class="chip-group">
|
|
<span v-for="(mod, index) in currentEnvironment.modules" :key="index" class="chip">
|
|
{{ mod }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Hardware -->
|
|
<div v-if="currentEnvironment.hardware" class="tech-section">
|
|
<h4 class="tech-section__title">Hardware</h4>
|
|
<div class="tech-section__content" >
|
|
<span class="chip" v-html="currentEnvironment.hardware"></span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Partitions -->
|
|
<div v-if="currentEnvironment.partitions" class="tech-section">
|
|
<h4 class="tech-section__title">Partitions</h4>
|
|
<div class="tech-section__content">
|
|
<code class="code-inline">{{ currentEnvironment.partitions }}</code>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Build Options -->
|
|
<div v-if="currentEnvironment.options" class="tech-section tech-section--full">
|
|
<h4 class="tech-section__title">Build Options</h4>
|
|
<div class="tech-section__content">
|
|
<pre class="code-block">{{ formatOptions(currentEnvironment.options) }}</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
|
|
</transition>
|
|
<!-- Borad Detail not selected message -->
|
|
<transition name="fade">
|
|
<div v-if="!currentEnvironment && !loading && !error" class="custom-block info">
|
|
<p class="custom-block-title">Need to select one environment...</p>
|
|
</div>
|
|
</transition>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'FlashEnvironmentSelector',
|
|
props: {
|
|
boardsUrl: {
|
|
type: String,
|
|
default: '/boards-info.json'
|
|
},
|
|
firmwareBaseUrl: {
|
|
type: String,
|
|
default: '/firmware_build/'
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
environments: [],
|
|
selectedEnvironment: '',
|
|
loading: true,
|
|
error: null,
|
|
imageError: false
|
|
};
|
|
},
|
|
computed: {
|
|
currentEnvironment() {
|
|
return this.environments.find(env => env.environment === this.selectedEnvironment);
|
|
},
|
|
resolvedBoardsUrl() {
|
|
return this.buildUrl(this.boardsUrl);
|
|
},
|
|
resolvedFirmwareBaseUrl() {
|
|
return this.buildUrl(this.firmwareBaseUrl);
|
|
},
|
|
manifestUrl() {
|
|
if (!this.selectedEnvironment) return null;
|
|
return `${this.resolvedFirmwareBaseUrl}${this.selectedEnvironment}.manifest.json`;
|
|
},
|
|
boardImageUrl() {
|
|
if (!this.currentEnvironment) return null;
|
|
const customImg = this.currentEnvironment.customImg || this.currentEnvironment.CustomImg;
|
|
if (customImg && !this.imageError) {
|
|
// If it's an absolute URL, use it as-is
|
|
if (customImg.startsWith('http')) {
|
|
return customImg;
|
|
}
|
|
// Otherwise, build the URL with site base
|
|
return this.buildUrl(customImg);
|
|
}
|
|
return this.buildUrl('/img/microcontroller.gif');
|
|
}
|
|
},
|
|
watch: {
|
|
selectedEnvironment(newValue) {
|
|
this.imageError = false;
|
|
this.error = null;
|
|
}
|
|
},
|
|
mounted() {
|
|
const script = document.createElement('script');
|
|
script.type="module";
|
|
script.src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module";
|
|
document.head.appendChild(script);
|
|
this.loadEnvironments();
|
|
},
|
|
methods: {
|
|
buildUrl(path) {
|
|
// Concatenate this.$site.base with the provided path
|
|
const base = this.$site?.base || '/';
|
|
// Remove trailing slash from base and leading slash from path to avoid double slashes
|
|
const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;
|
|
const cleanPath = path.startsWith('/') ? path : `/${path}`;
|
|
return `${cleanBase}${cleanPath}`;
|
|
},
|
|
getQueryParam(param) {
|
|
// Extract query parameter from URL
|
|
const params = new URLSearchParams(window.location.search);
|
|
return params.get(param);
|
|
},
|
|
async loadEnvironments() {
|
|
this.loading = true;
|
|
this.error = null;
|
|
|
|
try {
|
|
const response = await fetch(this.resolvedBoardsUrl);
|
|
|
|
if (!response.ok) {
|
|
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
}
|
|
|
|
const data = await response.json();
|
|
|
|
if (!Array.isArray(data)) {
|
|
throw new Error('Invalid data format: expected an array');
|
|
}
|
|
|
|
const validEnvironments = data.filter(env =>
|
|
env &&
|
|
typeof env === 'object' &&
|
|
env.environment &&
|
|
typeof env.environment === 'string'
|
|
);
|
|
|
|
if (validEnvironments.length === 0) {
|
|
throw new Error('No valid environments found in data');
|
|
}
|
|
|
|
this.environments = validEnvironments;
|
|
|
|
// Check for env parameter in query string and auto-select
|
|
const envParam = this.getQueryParam('env');
|
|
if (envParam) {
|
|
const matchingEnv = validEnvironments.find(env => env.environment === envParam);
|
|
if (matchingEnv) {
|
|
this.selectedEnvironment = envParam;
|
|
} else {
|
|
console.warn(`Environment '${envParam}' not found in available environments`);
|
|
}
|
|
}
|
|
} catch (error) {
|
|
console.error('Failed to load environments:', error);
|
|
this.error = error.message || 'Failed to load environments';
|
|
} finally {
|
|
this.loading = false;
|
|
}
|
|
},
|
|
|
|
formatOptions(optionsText) {
|
|
if (!optionsText) return '';
|
|
let optionsTextMap=[];
|
|
if (typeof optionsText === 'string'){
|
|
optionsTextMap = optionsText.split('\n')
|
|
}else if (Array.isArray(optionsText)){
|
|
optionsTextMap = optionsText;
|
|
}
|
|
|
|
return optionsTextMap.map(line => line.trim())
|
|
.filter(line => line.length > 0)
|
|
.join('\n');
|
|
},
|
|
|
|
handleImageError(event) {
|
|
this.imageError = true;
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
/* Main Container */
|
|
.flash-selector {
|
|
max-width: 1200px;
|
|
margin: 2rem auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
/* Board Details */
|
|
cursor: pointer;
|
|
/* Board Details Container */
|
|
.board-details {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
/* Hero Section - Material Design 3 */
|
|
.board-hero {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 24px;
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 32px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.board-hero__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.board-hero__title {
|
|
margin: 0 0 8px 0;
|
|
font-size: 1.75rem;
|
|
font-weight: 400;
|
|
color: var(--accent-color, #3eaf7c);
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* Board Switcher - Material Chip Style */
|
|
.board-switcher {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.switcher-label {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1em;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.switcher-select-wrapper {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.switcher-select {
|
|
appearance: none;
|
|
background: rgba(0, 0, 0, 0.08);
|
|
color: rgba(0, 0, 0, 0.87);
|
|
border: none;
|
|
padding: 6px 32px 6px 12px;
|
|
border-radius: 16px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
cursor: pointer;
|
|
transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
height: 32px;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.switcher-select:hover {
|
|
background: rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.switcher-select:focus {
|
|
outline: 2px solid var(--accent-color, #3eaf7c);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.switcher-icon {
|
|
position: absolute;
|
|
right: 8px;
|
|
pointer-events: none;
|
|
font-size: 1rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.board-hero__meta {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.meta-label {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1em;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.meta-value {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
}
|
|
|
|
.board-hero__description {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
max-width: 600px;
|
|
}
|
|
|
|
.board-hero__image {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
min-width: 180px;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.board-hero__image img {
|
|
max-width: 100%;
|
|
max-height: 180px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* Primary Action - Material Filled Button */
|
|
.hero-action {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.connect-button {
|
|
background: #1976d2;
|
|
color: #ffffff;
|
|
border: none;
|
|
padding: 10px 24px;
|
|
border-radius: 20px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.125em;
|
|
height: 40px;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.connect-button:hover:not(:disabled) {
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.connect-button:active:not(:disabled) {
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.connect-button--disabled {
|
|
background: rgba(0, 0, 0, 0.12);
|
|
color: rgba(0, 0, 0, 0.38);
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Technical Details - Material Surface */
|
|
.tech-details {
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.tech-details__summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px 24px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background: rgba(0, 0, 0, 0.02);
|
|
transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
list-style: none;
|
|
}
|
|
|
|
.tech-details__summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.tech-details__summary:hover {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.tech-details__icon {
|
|
font-size: 1.25rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.tech-details__title {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
flex: 1;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.tech-details__toggle {
|
|
font-size: 0.875rem;
|
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.tech-details[open] .tech-details__toggle {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.tech-details__content {
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Tech Grid */
|
|
.tech-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.tech-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tech-section--full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.tech-section__title {
|
|
margin: 0;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1em;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.tech-section__content {
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
}
|
|
|
|
/* Chips - Material Design */
|
|
.chip-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chip {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
color: rgba(0, 0, 0, 0.87);
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-size: 0.875rem;
|
|
font-weight: 400;
|
|
border: none;
|
|
height: 32px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Code Styles - Material Surface */
|
|
.code-inline {
|
|
background: rgba(0, 0, 0, 0.05);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 0.875rem;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
}
|
|
|
|
.code-block {
|
|
background: rgba(0, 0, 0, 0.03);
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
font-size: 0.8125rem;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
margin: 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
color: rgba(0, 0, 0, 0.87);
|
|
}
|
|
|
|
/* Loading Spinner */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid rgba(62, 175, 124, 0.3);
|
|
border-top-color: var(--accent-color, #3eaf7c);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
vertical-align: middle;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Fade Transition */
|
|
.fade-enter-active, .fade-leave-active {
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.fade-enter-from, .fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Accessibility */
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 968px) {
|
|
.board-hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.board-hero__image {
|
|
order: -1;
|
|
max-width: 150px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.tech-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.selector-card {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.board-hero {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.board-hero__title {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.connect-button {
|
|
width: 100%;
|
|
padding: 0.9rem 2rem;
|
|
}
|
|
}
|
|
</style>
|