-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEvents.vue
More file actions
88 lines (77 loc) · 1.97 KB
/
Events.vue
File metadata and controls
88 lines (77 loc) · 1.97 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
<template>
<aside aria-label="Devs@RTP Events" class="events">
<h2 class="events-header">Join the Next Devs@RTP Event</h2>
<p class="text">Attend one of our events to meet the group members and make new friends</p>
<img class="illustration" src="~/assets/imgs/GroupWithDog.svg" alt="People talking in a group">
<div>
<a class="events-link" href="https://www.meetup.com/DevsRTP/" target="_blank" rel="noopener noreferrer">Check Out Our Meetup Events</a>
</div>
</aside>
</template>
<script>
export default {
name: 'Events'
}
</script>
<style lang='scss'>
@import "~assets/css/main.scss";
.events{
max-width: 80vw;
text-align: center;
margin: 0 auto 2em;
}
.events-header{
font-family: "Trocchi", serif;
}
.events-img{
width: 80vw;
}
// animation is slow so you can see it, but probably should be .25 or .15
$thetransition: all .5s cubic-bezier(1,.25,0,.75) 0s;
.events-link{
margin: 1em auto;
color: black;
text-decoration: none;
position: relative;
&:before, &:after {
content: "";
position: absolute;
width: 100%;
height: 1px;
bottom: 0;
left: 0;
-webkit-transition: $thetransition;
transition: $thetransition;
}
&:before {
background-color: #17144B;
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
&:after {
background-color: $pink;
-webkit-transform: scaleX(0);
transform: scaleX(0);
visibility: hidden;
}
&:focus {
outline: none;
border: 1px solid #17144B;
border-bottom: none;
border-radius: 3px;
padding: 1px;
}
&:hover, &:focus {
color: #17144B;
&:before {
-webkit-transform: scaleX(0);
transform: scaleX(0);
}
&:after {
visibility: visible;
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
}
}
</style>