Skip to content

Commit 74a0b78

Browse files
committed
Try and Error
1 parent 3043c44 commit 74a0b78

2 files changed

Lines changed: 71 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>
3434
<div>
3535
<h2>1968</h2>
3636
<h3>Intel Founded</h3>
37-
<!-- Add image -->
37+
<img src="img/1.jpg" alt="Intel Founded" />
3838
<p>
3939
Robert Noyce and Gordon Moore rename the newly formed company
4040
NM Electronics to Intel Corporation, laying the foundation for
@@ -46,7 +46,7 @@ <h3>Intel Founded</h3>
4646
<div>
4747
<h2>1971</h2>
4848
<h3>First Microprocessor</h3>
49-
<!-- Add image -->
49+
<img src="img/2.jpg" alt="First Microprocessor"/>
5050
<p>
5151
Intel debuts the 4004, the world's first commercial microprocessor,
5252
igniting the microprocessor revolution and propelling the future
@@ -58,7 +58,7 @@ <h3>First Microprocessor</h3>
5858
<div>
5959
<h2>1978</h2>
6060
<h3>8086 Processor</h3>
61-
<!-- Add image -->
61+
<img src="img/3.jpg" alt="8086 Processor"/>
6262
<p>
6363
Launch of the 8086 processor, establishing the x86 architecture
6464
that drives countless PCs and servers in the modern era.
@@ -69,7 +69,7 @@ <h3>8086 Processor</h3>
6969
<div>
7070
<h2>1985</h2>
7171
<h3>386 Processor</h3>
72-
<!-- Add image -->
72+
<img src="img/4.jpg" alt="386 Processor" />
7373
<p>
7474
Intel introduces the 386 processor with 32-bit architecture,
7575
ushering in a new era of performance and multitasking for

style.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,68 @@
11
/* Add your CSS here */
2+
body {
3+
background-color: #e0e0e0; /* Light gray background for the whole page */
4+
}
5+
/* Style for header and hero section */
6+
header {
7+
background-color: #0071c5; /* Intel blue */
8+
padding: 32px 0 24px 0;
9+
text-align: center;
10+
}
11+
12+
header div {
13+
display: flex;
14+
flex-direction: column;
15+
align-items: center;
16+
gap: 16px;
17+
}
18+
19+
header img {
20+
width: 120px; /* Resize the Intel logo */
21+
height: auto;
22+
margin-bottom: 12px;
23+
}
24+
25+
header h1 {
26+
font-size: 2.2rem;
27+
margin: 0 0 8px 0;
28+
color: #fff; /* White heading */
29+
}
30+
31+
header p {
32+
font-size: 1.1rem;
33+
max-width: 500px;
34+
margin: 0 auto;
35+
color: #fff; /* White text for description */
36+
}
37+
38+
/* Style for timeline cards */
39+
section {
40+
display: flex;
41+
flex-wrap: wrap;
42+
justify-content: center;
43+
gap: 20px;
44+
margin: 32px 0;
45+
}
46+
section > div {
47+
background: #fff;
48+
border-radius: 8px;
49+
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
50+
width: 320px; /* Increased width for large screens */
51+
padding: 28px; /* Increased padding for more space */
52+
text-align: center;
53+
transition: box-shadow 0.2s;
54+
}
55+
56+
section h2 {
57+
color: #0071c5; /* Intel blue for year */
58+
}
59+
60+
section > div:hover {
61+
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
62+
}
63+
64+
section img {
65+
width: 300px;
66+
height: auto;
67+
margin-bottom: 8px;
68+
}

0 commit comments

Comments
 (0)