Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
155 lines (137 loc) · 4.54 KB
/
Copy pathstyle.css
File metadata and controls
155 lines (137 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DevOps Project</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
<style>
/* General resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.6; color: #2e2e3a; }
/* Navbar */
nav {
background: linear-gradient(90deg, #ff7e5f, #feb47b);
color: white;
padding: 0.75rem 0;
position: sticky;
top: 0;
z-index: 100;
}
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: bold; font-size: 1.5rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links li a { color: white; text-decoration: none; font-weight: bold; }
.nav-links li a:hover { color: #fff700; }
/* Sections */
.section { padding: 4rem 1rem; }
.container { max-width: 1100px; margin: 0 auto; }
/* Home / Hero */
.home { background: linear-gradient(to right, #43cea2, #185a9d); text-align: center; padding-top: 6rem; padding-bottom: 6rem; color: white; }
.home h1 { font-size: 3rem; margin-bottom: 1rem; }
.home p { font-size: 1.2rem; margin-bottom: 2rem; }
/* About */
.about { background-color: #f9f9f9; }
.about h2 { color: #185a9d; margin-bottom: 1rem; text-align: center; }
.about p { font-size: 1.1rem; text-align: center; }
/* Links Section - card style */
.links { background-color: #e0f7fa; }
.links h2 { color: #00796b; margin-bottom: 2rem; text-align: center; }
.links-grid {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
justify-content: center;
margin-top: 2rem;
}
.link-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
background: #ffffff;
color: #2e2e3a;
padding: 1.5rem;
border-radius: 12px;
width: 180px;
height: 150px;
text-decoration: none;
font-weight: bold;
box-shadow: 0 6px 15px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.link-card i {
margin-bottom: 0.75rem;
color: #00796b;
}
.link-card span { font-size: 1.1rem; }
.link-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
/* Footer */
footer { background: linear-gradient(90deg, #ff7e5f, #feb47b); color: white; text-align: center; padding: 1rem 0; margin-top: 2rem; font-size: 0.9rem; }
</style>
</head>
<body>
<!-- Navbar -->
<nav>
<div class="nav-container">
<div class="logo">DevOps Project</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#links">Links</a></li>
</ul>
</div>
</nav>
<!-- Hero / Home Section -->
<section id="home" class="section home">
<div class="container">
<h1>Welcome to Our DevOps Git Project</h1>
<p>Collaborating on Git, Branches, Pull Requests & GitHub Pages Hosting.</p>
</div>
</section>
<!-- About Section -->
<section id="about" class="section about">
<div class="container">
<h2>About the Project</h2>
<p>This project demonstrates collaboration using Git, creating branches, pull requests, and hosting the repository using GitHub Pages. Owner: Sourav Kumar</p>
</div>
</section>
<!-- Links Section -->
<section id="links" class="section links">
<div class="container">
<h2>Project Links</h2>
<div class="links-grid">
<!-- README -->
<a href="README.md" target="_blank" class="link-card">
<i class="fas fa-file-alt fa-2x"></i>
<span>README.md</span>
</a>
<!-- GitHub Repo -->
<a href="https://github.com/souravo1/devops-git-project" target="_blank" class="link-card">
<i class="fab fa-github fa-2x"></i>
<span>GitHub Repo</span>
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<p>© 2025 DevOps Git Project | Owner: SOURAV KUMAR</p>
</div>
</footer>
<script>
// Smooth scroll for navigation links
document.querySelectorAll('nav a').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' });
});
});
</script>
</body>
</html>