forge
Explore
Log in

Don't you dare go Hollow

✨ add webrtc to projects

Browse files at this commit

f2c582134d4615a91ebd535288fae5ce2e73356aAhmet Kaan GümüşParent: 42d56df
  • feat
    • ✨ add webrtc to projects
Show full message
feat: ✨ add webrtc to projects
assets/main.cssmodified+38 -15
@@ -4,31 +4,42 @@
4 font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;4 font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
5 }5 }
6 6
7-.project{7+.project {
8 margin: 1%;8 margin: 1%;
9+
9 h1 {10 h1 {
10 color: azure;11 color: azure;
11 }12 }
13+
12 h3 {14 h3 {
13 margin-top: 1%;15 margin-top: 1%;
14 color: aliceblue;16 color: aliceblue;
15 }17 }
18+
16 h5 {19 h5 {
17 margin-bottom: 1%;20 margin-bottom: 1%;
18 color: antiquewhite;21 color: antiquewhite;
19 }22 }
23+
20 div {24 div {
21 margin-top: 1%;25 margin-top: 1%;
22- display:block;26+ display: block;
27+
23 @media screen {28 @media screen {
24 width: 50%;29 width: 50%;
25 }30 }
26 31
27- @media screen and (max-width:820px){32+ @media screen and (max-width:820px) {
28 width: 100%;33 width: 100%;
29 }34 }
30 }35 }
31 }36 }
37+
38+#source_link_in_project_page {
39+ text-decoration: none;
40+ color: burlywood;
41+}
42+
32 #codeberg_link_in_project_page {43 #codeberg_link_in_project_page {
33 text-decoration: none;44 text-decoration: none;
34 color: rgb(33, 133, 208, 1.0);45 color: rgb(33, 133, 208, 1.0);
@@ -45,27 +56,32 @@
45 margin: 1%;56 margin: 1%;
46 }57 }
47 58
48-.links{59+.links {
49 margin: 1%;60 margin: 1%;
61+
50 h1 {62 h1 {
51 color: azure;63 color: azure;
52 }64 }
65+
53 h3 {66 h3 {
54 margin-top: 1%;67 margin-top: 1%;
55 color: aliceblue;68 color: aliceblue;
56 }69 }
70+
57 h5 {71 h5 {
58 margin-bottom: 1%;72 margin-bottom: 1%;
59 color: antiquewhite;73 color: antiquewhite;
60 }74 }
75+
61 div {76 div {
62 margin-top: 1%;77 margin-top: 1%;
63- display:block;78+ display: block;
79+
64 @media screen {80 @media screen {
65 width: 50%;81 width: 50%;
66 }82 }
67 83
68- @media screen and (max-width:820px){84+ @media screen and (max-width:820px) {
69 width: 100%;85 width: 100%;
70 }86 }
71 }87 }
@@ -92,27 +108,32 @@
92 margin: 1%;108 margin: 1%;
93 }109 }
94 110
95-.project{111+.project {
96 margin: 1%;112 margin: 1%;
113+
97 h1 {114 h1 {
98 color: azure;115 color: azure;
99 }116 }
117+
100 h3 {118 h3 {
101 margin-top: 1%;119 margin-top: 1%;
102 color: aliceblue;120 color: aliceblue;
103 }121 }
122+
104 h5 {123 h5 {
105 margin-bottom: 1%;124 margin-bottom: 1%;
106 color: antiquewhite;125 color: antiquewhite;
107 }126 }
127+
108 div {128 div {
109 margin-top: 1%;129 margin-top: 1%;
110- display:block;130+ display: block;
131+
111 @media screen {132 @media screen {
112 width: 50%;133 width: 50%;
113 }134 }
114 135
115- @media screen and (max-width:820px){136+ @media screen and (max-width:820px) {
116 width: 100%;137 width: 100%;
117 }138 }
118 }139 }
@@ -147,15 +168,16 @@ body {
147 }168 }
148 169
149 .main_nav_btn {170 .main_nav_btn {
150- text-decoration:overline silver;171+ text-decoration: overline silver;
151 color: burlywood;172 color: burlywood;
152 text-shadow: 1px 1px orange;173 text-shadow: 1px 1px orange;
153 padding: 5%;174 padding: 5%;
175+
154 @media screen {176 @media screen {
155 font-size: xx-large;177 font-size: xx-large;
156 }178 }
157 179
158- @media screen and (max-width:820px){180+ @media screen and (max-width:820px) {
159 font-size: x-large;181 font-size: x-large;
160 }182 }
161 }183 }
@@ -165,7 +187,7 @@ body {
165 }187 }
166 188
167 .main_nav {189 .main_nav {
168- display:inline-flex;190+ display: inline-flex;
169 padding-top: 1%;191 padding-top: 1%;
170 padding-bottom: 1%;192 padding-bottom: 1%;
171 background-blend-mode: multiply;193 background-blend-mode: multiply;
@@ -177,13 +199,14 @@ body {
177 199
178 200
179 #main_about {201 #main_about {
180- display:block;202+ display: block;
181 white-space: pre-line;203 white-space: pre-line;
204+
182 @media screen {205 @media screen {
183 width: 50%;206 width: 50%;
184 }207 }
185 208
186- @media screen and (max-width:820px){209+ @media screen and (max-width:820px) {
187 width: 100%;210 width: 100%;
188 }211 }
189 }212 }
@@ -200,7 +223,7 @@ header {
200 }223 }
201 224
202 #title {225 #title {
203- color:aqua;226+ color: aqua;
204 margin-top: 1%;227 margin-top: 1%;
205 margin-bottom: 1%;228 margin-bottom: 1%;
206 }229 }
src/projects.rsmodified+25 -0
@@ -19,6 +19,7 @@ pub fn Projects() -> Element {
19 div { class: "project_link", Link {to: Route::Project { id: 8 }, class: "project_link", "Optimization Algorithms"} }19 div { class: "project_link", Link {to: Route::Project { id: 8 }, class: "project_link", "Optimization Algorithms"} }
20 div { class: "project_link", Link {to: Route::Project { id: 9 }, class: "project_link", "Forum"} }20 div { class: "project_link", Link {to: Route::Project { id: 9 }, class: "project_link", "Forum"} }
21 div { class: "project_link", Link {to: Route::Project { id: 10 }, class: "project_link", "Voice Chat"} }21 div { class: "project_link", Link {to: Route::Project { id: 10 }, class: "project_link", "Voice Chat"} }
22+ div { class: "project_link", Link {to: Route::Project { id: 11 }, class: "project_link", "WebRTC"} }
22 }23 }
23 Footer {}24 Footer {}
24 }25 }
@@ -324,6 +325,30 @@ pub fn Project(id: i32) -> Element {
324 }325 }
325 }326 }
326 }327 }
328+ 11 => {
329+ rsx! {
330+ div {
331+ class:"project",
332+ h1 {"WebRTC"}
333+ h5 {"WebRTC Voice Chat written in Rust."}
334+ Link {id: "source_link_in_project_page", to: "https://source.tahinli.com/Tahinli/rust_webrtc", "Source"}
335+ div {
336+ "
337+ In this project I wanted to implement voice chat with WebRTC.
338+ "
339+ }
340+ h3 {"Why I did this ?"}
341+ div {
342+ "I wanted to use WebRTC."
343+ }
344+
345+ h3 {"What I learned ?"}
346+ div {
347+ "Streaming with WebRTC with low level browser WASM API."
348+ }
349+ }
350+ }
351+ }
327 _ => {352 _ => {
328 rsx! {353 rsx! {
329 h1 {"You're not supposed to be here"}354 h1 {"You're not supposed to be here"}