Skip to content

Commit f298422

Browse files
authored
Merge pull request #777 from aayush105/update/main-index-file
update: enhance header section with improved styling and description …
2 parents d73d2de + e8494ed commit f298422

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

index.html

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,70 @@
8686
background-color: #04aa6d;
8787
color: white;
8888
}
89+
90+
header {
91+
margin-bottom: 30px;
92+
}
93+
94+
h1 {
95+
font-size: 2rem;
96+
color: #04aa6d;
97+
margin-bottom: 10px;
98+
}
99+
100+
a {
101+
text-decoration: none;
102+
color: #242424;
103+
}
104+
105+
.description {
106+
font-size: 1.2em;
107+
color: #333;
108+
margin-bottom: 20px;
109+
}
110+
111+
/* logo image */
112+
.java_pic {
113+
height: auto;
114+
width: 2rem;
115+
}
116+
117+
.button_java {
118+
border: 2px solid black;
119+
width: 50%;
120+
justify-content: center;
121+
margin-left: 20rem;
122+
background-color: #04aa6d;
123+
border-radius: 1rem;
124+
display: flex;
125+
}
126+
127+
.top {
128+
display: flex;
129+
justify-content: center;
130+
align-items: center;
131+
padding: 2px;
132+
}
89133
</style>
90134
</head>
91135
<body>
92136
<section id="pageSection">
93-
<h1>You Don’t Need JavaScript 🚫</h1>
94-
<p>Explore interactive demos built purely with HTML & CSS.</p>
137+
<header>
138+
<div class="button_java">
139+
<h1>
140+
<a href="https://github.com/you-dont-need/You-Dont-Need-JavaScript">
141+
<div class="top">
142+
You Dont Need JavaScript
143+
<img src="images/java-script.png" alt="java" class="java_pic" />
144+
</div>
145+
</a>
146+
</h1>
147+
</div>
148+
<p class="description">
149+
Explore the power of pure CSS with our collection of interactive demos
150+
and examples.
151+
</p>
152+
</header>
95153

96154
<table id="pages">
97155
<tr>

0 commit comments

Comments
 (0)