Skip to content

Commit d5fe2c6

Browse files
authored
Merge pull request #1 from tridib2003/WIP-Exception_Handling
WIP: exception-handling.html
2 parents 249d410 + 76372b0 commit d5fe2c6

File tree

3 files changed

+120
-29
lines changed

3 files changed

+120
-29
lines changed

exception-handling.html

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
</nav>
3333

3434
<h1 class="h1-basic">Exception Handling</h1>
35-
<hr>
36-
37-
<br>
3835

3936
<div class="desc-container desc-container-center desc-std">
37+
38+
<hr>
39+
4040
<ul>
4141
<li>
4242
<p>
@@ -132,7 +132,7 @@ <h1 class="h1-basic">Exception Handling</h1>
132132
<div class="syntax-container syntax-container-center syntax-std">
133133

134134
<p style="font-weight: bold;">
135-
Syntax:
135+
General syntax:
136136
</p>
137137

138138
<xmp>
@@ -168,20 +168,55 @@ <h1 class="h1-basic">Exception Handling</h1>
168168

169169
<br><br><br>
170170

171-
<!-- <div class="btn-container-center">
172-
<button onclick="window.location.href='/';" class="btn-link btn-link-color1">
173-
View code sample
174-
</button>
175-
</div> -->
176-
177-
<div class="btn-container-center">
178-
<a class="btn-link btn-link-color1" href="/exception-handling.html">
179-
<i class="fa fa-github" style="font-size: 20px; color: whitesmoke;">
180-
<p style="display: inline; margin-left: 0.5rem;">
181-
View sample code
182-
</p>
183-
</i>
184-
</a>
171+
<div class="table-container table-container-center">
172+
173+
<table class="table-code-links">
174+
175+
<!-- <tr>
176+
<th>Title</th>
177+
<th>Desc</th>
178+
</tr> -->
179+
180+
<tr>
181+
<td>
182+
Handling exceptions using try-catch mechanism
183+
</td>
184+
<td>
185+
<div class="btn-container-center">
186+
<a class="btn-link btn-link-color1"
187+
href="https://github.com/tridib2003/levelupjava-wiki/blob/main/Exception%20Handling/HandlingException1.java"
188+
target="_blank">
189+
<i class="fa fa-github" style="font-size: 18px; color: whitesmoke;">
190+
<p style="display: inline; margin-left: 0.4rem;">
191+
View code
192+
</p>
193+
</i>
194+
</a>
195+
</div>
196+
</td>
197+
</tr>
198+
199+
<tr>
200+
<td>
201+
Handling exceptions and printing exception description
202+
</td>
203+
<td>
204+
<div class="btn-container-center">
205+
<a class="btn-link btn-link-color1"
206+
href="https://github.com/tridib2003/levelupjava-wiki/blob/main/Exception%20Handling/HandlingException2.java"
207+
target="_blank">
208+
<i class="fa fa-github" style="font-size: 18px; color: whitesmoke;">
209+
<p style="display: inline; margin-left: 0.4rem;">
210+
View code
211+
</p>
212+
</i>
213+
</a>
214+
</div>
215+
</td>
216+
</tr>
217+
218+
</table>
219+
185220
</div>
186221

187222
<br><br><br>

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ <h2 class="h2-basic">
5656

5757
<footer class="footer">
5858
<p>
59-
Got feedbacks ? <i class="fa fa-envelope" aria-hidden="true"></i> tridibsamanta2010@gmail.com
59+
Got feedbacks ? <i class="fa fa-envelope" aria-hidden="true"></i>
60+
<a style="color: whitesmoke;" href="mailto:tridibsamanta2010@gmail.com">Drop a mail</a>
6061
</p>
6162
</footer>
6263

styles.css

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Author: @tridib2003
3+
*/
4+
15
/********** imports **********/
26

37
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
@@ -135,7 +139,7 @@ body {
135139
.syntax-std {
136140
padding: 0.5rem 1rem;
137141
border-left: 6px solid teal;
138-
background-color: var(--secondary-surface-color);
142+
background-color: #F5F5F4;
139143
border-radius: 2rem;
140144
}
141145

@@ -207,6 +211,57 @@ body {
207211

208212
/*************************/
209213

214+
/********** tables **********/
215+
216+
.table-container {
217+
padding-left: 1rem;
218+
padding-right: 1rem;
219+
}
220+
221+
.table-container-center {
222+
max-width: 800px;
223+
margin: auto;
224+
}
225+
226+
.table-code-links {
227+
border-collapse: collapse;
228+
width: 100%;
229+
}
230+
231+
.table-code-links th {
232+
color: var(--secondary-surface-color);
233+
background-color: var(--primary-header-color);
234+
border-bottom: solid;
235+
border-width: 1px;
236+
border-color: var(--primary-header-color);
237+
padding: 1.5rem;
238+
text-align: center;
239+
text-decoration: underline;
240+
font-size: large;
241+
}
242+
243+
.table-code-links td {
244+
color: var(--primary-typo-color);
245+
border-bottom: dashed;
246+
border-width: 1px;
247+
border-color: var(--primary-header-color);
248+
padding: 1rem;
249+
}
250+
251+
.table-code-links td:nth-child(1) {
252+
text-align: center;
253+
}
254+
255+
/* .table-code-links tr:nth-child(even) {
256+
background-color: #F0FDFA;
257+
} */
258+
259+
/* .table-code-links tr:hover {
260+
background-color:#F3F4F6;
261+
} */
262+
263+
/*************************/
264+
210265
/********** buttons **********/
211266

212267
.btn-container-center {
@@ -240,26 +295,26 @@ body {
240295
}
241296

242297
.btn-link {
243-
color: white;
298+
color: whitesmoke;
244299
border: none;
245300
border-radius: 2rem;
246-
padding: 1rem 1.5rem;
301+
padding: 0.5rem 1rem;
247302
text-align: center;
248303
text-decoration: none;
249-
font-size: 1rem;
250-
font-weight: normal;
304+
/* font-size: 1rem; */
305+
/* font-weight: normal; */
251306
margin: auto;
252307
cursor: pointer;
253308
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
254309
display: inline-block;
255-
transition: 1s;
310+
transition: 0.5s;
256311
}
257312

258313
.btn-link:hover {
259-
background-color:#FB923C;
314+
background-color: var(--primary-header-color);
260315
color: white;
261316
opacity: 80%;
262-
transform: scale(1);
317+
transform: scale(1.1);
263318
transition: all 0.3s ease-in-out 0.2s;
264319
}
265320

@@ -324,7 +379,7 @@ body {
324379
}
325380

326381
::-webkit-scrollbar-thumb:hover {
327-
background: mediumaquamarine;
382+
background: rgb(0, 175, 175);
328383
}
329384

330-
/*************************/
385+
/*************************/

0 commit comments

Comments
 (0)