Skip to content

Commit b5b322d

Browse files
Ishan-Sainiakshatagarwl
authored andcommitted
Add some style changes in nav-links and social-links (JIITODC#5)
1 parent 95da4f8 commit b5b322d

File tree

6 files changed

+71
-28
lines changed

6 files changed

+71
-28
lines changed

package-lock.json

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dependencies": {
1515
"compression": "^1.7.1",
1616
"polka": "next",
17-
"sirv": "^1.0.0"
17+
"sirv": "^1.0.0",
18+
"svelte-awesome": "^2.3.0"
1819
},
1920
"devDependencies": {
2021
"npm-run-all": "^4.1.5",

src/components/Nav.svelte

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script>
2-
export let segment;
32
</script>
43

54
<style>
@@ -12,8 +11,9 @@
1211
}
1312
1413
.jodc-mascot-img {
15-
height: 100px;
14+
height: 90px;
1615
width: auto;
16+
margin-left: 40px;
1717
}
1818
1919
ul {
@@ -33,19 +33,44 @@
3333
float: left;
3434
}
3535
36+
li:not(:last-child){
37+
margin-right: 50px;
38+
}
39+
3640
a {
3741
text-decoration: none;
38-
padding: .5em 0.5em;
42+
padding: .1em 0.25em;
3943
display: block;
4044
text-transform: uppercase;
41-
font-size: 2rem;
45+
font-size: 1.6rem;
4246
transition: all .5s;
47+
border-radius: 3px;
48+
position: relative;
49+
border-bottom: 2px solid #fff;
50+
}
51+
52+
a::after{
53+
content: "";
54+
position: absolute;
55+
bottom: 0;
56+
left: 0;
57+
width: 100%;
58+
z-index: -1;
59+
height: 0;
60+
opacity: 0;
61+
transition: all .6s;
62+
background-color: #fff;
63+
}
64+
65+
a:hover::after{
66+
height: 100%;
67+
opacity: 1;
4368
}
4469
45-
a:hover {
46-
background-color: white;
47-
color: black;
70+
a:hover{
71+
color: #000;
4872
}
73+
4974
</style>
5075

5176
<nav>

src/node_modules/@sapper/internal/manifest-client.mjs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node_modules/@sapper/service-worker.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/index.svelte

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<script>
2+
import Icon from 'svelte-awesome/components/Icon.svelte';
3+
import {telegram, twitter, facebook, github } from 'svelte-awesome/icons';
4+
</script>
5+
16
<style>
27
:global(body) {
38
background-color: black;
@@ -21,15 +26,18 @@
2126
}
2227
2328
#social {
24-
margin-top: 20px;
29+
margin-top: 150px;
2530
display: flex;
26-
flex-direction: column;
31+
flex-direction: row;
2732
flex-grow: 0;
28-
width: 100px;
33+
justify-content: center;
34+
width: 100%;
35+
justify-content: space-around;
2936
}
3037
38+
3139
a {
32-
font-size: 1.1rem;
40+
font-size: 1.3rem;
3341
/* 1.1 * 16px */
3442
text-decoration: none;
3543
color: #aaa;
@@ -59,7 +67,7 @@
5967
</style>
6068

6169
<svelte:head>
62-
<title>JODC</title>
70+
<title>JODC | JIIT Open-Source Developers Circle</title>
6371
</svelte:head>
6472

6573
<figure>
@@ -85,8 +93,8 @@
8593

8694
<!-- TODO(humancalico) add as a list? -->
8795
<div id="social">
88-
<a href="https://github.com/jiitodc">GITHUB</a>
89-
<a href="https://t.me/jiitodc">TELEGRAM</a>
90-
<a href="https://twitter.com/jiitodc">TWITTER</a>
91-
<a href="https://www.facebook.com/groups/jiitodc">FACEBOOK</a>
96+
<a href="https://github.com/jiitodc"><Icon style="margin-right: 10px" data={github}/>GITHUB</a>
97+
<a href="https://t.me/jiitodc"><Icon style="margin-right: 10px" data={telegram}/>TELEGRAM</a>
98+
<a href="https://twitter.com/jiitodc"><Icon style="margin-right: 10px" data={twitter}/>TWITTER</a>
99+
<a href="https://www.facebook.com/groups/jiitodc"><Icon style="margin-right: 10px; font-size:40px;" data={facebook}/>FACEBOOK</a>
92100
</div>

0 commit comments

Comments
 (0)