Skip to content

Commit cd5a2a4

Browse files
committed
Fixed TabLayout.
- Added SiteMap.
1 parent 1daa70c commit cd5a2a4

File tree

7 files changed

+54
-40
lines changed

7 files changed

+54
-40
lines changed

netlify.toml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
to = "https://api.codefest.tech/:splat"
55
status = 200
66

7+
[[redirects]]
8+
# For robots.txt
9+
from = "/robots.txt"
10+
to = "/assets/robots.txt"
11+
status = 200
12+
713
[[redirects]]
814
# For our VueJs SPA.
915
from = "/*"

src/assets/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
User-agent: *
22
Disallow:
3+
4+
Sitemap: https://codefest.tech/assets/sitemap.xml

src/assets/sitemap.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://codefest.tech</loc>
5+
<changefreq>weekly</changefreq>
6+
</url>
7+
<url>
8+
<loc>https://codefest.tech/haxplore</loc>
9+
<changefreq>weekly</changefreq>
10+
</url>
11+
<url>
12+
<loc>https://codefest.tech/login</loc>
13+
<changefreq>weekly</changefreq>
14+
</url>
15+
<url>
16+
<loc>https://codefest.tech/events</loc>
17+
<changefreq>weekly</changefreq>
18+
</url>
19+
</urlset>

src/components/StandardEventDetails.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div :class="$style.tabContainer" slot="faq">
3333
<h4 :class="$style.tabTitle">FAQ</h4>
3434
<hr :class="$style.leftHr">
35-
<p :class="$style.text" :inner-html.prop="event.faqIntro | anchor">}</p>
35+
<!-- <p :class="$style.text" :inner-html.prop="event.faqIntro | anchor">}</p> -->
3636
<FAQ :faqItems="event.faq"/>
3737
</div>
3838
</TabLayout>
@@ -187,7 +187,6 @@ export default {
187187
188188
&:before {
189189
content: ' ';
190-
display: block;
191190
}
192191
}
193192
}

src/components/layouts/TabLayout.vue

+23-35
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
},
5252
tabStyle: function(index) {
5353
return {
54-
left: `${index * 95}px`
54+
left: `${index * 120}px`
5555
};
5656
},
5757
alignTab: function(index) {
@@ -68,7 +68,7 @@ export default {
6868
@require '~@styles/theme';
6969
@require '~@styles/anims';
7070
71-
$tab-width = 120px;
71+
$tab-width = 150px;
7272
$tab-height = 30px;
7373
7474
.tabbedWindow {
@@ -94,54 +94,42 @@ $tab-height = 30px;
9494
z-index: 20;
9595
cursor: pointer;
9696
background: $limeade;
97-
font: 12pt 'Roboto Slab';
97+
font-family: 'Roboto Slab';
9898
font-weight: 500;
9999
clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
100100
height: $tab-height;
101-
position: absolute;
102-
top: 0;
103-
104-
.tabTitle {
105-
z-index: 20;
106-
cursor: pointer;
107-
background: $limeade;
108-
font-family: 'Roboto Slab';
109-
font-weight: 500;
110-
clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
111-
height: $tab-height;
112-
line-height: 30px;
113-
width: $tab-width;
114-
text-align: center;
115-
color: $black;
116-
}
101+
line-height: 30px;
102+
width: $tab-width;
103+
text-align: center;
104+
color: $black;
117105
}
118106
119-
.active {
107+
&.active {
120108
.tabTitle {
121109
background: $chartreuse;
122110
color: white;
123111
z-index: 25;
124112
}
125113
}
126114
}
115+
}
127116
128-
.panelsContainer {
129-
margin: 0;
130-
padding: 0;
117+
.panelsContainer {
118+
margin: 0;
119+
padding: 0;
131120
132-
.tabContent {
133-
display: none;
134-
position: relative;
135-
top: $tab-height;
136-
border: 1px solid $limeade;
137-
border-radius: 0 0 10px 10px;
138-
box-shadow: inset 0px -2px 15px $chartreuse;
139-
background: $cod-gray;
140-
}
121+
.tabContent {
122+
display: none;
123+
position: relative;
124+
top: $tab-height;
125+
border: 1px solid $limeade;
126+
border-radius: 0 0 10px 10px;
127+
box-shadow: inset 0px -2px 15px $chartreuse;
128+
background: $cod-gray;
129+
}
141130
142-
.active .tabContent {
143-
display: block;
144-
}
131+
.active .tabContent {
132+
display: block;
145133
}
146134
}
147135
}

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Vue.use(vueMq, {
5656
xs: 575,
5757
sm: 767,
5858
md: 991,
59-
lg: 1200,
59+
lg: 1367,
6060
xl: 1920,
6161
xxl: Infinity
6262
}

src/plugins/filters.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import anchorme from "anchorme";
33
export default {
44
install(Vue) {
55
Vue.filter("anchor", value => {
6-
return anchorme(value, {});
6+
return anchorme(value);
77
});
88
}
99
};
10-
export const version = "1.0.0";
10+
export const version = "1.0.0";

0 commit comments

Comments
 (0)