can you code me a website profolio that looks like a red grid and glowing text effects.
- User
can you code me a website profolio that looks like a red grid and glowing text effects.
- Assistant
can you code me a website profolio that looks like a red grid and glowing text effects.
Certainly! Below is a basic website portfolio template featuring a red grid background and glowing text effects.
index.html):<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Portfolio</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="grid-background">
<div class="content">
<h1 class="glow">Welcome to My Portfolio</h1>
<!-- Add more content here -->
</div>
</div>
</body>
</html>
styles.css):/* Reset default margins and paddings */
body, html {
margin: 0;
padding: 0;
height: 100%;
}
/* Container for the grid background */
.grid-background {
position: relative;
height: 100%;
width: 100%;
background-color: black;
overflow: hidden;
}
/* Create the red grid pattern */
.grid-background::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 200%;
width: 200%;
background-image:
linear-gradient(red 1px, transparent 1px),
linear-gradient(90deg, red 1px, transparent 1px);
background-size: 50px 50px;
transform: translate(-50%, -50%);
pointer-events: none; /* Ensure the grid doesn't interfere with content interaction */
}
/* Glowing text effect */
.glow {
color: red;
text-align: center;
font-size: 4em;
margin-top: 0;
padding-top: 20%;
text-shadow:
0 0 10px red,
0 0 20px red,
0 0 30px red,
0 0 40px red;
}
/* Content positioning */
.content {
position: relative;
z-index: 1; /* Place content above the grid */
}
HTML (index.html):
<link rel="stylesheet" href="styles.css">: Links the CSS file to style the HTML.<div class="grid-background">): Wraps the entire content to apply the grid background.<div class="content">): Holds the main content of your portfolio.<h1 class="glow">): Displays the main heading with a glowing effect.CSS (styles.css):
body and html..grid-background Class:
.grid-background::before):
::before to overlay grid lines.background-image:
linear-gradient: Creates horizontal red lines.linear-gradient (with 90deg): Creates vertical red lines.background-size: 50px 50px;: Determines the spacing between grid lines; adjust these values to make the grid denser or sparser.transform: translate(-50%, -50%);: Shifts the grid to align properly.pointer-events: none;: Ensures the grid doesn't block mouse interactions with the content..glow):
text-shadow: Creates multiple layers of red shadows to produce a glow effect.padding-top: 20%;: Adjusts vertical positioning; modify this value to move the text up or down..content):
position: relative; and z-index: 1;: Places the content above the grid background..grid-background::before, adjust background-size:
background-size: 30px 30px; /* Smaller squares */
red with any other color:
background-image:
linear-gradient(blue 1px, transparent 1px),
linear-gradient(90deg, blue 1px, transparent 1px);
.glow, change color and text-shadow to match:
color: cyan;
text-shadow:
0 0 10px cyan,
0 0 20px cyan,
0 0 30px cyan,
0 0 40px cyan;
<div class="content">, add your portfolio sections:
<h2 class="glow">About Me</h2>
<p>I'm a passionate developer with experience in...</p>
To enhance the glowing effect, you can add an animation to the text:
Update CSS (styles.css):
/* Keyframes for glowing text animation */
@keyframes glow {
0% {
text-shadow:
0 0 5px red,
0 0 10px red,
0 0 15px red,
0 0 20px red;
}
50% {
text-shadow:
0 0 20px red,
0 0 30px red,
0 0 40px red,
0 0 50px red;
}
100% {
text-shadow:
0 0 5px red,
0 0 10px red,
0 0 15px red,
0 0 20px red;
}
}
/* Apply animation to the glowing text */
.glow {
animation: glow 2s infinite;
}
Create Files:
index.html.styles.css in the same directory.Open in Browser:
index.html with your web browser to view your portfolio.<!-- Add this in the <head> section of your HTML -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<!-- Apply the font in your CSS -->
body {
font-family: 'Roboto', sans-serif;
}
<!-- Add this in the <head> section -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
/* Example media query in CSS */
@media (max-width: 600px) {
.glow {
font-size: 2em;
}
}
This basic template provides a visually striking starting point for your portfolio with a red grid background and glowing text effects. Feel free to modify and expand upon it to create a portfolio that reflects your personal style and showcases your work effectively. If you need further assistance or have questions about customizing specific elements, don't hesitate to ask!
Not yet included in a published release.