Cursor rule
.cursor/rules/asset-management.mdcCursor rules
Quality
62/100
Scores the file, not the repository.Length
456 words
19 headings · 2 code blocksRepository
4
— · pushed 203 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Asset Management Guidelines67## Directory Structure89### Public Assets ([public/](mdc:public/))10Static assets served directly:11- **images/** - All static images and graphics12- **fonts/** - Web font files (Noto Sans variants)13- **favicon/** - Site icons and manifest14- **robots.txt** - SEO configuration1516### Source Assets ([src/assets/](mdc:src/assets/))17Assets processed by Astro's build system:18- **images/banner/** - Localized banner images for pages19- **images/logos/** - Brand logos and symbols2021## Image Asset Organization2223### Banner Images24Localized banner images follow strict naming convention:25```26banner-{page}-{device}-{locale}.webp2728Examples:29- banner-home-desktop-es.webp30- banner-about-mobile-en.webp31- banner-participate-desktop-pt.webp32```3334Supported pages: home, about, cali, contacts, participate, program, resources, service-team3536### Carousel Images37Organized by section with numbered sequences:38- **about-carousel-1.webp** through **about-carousel-5.webp**39- **info-carousel-1.webp** through **info-carousel-6.webp**40- **participate-carousel-1.webp** through **participate-carousel-5.webp**41- **service-team-carousel-1.webp** through **service-team-carousel-15.webp**4243### Icon Assets44- **activity-icon-{1-8}.svg** - Activity type icons45- **card-icon-{1-3}.svg** - Information card icons46- **eis-icon-{1-5}.svg** - EIS (Educational Impact Study) icons47- **participate-card-icon-{1-3}.svg** - Participation process icons4849### Cultural and Wildlife Images50Colombian flora and fauna:51- **guacamaya.webp** - Macaw parrot52- **tangara.webp** - Tanager bird53- **loro-cabeza-azul.webp** - Blue-headed parrot54- **pato-moscovia.webp** - Muscovy duck55- **ani-pico-liso.webp** - Smooth-billed ani5657### Cali City Images58- **cali-{1-5}.webp** - Showcasing host city5960## Optimization Guidelines6162### Image Formats631. **WebP** - Primary format for photographs and complex images642. **SVG** - For icons, logos, and simple graphics653. **PNG** - Fallback for images requiring transparency664. **PDF** - Documents in [public/images/docs/](mdc:public/images/docs/)6768### Performance Best Practices69```astro70---71import { Image } from 'astro:assets';72import bannerImage from '@/assets/images/banner/banner-home-desktop-es.webp';73---7475<!-- Optimized image with Astro -->76<Image77 src={bannerImage}78 alt={t.banners.home.alt}79 width={1200}80 height={600}81 class="w-full h-auto"82 loading="lazy"83/>84```8586### Asset Loading Strategy87- **Above-the-fold images**: Load immediately (loading="eager")88- **Carousel and gallery images**: Lazy load (loading="lazy")89- **Background images**: Consider using CSS with optimized formats90- **Icons**: Inline small SVGs, load larger ones as assets9192## Brand Asset Guidelines9394### Official Logos95- **logo-jamcam-color.svg** - Primary JAMCAM logo96- **logo-jamcam-white.svg** - White variant for dark backgrounds97- **logo-scouts-colombia.png** - Scouts de Colombia logo98- **logo-world-scouting.png** - World Scouting logo99100### Mascot and Theme Elements101- **cholao.svg** - JAMCAM mascot in different variations102- **trademark.svg** - Legal trademark notation103- Various wave decorations for section separators104105## Localization Considerations106- Some images contain text and require language-specific versions107- Banner images are fully localized for all 4 supported languages108- Consider cultural appropriateness when adding new imagery109- Maintain consistency with Colombian scouting visual identity110111## File Naming Conventions112- Use **lowercase** with **kebab-case** (hyphens)113- Include **descriptive prefixes** for organization114- Add **language suffixes** for localized assets (-es, -en, -pt, -fr)115- Use **semantic naming** over generic numbers when possible116- Keep filenames **concise but descriptive**117description:118globs:119alwaysApply: false120---121
Also in MiloAgudelo/jamcam-astro
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| MiloAgudelo/jamcam-astro.cursor/rules/astro-components.mdc · 4 | Cursor rules | stylearchuiperformance | 66/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/development-workflow.mdc · 4 | Cursor rules | setupbuildteststyle+6 | 81/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/internationalization.mdc · 4 | Cursor rules | arch | 62/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/jamcam-project-overview.mdc · 4 | Cursor rules | arch | 48/100 | 3 days ago | |
| MiloAgudelo/jamcam-astro.cursor/rules/styling-system.mdc · 4 | Cursor rules | stylearchui | 66/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
