Skip to content

Commit c7a7a31

Browse files
committed
some animations
1 parent e3f7361 commit c7a7a31

File tree

12 files changed

+47
-16
lines changed

12 files changed

+47
-16
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
71.6 KB
Loading

_v2/moduleart-website/src/components/App/App.scss

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "../../assets/styles/variables.scss";
2+
13
@font-face {
24
font-family: "Pacifico";
35
src: url('../../assets/fonts/Pacifico.ttf');
@@ -21,12 +23,23 @@ main {
2123
}
2224

2325
a {
24-
color: #38F;
26+
color: $link-color;
2527
text-decoration: none;
2628
position: relative;
2729
font-weight: 500;
2830

29-
&:hover {
30-
border-bottom: 2px solid #38f;
31+
&:not(.NO_ANIM)::after {
32+
content: "";
33+
position: absolute;
34+
top: calc(100% + 2px);
35+
left: 0;
36+
height: 2px;
37+
width: 0;
38+
background: $link-color;
39+
transition: width .25s;
40+
}
41+
42+
&:not(.NO_ANIM):hover::after {
43+
width: 100%;
3144
}
3245
}

_v2/moduleart-website/src/components/GlobalHeader/GlobalHeader.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
text-align: center;
33
margin: 40px 0;
44

5-
.logo {
5+
&__logo {
66
h1 {
77
font: 48px/64px "Pacifico";
88
margin: 0;
9-
color: #38F;
109
}
1110
}
1211

13-
.menu {
12+
&__menu {
1413
padding: 0;
15-
margin: 0;
14+
margin: 8px 0;
1615
display: flex;
1716
justify-content: center;
1817

_v2/moduleart-website/src/components/GlobalHeader/GlobalHeader.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<template>
22
<header class="global-header">
3-
<div class="logo">
4-
<h1>Module Art</h1>
3+
<div class="global-header__logo">
4+
<h1><a class="NO_ANIM" href="/">Module Art</a></h1>
55
</div>
66
<nav>
7-
<ul class="menu">
7+
<ul class="global-header__menu">
88
<li><a href="#">Quick Picture Viewer</a></li>
99
<li><a href="#">Qsnip</a></li>
10+
<li><a href="#">News</a></li>
11+
<li><a href="#">Contact</a></li>
1012
</ul>
1113
</nav>
1214
</header>

0 commit comments

Comments
 (0)