mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 16:12:20 +02:00
Font changes & adjustments in size, remove jenkins file & less tasks to runners.
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 53s
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 53s
This commit is contained in:
23
update_sizes_2.mjs
Normal file
23
update_sizes_2.mjs
Normal file
@@ -0,0 +1,23 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const dir = 'src/components';
|
||||
const files = fs.readdirSync(dir).filter(f => f.endsWith('.tsx'));
|
||||
|
||||
for (const file of files) {
|
||||
if (file === 'HeroSection.tsx') continue;
|
||||
|
||||
const filePath = path.join(dir, file);
|
||||
let content = fs.readFileSync(filePath, 'utf8');
|
||||
let original = content;
|
||||
|
||||
content = content.replaceAll('text-5xl md:text-6xl font-bold py-2 leading-[1.3] pb-4', 'text-6xl md:text-7xl font-bold pt-4 pb-6 leading-normal');
|
||||
content = content.replaceAll('text-3xl py-2 leading-relaxed', 'text-4xl pt-3 pb-5 leading-[1.6]');
|
||||
content = content.replaceAll('text-2xl py-2 leading-relaxed', 'text-3xl pt-3 pb-5 leading-[1.6]');
|
||||
content = content.replaceAll('text-4xl py-2 leading-relaxed', 'text-5xl pt-3 pb-6 leading-[1.6]');
|
||||
|
||||
if (original !== content) {
|
||||
fs.writeFileSync(filePath, content);
|
||||
console.log(`Updated sizes in ${file}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user