-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathportfolio.html
130 lines (116 loc) · 3.38 KB
/
portfolio.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Portfolio Project Preview for Code Editor">
<title>Portfolio Preview Image</title>
<style>
/* Global Styles */
body {
font-family: 'Roboto Mono', monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
/* Set up the container for the preview image */
.portfolio-preview {
width: 600px;
height: 400px;
background: #f7f7f7;
border-radius: 15px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
/* Title at the top */
.portfolio-preview .title {
position: absolute;
top: 20px;
left: 20px;
font-size: 2rem;
color: #007bff;
font-weight: bold;
}
/* Add a snippet of code preview */
.portfolio-preview .code-snippet {
position: absolute;
top: 80px;
left: 20px;
width: 90%;
height: 100px;
background: #282c34;
color: #f8f8f2;
border-radius: 10px;
padding: 10px;
font-size: 14px;
overflow-y: auto;
}
/* Add icons to showcase functionality */
.portfolio-preview .icons {
display: flex;
justify-content: space-around;
position: absolute;
bottom: 20px;
width: 100%;
}
.portfolio-preview .icons i {
font-size: 30px;
color: #28a745;
}
.portfolio-preview .icons i:hover {
color: #007bff;
}
/* Button below icons */
.portfolio-preview .cta-btn {
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
padding: 12px 30px;
font-size: 16px;
background-color: #007bff;
color: white;
border-radius: 5px;
text-decoration: none;
text-align: center;
}
.portfolio-preview .cta-btn:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="portfolio-preview">
<!-- Title -->
<div class="title">Online Code Editor</div>
<!-- Code Snippet Preview -->
<div class="code-snippet">
<pre>
<code><html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html></code>
</pre>
</div>
<!-- Icons Section -->
<div class="icons">
<i class="fas fa-code"></i>
<i class="fas fa-play"></i>
<i class="fas fa-save"></i>
</div>
<!-- Call to Action Button -->
<a href="editor.html" class="cta-btn">Try It Now</a>
</div>
<!-- Font Awesome for icons -->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</body>
</html>