GARR affianca alla propria rete ad alte prestazioni un’infrastruttura di calcolo e storage basata sul paradigma cloud
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.cloud-container {
max-width: 1400px;
margin: 0 auto;
}
.cloud-header {
text-align: center;
margin-bottom: 3rem;
color: white;
}
.cloud-header h1 {
font-size: 2.5rem;
font-weight: 300;
margin-bottom: 0.5rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cloud-header p {
font-size: 1.1rem;
opacity: 0.9;
}
.cloud-charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.cloud-chart-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cloud-chart-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.cloud-chart-header {
text-align: center;
margin-bottom: 1.5rem;
}
.cloud-chart-title {
font-size: 1.3rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 0.3rem;
}
.cloud-chart-title-en {
font-size: 1rem;
font-style: italic;
color: #414853;
margin-bottom: 0.5rem;
}
.cloud-chart-subtitle {
font-size: 0.85rem;
color: #383b40;
line-height: 1.4;
}
.cloud-chart-container {
position: relative;
height: 400px;
margin-bottom: 1rem;
}
.cloud-chart-container.pie-chart {
height: 350px;
}
.cloud-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1rem;
}
.cloud-period-btn {
padding: 0.5rem 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
background: white;
color: #2d3748;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}
.cloud-period-btn:hover {
border-color: #1e3c72;
box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}
.cloud-year-selector {
padding: 0.5rem 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
background: white;
color: #2d3748;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}
.cloud-year-selector:hover, .cloud-year-selector:focus {
border-color: #1e3c72;
box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
outline: none;
}
.cloud-download-btn {
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
color: white;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 8px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}
.cloud-download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}
.cloud-stats-summary {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 1.5rem;
margin-top: 2rem;
}
.cloud-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.cloud-stat-item {
text-align: center;
padding: 1rem;
border-radius: 10px;
background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}
.cloud-stat-number {
font-size: 1.8rem;
font-weight: 700;
color: #2d3748;
}
.cloud-stat-label {
font-size: 0.9rem;
color: #718096;
margin-top: 0.25rem;
}
@media (max-width: 768px) {
.cloud-charts-grid {
grid-template-columns: 1fr;
}
.cloud-header h1 {
font-size: 2rem;
}
.cloud-chart-container {
height: 300px;
}
}
2024
2023
📊 download chart
2024
2023
📊 download chart
// Color palette
const colorsCloud = {
primary: ['#667eea', '#764ba2', '#3b82f6', '#06b6d4', '#10b981', '#f59e0b', '#ef4444', '#8b5cf6', '#ec4899', '#6366f1']
};
// Default options
const defaultOptionsCloud = {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'bottom',
labels: {
padding: 20,
usePointStyle: true,
font: {
size: 11,
family: "'Segoe UI', sans-serif"
}
}
},
tooltip: {
backgroundColor: 'rgba(0, 0, 0, 0.8)',
titleColor: 'white',
bodyColor: 'white',
borderColor: 'rgba(255, 255, 255, 0.2)',
borderWidth: 1,
cornerRadius: 8,
padding: 12,
displayColors: true
}
},
animation: {
duration: 1500,
easing: 'easeOutQuart'
}
};
// Options estese con percentuali per i grafici a torta cloud
const pieOptionsWithPercentagesCloud = {
...defaultOptionsCloud,
cutout: '50%',
plugins: {
...defaultOptionsCloud.plugins,
tooltip: {
...defaultOptionsCloud.plugins.tooltip,
callbacks: {
label: function(context) {
const total = context.dataset.data.reduce((a, b) => a + b, 0);
const percentage = ((context.parsed * 100) / total).toFixed(1);
return `${context.label}: ${context.parsed.toLocaleString()} (${percentage}%)`;
}
}
}
}
};
// Data
const dataTipologia = {
2024: {
"Disaster Recovery, Business Continuity": 1064,
"Servizi GARR": 1076,
"Sperimentazione ICT": 1208,
"Formazione/Didattica": 568,
"AI/ML Data Storage": 200,
"Calcolo": 4968,
"Servizi web": 307,
"Altro": 732
},
2023: {
"Disaster Recovery, Business Continuity": 524,
"Servizi GARR": 1304,
"Sperimentazione ICT": 459,
"Formazione/Didattica": 77,
"AI/ML Data Storage": 714,
"Calcolo": 3328,
"Servizi web": 235,
"Altro": 455
}
};
const dataComunita = {
2024: {
"GARR Sperimentazione": 1444,
"GARR Servizi": 1062,
"Ricerca scientifica": 2472,
"Ricerca biomedica": 2370,
"Università": 2356,
"Beni culturali": 195,
"Arti performative": 0,
"Scuola": 0,
"Altro": 72
},
2023: {
"GARR Sperimentazione": 1468,
"GARR Servizi": 565,
"Ricerca scientifica": 2211,
"Ricerca biomedica": 1307,
"Università": 1413,
"Beni culturali": 101,
"Arti performative": 6,
"Scuola": 8,
"Altro": 17
}
};
const dataObjectStorage = {
"GARR Sperimentazione": 800,
"GARR Servizi": 1600,
"Ricerca scientifica": 52200,
"Ricerca biomedica": 420000,
"Università": 209400,
"Beni culturali": 800,
"Arti performative": 0,
"Scuola": 0,
"Altro": 1200
};
let chartTipologia, chartComunita, chartObjectStorage;
function createChart(id, data, colors) {
const ctx = document.getElementById(id).getContext('2d');
const dataset = {
labels: Object.keys(data),
datasets: [{
data: Object.values(data),
backgroundColor: colors,
borderColor: '#fff',
borderWidth: 3,
hoverBorderWidth: 4,
hoverOffset: 10
}]
};
return new Chart(ctx, {
type: 'doughnut',
data: dataset,
options: pieOptionsWithPercentagesCloud
});
}
function updateChart(chart, data) {
chart.data.labels = Object.keys(data);
chart.data.datasets[0].data = Object.values(data);
chart.update();
}
function updateStats() {
// Totali 2024 per ogni dataset
const totalTipologia = Object.values(dataTipologia["2024"]).reduce((a,b) => a+b, 0);
const totalComunita = Object.values(dataComunita["2024"]).reduce((a,b) => a+b, 0);
const totalObjectStorage = Object.values(dataObjectStorage).reduce((a,b) => a+b, 0);
const stats = [
{ label: 'Totale vCPU per Tipologia (2024)', value: totalTipologia.toLocaleString() },
{ label: 'Totale vCPU per Comunità (2024)', value: totalComunita.toLocaleString() },
{ label: 'Totale Object Storage (GB)', value: (totalObjectStorage/1000).toFixed(1) + ' TB' },
{ label: 'Tipo con più vCPU (2024)', value: 'Calcolo' }
];
const container = document.getElementById('statsGridCloud');
container.innerHTML = stats.map(stat => `
${stat.value}
${stat.label}
`).join('');
}
document.addEventListener("DOMContentLoaded", () => {
// Initialize charts
chartTipologia = createChart("chartTipologia", dataTipologia["2024"], colorsCloud.primary);
chartComunita = createChart("chartComunita", dataComunita["2024"], colorsCloud.primary);
chartObjectStorage = createChart("chartObjectStorage", dataObjectStorage, colorsCloud.primary);
// Event listeners for year selectors
document.getElementById("yearTipologia").addEventListener("change", (e) => {
updateChart(chartTipologia, dataTipologia[e.target.value]);
updateStats();
});
document.getElementById("yearComunita").addEventListener("change", (e) => {
updateChart(chartComunita, dataComunita[e.target.value]);
updateStats();
});
// Download handlers
document.getElementById("downloadTipologia").addEventListener("click", () => {
const year = document.getElementById("yearTipologia").value;
const link = document.createElement('a');
link.download = `cloud-tipologia-${year}.png`;
link.href = chartTipologia.toBase64Image();
link.click();
});
document.getElementById("downloadComunita").addEventListener("click", () => {
const year = document.getElementById("yearComunita").value;
const link = document.createElement('a');
link.download = `cloud-comunita-${year}.png`;
link.href = chartComunita.toBase64Image();
link.click();
});
document.getElementById("downloadObjectStorage").addEventListener("click", () => {
const link = document.createElement('a');
link.download = 'cloud-object-storage-2024.png';
link.href = chartObjectStorage.toBase64Image();
link.click();
});
// Initialize stats
updateStats();
// Add hover effects
document.querySelectorAll('.cloud-chart-card').forEach(card => {
card.addEventListener('mouseenter', function() {
this.style.transform = 'translateY(-8px)';
});
card.addEventListener('mouseleave', function() {
this.style.transform = 'translateY(0)';
});
});
});
Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.
Questo indirizzo email è protetto dagli spambots. È necessario abilitare JavaScript per vederlo.