Sure! Below is an example of how you can create a sci-fi cyberpunk-themed website for NEBUCORP. This includes using Google Fonts, background images, and JavaScript libraries to add animated effects. The website features a dark theme and contains descriptions of NEBUCORP, its science arm Nebudine, and their drug Nebulung.
1. HTML (index.html):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>NEBUCORP - Cyberpunk Interface</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Share+Tech+Mono&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
<!-- GSAP Library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
</head>
<body>
<div class="overlay"></div>
<div class="container">
<h1 class="neon-text">NEBUCORP</h1>
<p class="description">
Welcome to <strong>NEBUCORP</strong>, the global leader in technological innovation and bioengineering. Our mission is to push the boundaries of science and redefine what's possible in a rapidly evolving world.
</p>
<h2 class="neon-text">Nebudine</h2>
<p class="description">
As the dedicated science arm of NEBUCORP, <strong>Nebudine</strong> pioneers cutting-edge research in biotechnology, cybernetics, and pharmacology. We strive to create solutions that enhance human capabilities and improve quality of life.
</p>
<h2 class="neon-text">Nebulung</h2>
<p class="description">
Introducing <strong>Nebulung</strong>, our latest breakthrough in cognitive enhancement. Nebulung offers unparalleled clarity, focus, and mental agility. Step into the future with the next evolution of human potential.
</p>
</div>
<!-- Custom JavaScript -->
<script src="script.js"></script>
</body>
</html>
2. CSS (style.css):
/* Body and Background */
body {
margin: 0;
padding: 0;
background: url('background.jpg') no-repeat center center fixed; /* Replace with your background image */
background-size: cover;
font-family: 'Share Tech Mono', monospace;
color: #0afff5;
overflow: hidden;
}
/* Overlay to darken the background */
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(5, 5, 20, 0.85);
z-index: 1;
}
/* Container for content */
.container {
position: relative;
z-index: 2;
max-width: 800px;
margin: 100px auto;
text-align: center;
padding: 20px;
color: #ffffff;
}
/* Neon Text Effect */
.neon-text {
font-family: 'Orbitron', sans-serif;
font-size: 3em;
color: #0afff5;
text-shadow:
0 0 5px #0afff5,
0 0 10px #0afff5,
0 0 20px #0afff5,
0 0 40px #0afff5,
0 0 80px #0afff5,
0 0 90px #0afff5,
0 0 100px #0afff5,
0 0 150px #0afff5;
margin-bottom: 20px;
animation: flicker 1.5s infinite alternate;
}
/* Description Text */
.description {
font-size: 1.2em;
line-height: 1.6em;
margin: 30px 0;
color: #cfcfcf;
}
/* Keyframes for flickering neon text */
@keyframes flicker {
0%, 18%, 22%, 25%, 53%, 57%, 100% {
text-shadow:
0 0 5px #0afff5,
0 0 10px #0afff5,
0 0 20px #0afff5,
0 0 40px #0afff5,
0 0 80px #0afff5,
0 0 90px #0afff5,
0 0 100px #0afff5,
0 0 150px #0afff5;
opacity: 1;
}
20%, 24%, 55% {
text-shadow: none;
opacity: 0.5;
}
}
3. JavaScript (script.js):
// Animate the neon text headers
gsap.from(".neon-text", {
duration: 2,
opacity: 0,
y: -50,
stagger: 0.5,
ease: "power3.out"
});
// Animate the description paragraphs
gsap.from(".description", {
duration: 2,
opacity: 0,
y: 50,
stagger: 0.5,
delay: 1,
ease: "power3.out"
});
4. Background Image:
Instructions to Set Up the Website:
-
Create the Project Folder:
- Create a new folder for your website project.
-
Add the HTML File:
- Create a new file named
index.html inside your project folder.
- Copy and paste the HTML code provided above into
index.html.
-
Add the CSS File:
- Create a new file named
style.css inside your project folder.
- Copy and paste the CSS code provided above into
style.css.
-
Add the JavaScript File:
- Create a new file named
script.js inside your project folder.
- Copy and paste the JavaScript code provided above into
script.js.
-
Add the Background Image:
- Download a suitable cyberpunk-themed image.
- Save it in your project folder as
background.jpg.
-
Open the Website:
- Open
index.html in your web browser to view the website.
Explanation of the Code and Features:
Customization Options:
-
Colors:
- You can adjust the colors in the CSS to match your preferred color scheme.
-
Content:
- Modify the text within the HTML to add more information or change existing content.
-
Fonts:
- Explore other Google Fonts that might better suit your vision.
-
Additional Effects:
- Experiment with different GSAP animations for more dynamic effects.
Final Notes:
- Ensure you have an active internet connection when viewing the website, as it pulls resources from CDNs.
- For offline use, you can download the required fonts and GSAP library and reference them locally.
Enjoy creating your cyberpunk-themed website for NEBUCORP! If you have any questions or need further assistance, feel free to ask.