Skip to content

Commit 068646f

Browse files
author
Elizabeth Zhong
committed
fixed merge conflict
2 parents 7f9b0bd + 723f4ae commit 068646f

File tree

2 files changed

+254
-0
lines changed

2 files changed

+254
-0
lines changed

src/views/ContentPage.vue

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<template>
2+
3+
<div>
4+
5+
<Sidebar :drawer="drawer" />
6+
7+
8+
9+
10+
11+
<v-app-bar app dark>
12+
<v-app-bar-nav-icon class="ma-2" @click.stop="drawer = !drawer"> </v-app-bar-nav-icon>
13+
<div class="flex-grow-1"></div>
14+
15+
<router-link to="/"
16+
><v-container
17+
class="fill-height"
18+
fluid
19+
style="max-height: 64px; max-width:100px"
20+
>
21+
<v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" />
22+
</v-container>
23+
</router-link>
24+
<div class="flex-grow-1"></div>
25+
<LoginForm align="right"/>
26+
</v-app-bar>
27+
28+
<v-container class="pa-md-10 mx-lg-auto">
29+
<!-- maybe a loop to print out path to home-->
30+
<div class="links"> <span class="underline">home</span> /
31+
<span class="underline">{{nav}}</span> </div>
32+
<v-flex xs12>
33+
34+
35+
<h1> #!/{{header}} </h1>
36+
</v-flex>
37+
</v-container>
38+
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s" alt="sample"
39+
height = "350px"
40+
width=100%
41+
object-fit= contain>
42+
43+
44+
<v-container class="pa-md-10 mx-lg-auto">
45+
<p> {{text}} </p>
46+
</v-container>
47+
</div>
48+
</template>
49+
50+
<script>
51+
export default {
52+
name: 'TextPost',
53+
el: '#nav',
54+
data() {
55+
const title = 'Header';
56+
return {
57+
nav: title.toLowerCase(),
58+
header: title.toUpperCase(),
59+
// new lines need to be manually inserted so we need to parse them from the text
60+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
61+
items: [
62+
{ label: 'edwe', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
63+
{ label: 'wedfw', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
64+
{ label: 'wefwef', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
65+
],
66+
};
67+
},
68+
};
69+
</script>
70+
71+
<style scoped>
72+
@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap');
73+
h1 {
74+
font-size:48px;
75+
font-weight: normal;
76+
}
77+
body {
78+
font-family: 'Quicksand', sans-serif;
79+
text-align: left;
80+
}
81+
p {
82+
font-size:14px;
83+
font-weight: 300;
84+
-webkit-font-smoothing: subpixel-antialiased;
85+
}
86+
p span {
87+
font-size:16px;
88+
font-style: italic;
89+
display:inline-block;
90+
}
91+
links {
92+
font-size: 20px;
93+
}
94+
.underline {
95+
border-bottom: 1px solid grey;
96+
}
97+
/* grid */
98+
.nav__grid{
99+
display: flex;
100+
flex-direction: row;
101+
flex-wrap: wrap;
102+
padding-bottom: 2%;
103+
margin-left: 5%;
104+
margin-right: 5%;
105+
position: relative;
106+
}
107+
.grid{
108+
width: calc(80%/3);
109+
height: 10em;
110+
text-decoration:none;
111+
margin: 20px;
112+
box-shadow: 0 1px 2px rgba(0,0,0,.1);
113+
transition: all 0.3s ease;
114+
flex: 0 0 auto;
115+
}
116+
.grid:hover{
117+
box-shadow: 0 5px 10px #777;
118+
transition: all 0.4s ease;
119+
}
120+
.description{
121+
padding: 10%;
122+
text-align: center;
123+
font-weight: bold;
124+
color: #f7f8f9;
125+
font-size: 160%;
126+
}
127+
</style>

src/views/ResourcesPage.vue

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<template>
2+
3+
<div>
4+
5+
<Sidebar :drawer="drawer" />
6+
7+
8+
9+
10+
11+
<v-app-bar app dark>
12+
<v-app-bar-nav-icon class="ma-2" @click.stop="drawer = !drawer"> </v-app-bar-nav-icon>
13+
<div class="flex-grow-1"></div>
14+
15+
<router-link to="/"
16+
><v-container
17+
class="fill-height"
18+
fluid
19+
style="max-height: 64px; max-width:100px"
20+
>
21+
<v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" />
22+
</v-container>
23+
</router-link>
24+
<div class="flex-grow-1"></div>
25+
<LoginForm align="right"/>
26+
</v-app-bar>
27+
28+
<v-container class="pa-md-10 mx-lg-auto">
29+
<!-- maybe a loop to print out path to home-->
30+
<div class="links"> <span class="underline">home</span> /
31+
<span class="underline">{{nav}}</span> </div>
32+
<v-flex xs12>
33+
34+
35+
<h1> #!/{{header}} </h1>
36+
</v-flex>
37+
</v-container>
38+
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s" alt="sample"
39+
height = "350px"
40+
width=100%
41+
object-fit= contain>
42+
43+
44+
<v-container class="pa-md-10 mx-lg-auto">
45+
<p> {{text}} </p>
46+
</v-container>
47+
</div>
48+
</template>
49+
50+
<script>
51+
export default {
52+
name: 'TextPost',
53+
el: '#nav',
54+
data() {
55+
const title = 'Header';
56+
return {
57+
nav: title.toLowerCase(),
58+
header: title.toUpperCase(),
59+
// new lines need to be manually inserted so we need to parse them from the text
60+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
61+
items: [
62+
{ label: 'edwe', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
63+
{ label: 'wedfw', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
64+
{ label: 'wefwef', img: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR69owPqAwr0yduD4SOVPPo45iZw6fyZdLt6Zk7vbCI-ws04MiZ&s', link: '' },
65+
],
66+
};
67+
},
68+
};
69+
</script>
70+
71+
<style scoped>
72+
@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap');
73+
h1 {
74+
font-size:48px;
75+
font-weight: normal;
76+
}
77+
body {
78+
font-family: 'Quicksand', sans-serif;
79+
text-align: left;
80+
}
81+
p {
82+
font-size:14px;
83+
font-weight: 300;
84+
-webkit-font-smoothing: subpixel-antialiased;
85+
}
86+
p span {
87+
font-size:16px;
88+
font-style: italic;
89+
display:inline-block;
90+
}
91+
links {
92+
font-size: 20px;
93+
}
94+
.underline {
95+
border-bottom: 1px solid grey;
96+
}
97+
/* grid */
98+
.nav__grid{
99+
display: flex;
100+
flex-direction: row;
101+
flex-wrap: wrap;
102+
padding-bottom: 2%;
103+
margin-left: 5%;
104+
margin-right: 5%;
105+
position: relative;
106+
}
107+
.grid{
108+
width: calc(80%/3);
109+
height: 10em;
110+
text-decoration:none;
111+
margin: 20px;
112+
box-shadow: 0 1px 2px rgba(0,0,0,.1);
113+
transition: all 0.3s ease;
114+
flex: 0 0 auto;
115+
}
116+
.grid:hover{
117+
box-shadow: 0 5px 10px #777;
118+
transition: all 0.4s ease;
119+
}
120+
.description{
121+
padding: 10%;
122+
text-align: center;
123+
font-weight: bold;
124+
color: #f7f8f9;
125+
font-size: 160%;
126+
}
127+
</style>

0 commit comments

Comments
 (0)