-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (82 loc) · 3.91 KB
/
index.html
File metadata and controls
100 lines (82 loc) · 3.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>DevLink — Share Your Journey</title>
<link rel="stylesheet" href="styles/theme.css">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/components/card.css">
<link rel="stylesheet" href="styles/components/buttons.css">
<link rel="stylesheet" href="styles/components/forms.css">
<link rel="stylesheet" href="styles/components/layout.css">
</head>
<body>
<header>
<div class="container header-content">
<a href="index.html" class="logo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
DevLink
</a>
<nav class="nav-links">
<a href="index.html" class="nav-link active">Feed</a>
<a href="profile.html" class="nav-link">Profile</a>
<button id="theme-toggle" class="btn-icon" aria-label="Toggle Theme"></button>
</nav>
</div>
</header>
<main class="container main-layout">
<section class="feed">
<div class="card create-post-card">
<div class="form-group">
<textarea id="post-content" class="form-textarea" rows="3" placeholder="What did you learn today?"></textarea>
</div>
<div class="create-post-footer">
<div style="margin-bottom:0; flex-grow:1; margin-right:1rem;">
<input id="post-tags" type="text" class="form-input" placeholder="Tags (comma separated). Use 'streak:12' for a streak badge">
</div>
<button id="post-btn" class="btn btn-primary" title="Post">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
Post
</button>
</div>
</div>
<div id="posts-container">
</div>
</section>
<aside class="sidebar">
<div class="card profile-summary">
<div class="streak-badge" title="Learning streak">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.1.2-2.2.6-3.3.314.918.816 1.816 1.9 2.8z"/></svg>
<span id="streak-display">Day 0</span> Streak
</div>
<div style="text-align:center; margin-bottom:1rem;">
<div id="sidebar-avatar" class="avatar avatar-large"></div>
<h3 id="sidebar-name"></h3>
<p id="sidebar-handle" class="muted"></p>
</div>
<p id="sidebar-bio" class="muted" style="text-align:center; margin-bottom:1rem;"></p>
<div class="profile-stats">
<div><span id="stat-posts" class="stat-value">0</span><span class="stat-label">Posts</span></div>
<div><span id="stat-likes" class="stat-value">0</span><span class="stat-label">Likes</span></div>
</div>
<a href="profile.html" class="btn btn-primary" style="width:100%;">Edit Profile</a>
</div>
<div class="card">
<h3 style="font-size:1rem; margin-bottom:1rem;">Trending Tags</h3>
<div class="tags">
<span class="tag">#JavaScript</span>
<span class="tag">#React</span>
<span class="tag">#WebDev</span>
<span class="tag">#CSS</span>
<span class="tag">#Learning</span>
</div>
</div>
</aside>
</main>
<script src="scripts/data.js"></script>
<script src="scripts/theme.js"></script>
<script src="scripts/utils.js"></script>
<script src="scripts/feed.js"></script>
</body>
</html>