Here's a self-contained HTML file that creates a Star Trek LCARS-style interface:
<!DOCTYPE html>
<html>
<head>
<title>LCARS Interface</title>
<style>
body {
background-color: #000;
color: #f1a165;
font-family: "Helvetica", sans-serif;
margin: 0;
padding: 20px;
overflow: hidden;
}
.lcars-container {
display: grid;
grid-template-columns: 150px 1fr 150px;
grid-template-rows: 100px 1fr 100px;
height: 95vh;
gap: 10px;
}
.lcars-element {
background-color: #cc6666;
border-radius: 20px;
padding: 10px;
transition: all 0.3s ease;
}
.lcars-element:hover {
background-color: #ff9966;
}
.header {
grid-column: 1 / 4;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #9966cc;
}
.sidebar-left {
grid-row: 2 / 4;
background-color: #cc6699;
}
.sidebar-right {
grid-row: 2 / 4;
grid-column: 3;
background-color: #cc6699;
}
.main-content {
background-color: #000;
border: 2px solid #cc6666;
border-radius: 20px;
padding: 20px;
position: relative;
}
.footer {
grid-column: 2 / 4;
background-color: #9966cc;
}
.status-text {
font-size: 14px;
margin: 5px 0;
}
.blinking-text {
animation: blink 1s infinite;
}
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
.data-readout {
font-family: monospace;
font-size: 12px;
line-height: 1.4;
}
.button {
background-color: #cc6666;
border: none;
border-radius: 15px;
color: #000;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
transition: all 0.3s ease;
}
.button:hover {
background-color: #ff9966;
}
#datetime {
font-size: 1.2em;
margin: 10px;
}
</style>
</head>
<body>
<div class="lcars-container">
<div class="lcars-element header">
<div id="datetime"></div>
<h1>LCARS INTERFACE v3.47</h1>
<div class="status-text blinking-text">SYSTEM ACTIVE</div>
</div>
<div class="lcars-element sidebar-left">
<div class="status-text">NAVIGATION</div>
<button class="button">MAIN SYSTEMS</button>
<button class="button">DIAGNOSTICS</button>
<button class="button">SECURITY</button>
<button class="button">COMMUNICATIONS</button>
</div>
<div class="main-content">
<h2>SYSTEM STATUS</h2>
<div class="data-readout">
> INITIALIZING MAIN SYSTEMS...<br>
> RUNNING DIAGNOSTICS...<br>
> CHECKING SECURITY PROTOCOLS...<br>
> ALL SYSTEMS NOMINAL<br>
<span class="blinking-text">> AWAITING INPUT...</span>
</div>
<div id="random-data"></div>
</div>
<div class="lcars-element sidebar-right">
<div class="status-text">SYSTEM METRICS</div>
<div id="metrics"></div>
</div>
<div class="lcars-element footer">
<div class="status-text">AUTHORIZATION: GRANTED | SECURITY LEVEL: ALPHA</div>
</div>
</div>
<script>
// Update datetime
function updateDateTime() {
const now = new Date();
document.getElementById('datetime').textContent =
now.toLocaleDateString() + ' ' + now.toLocaleTimeString();
}
setInterval(updateDateTime, 1000);
updateDateTime();
// Generate random metrics
function updateMetrics() {
const metrics = [
`POWER: ${Math.floor(Math.random() * 100)}%`,
`SHIELDS: ${Math.floor(Math.random() * 100)}%`,
`TEMP: ${(Math.random() * 100).toFixed(1)}°C`,
`CPU: ${Math.floor(Math.random() * 100)}%`
];
document.getElementById('metrics').innerHTML =
metrics.join('<br>');
}
setInterval(updateMetrics, 2000);
updateMetrics();
// Generate random data stream
function updateRandomData() {
const chars = '0123456789ABCDEF';
let data = '';
for (let i = 0; i < 5; i++) {
data += '> ';
for (let j = 0; j < 32; j++) {
data += chars[Math.floor(Math.random() * chars.length)];
}
data += '<br>';
}
document.getElementById('random-data').innerHTML = data;
}
setInterval(updateRandomData, 3000);
updateRandomData();
</script>
</body>
</html>
This HTML file creates a modern LCARS-style interface with:
- A header with current date/time and system status
- Left sidebar with navigation buttons
- Main content area with system status and random data stream
- Right sidebar with system metrics
- Footer with authorization status
- Dynamic elements that update regularly:
- Current date and time
- Random system metrics
- Random data stream
- Hover effects on interface elements
- Blinking text effects
- LCARS-style color scheme and rounded corners
The interface is responsive and includes some interactive elements. All the styling and functionality is contained in a single file. You can save this as an .html file and open it in a web browser to see it in action.
The color scheme is inspired by the LCARS (Library Computer Access/Retrieval System) from Star Trek, with the characteristic orange, purple, and pink hues. The interface updates dynamically to simulate an active computer system.