Skip to content

Commit 87c234b

Browse files
Esther WongEsther Wong
authored andcommitted
assemble sample page
1 parent 273d915 commit 87c234b

File tree

4 files changed

+56
-27
lines changed

4 files changed

+56
-27
lines changed

src/components/NavGridSquare.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<v-container class="nav__grid" fluid>
33
<v-col>
44
<v-row align="center" justify="center">
5-
<v-card v-for="item in gridItems" :href="item.link" width="15%" height="15%" class="ma-3">
5+
<v-card v-for="item in gridItems" :href="item.link" width="200px" height="200px" class="ma-3">
66
<v-img
77
:src="item.src"
88
class="white--text"

src/components/Sidebar.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@
7777
<v-list-item-title>{{ item.title }}</v-list-item-title>
7878
</template>
7979

80-
<!-- <router-link :to="child.route" class="route"> -->
81-
<v-list-item v-for="child in item.children">
80+
<div v-for="child in item.children">
81+
<router-link :to="child.route" class="route">
82+
<v-list-item v-ripple>
8283
<v-list-item-title>{{ child.title }}</v-list-item-title>
8384
</v-list-item>
84-
<!-- </router-link> -->
85+
</router-link>
86+
</div>
8587

8688
</v-list-group>
8789

@@ -162,7 +164,8 @@ export default {
162164
icon: 'mdi-information',
163165
route: '/about',
164166
children: [
165-
{ title: 'History', route: '/', icon: '' },
167+
{ title: 'Who are we?', route: '/about', icon: '' },
168+
166169
{ title: 'FAQ', route: '/about', icon: '' },
167170
{ title: 'Constitution', route: '/', icon: '' },
168171
],

src/views/About.vue

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,41 @@
66

77

88

9-
<v-app-bar app dark>
10-
<v-app-bar-nav-icon class="ma-2" @click.stop="drawer = !drawer"> </v-app-bar-nav-icon>
9+
<v-app-bar app dark>
10+
<v-app-bar-nav-icon class="ma-2" @click.stop="drawer = !drawer"> </v-app-bar-nav-icon>
11+
<div class="flex-grow-1"></div>
12+
13+
<router-link to="/"
14+
><v-container
15+
class="fill-height"
16+
fluid
17+
style="max-height: 64px; max-width:100px"
18+
>
19+
<v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" />
20+
</v-container>
21+
</router-link>
22+
<div class="flex-grow-1"></div>
23+
<LoginForm align="right"/>
24+
</v-app-bar>
25+
26+
<div class="content">
1127

12-
<router-link to="/"
13-
><v-container
14-
class="fill-height"
15-
fluid
16-
style="max-height: 64px; max-width:100px"
17-
>
18-
<v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" /> </v-container
19-
></router-link>
20-
21-
22-
23-
24-
25-
<LoginForm align="right" />
26-
</v-app-bar>
28+
<NavGrid id='content-start' :gridItems="gridItems"></NavGrid>
2729

30+
<h1 class="mt-12"> #!/ABOUT </h1>
31+
<p>
32+
CSESoc is the principal representative body for computing students on campus. We are one of the biggest and most active societies at UNSW, catering to over 3500 CSE students spanning across degrees in Computer Science, Software Engineering, Bioinformatics and Computer Engineering. We are here to fulfil the needs of computing students and also promote computing in all its forms through weekly social and technical events throughout the year.
2833

34+
We are a society for the students, by the students. As a CSE student, here's how we can help you:
2935

30-
<NavGrid id='content-start' :gridItems="gridItems"></NavGrid>
31-
<ListComponent/>
36+
We organise and run weekly events, including Trivia, Movie, Poker, and Boardgame Nights, LAN Parties, Workshops, Code Jams, Tech Talks, and our famous Free Weekly BBQ.
37+
We run a highly successful First Year Camp, offering new CSE students (both undergraduate and postgraduate) a weekend of Trivia, Dance Parties, Scavenger Hunts and general frivolity with the chance to meet and mingle with other newcomers.
38+
The society is entirely run by CSE student volunteers. All CSE Students are automatically members, and there are plenty of opportunities to get involved with running events and activities.
39+
We cater to new and returning students alike, with a mix of events designed to have something for everyone. Events are open to all members and nearly all are free to attend.
40+
We're as passionate about computing as you are; we provide technical events to teach you new skills, as well as a fortnightly magazine to keep you updated on what's new and interesting within the university, school and industry.
41+
Most of all, we're here to help you settle in and have a great time at UNSW!
42+
</p>
43+
</div>
3244
<Footer/>
3345
</div>
3446
</template>
@@ -38,6 +50,7 @@ import NavGrid from '@/components/NavGrid';
3850
import ListComponent from '@/components/ListComponent';
3951
import Footer from '@/components/Footer';
4052
import Sidebar from '@/components/Sidebar.vue';
53+
import LoginForm from '@/components/LoginForm';
4154
4255
4356
export default {
@@ -53,7 +66,8 @@ export default {
5366
NavGrid,
5467
ListComponent,
5568
Footer,
56-
Sidebar
69+
Sidebar,
70+
LoginForm
5771
},
5872
5973
mounted() {
@@ -111,4 +125,8 @@ export default {
111125
background: #3a76f8;
112126
color: #fff;
113127
}
128+
129+
.content {
130+
padding: 2vw 15vw 5vw 15vw;
131+
}
114132
</style>

src/views/Home.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,23 @@
1010
<!-- transparent + no logo until scroll point ??-->
1111
<v-app-bar app dark>
1212
<v-app-bar-nav-icon class="ma-2" @click.stop="drawer = !drawer"> </v-app-bar-nav-icon>
13+
<div class="flex-grow-1"></div>
1314

1415
<router-link to="/"
1516
><v-container
1617
class="fill-height"
1718
fluid
1819
style="max-height: 64px; max-width:100px"
1920
>
20-
<!-- <v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" /> -->
21+
<v-img class="ma-8" src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" />
2122
</v-container>
2223
</router-link>
2324
<div class="flex-grow-1"></div>
2425
<LoginForm align="right"/>
2526
</v-app-bar>
2627

2728

29+
<!-- make header a seperate component! -->
2830
<header id="showcase">
2931
<img src="https://github.com/csesoc/csesoc.unsw.edu.au/blob/frontendCombined/src/assets/csesoclogobluewhite.png?raw=true" />
3032
<a href="#" v-ripple class="button"> Join on spArc </a>
@@ -57,8 +59,10 @@
5759
<Slider :items="items" class="my-10"/>
5860

5961
<Events/>
60-
<h1> #!/RESOURCES </h1>
62+
<h1 class="ml-12 mt-12"> #!/RESOURCES </h1>
63+
<div class="square">
6164
<NavGrid id='content-start' :gridItems="gridItems"></NavGrid>
65+
</div>
6266
<Footer/>
6367
</div>
6468
</template>
@@ -159,4 +163,8 @@ export default {
159163
background: rgb(32,62,207);
160164
color: #fff;
161165
}
166+
167+
.square {
168+
padding: 10px 300px 50px 300px;
169+
}
162170
</style>

0 commit comments

Comments
 (0)