Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RWA - L3 end #3

Open
wants to merge 1 commit into
base: L3-start
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 25 additions & 70 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,85 +1,40 @@
<script setup>
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<header>
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />

<div class="wrapper">
<HelloWorld msg="You did it!" />

<nav>
<RouterLink to="/">Home</RouterLink>
<RouterLink to="/about">About</RouterLink>
</nav>
</div>
</header>

<RouterView />
<div id="layout">
<header>
<div class="wrapper">
<nav>
<RouterLink to="/">Home</RouterLink> |
<RouterLink to="/about">About</RouterLink>
</nav>
</div>
</header>
<RouterView />
</div>
</template>

<style scoped>
header {
line-height: 1.5;
max-height: 100vh;
}

.logo {
display: block;
margin: 0 auto 2rem;
}

nav {
width: 100%;
font-size: 12px;
<style >
#layout {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
margin-top: 2rem;
}

nav a.router-link-exact-active {
color: var(--color-text);
color: #2c3e50;
}

nav a.router-link-exact-active:hover {
background-color: transparent;
nav {
padding: 30px;
}

nav a {
display: inline-block;
padding: 0 1rem;
border-left: 1px solid var(--color-border);
font-weight: bold;
color: #2c3e50;
}

nav a:first-of-type {
border: 0;
nav a.router-link-exact-active {
color: #42b983;
}

@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}

.logo {
margin: 0 2rem 0 0;
}

header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}

nav {
text-align: left;
margin-left: -1rem;
font-size: 1rem;

padding: 1rem 0;
margin-top: 1rem;
}
h2 {
font-size: 20px;
}
</style>
32 changes: 32 additions & 0 deletions src/components/EventCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script setup>
defineProps({
event: {
type: Object,
required: true,
},
})

</script>

<template>
<div class="event-card">
<!-- Display event Data -->
<h2>{{ event.title }}</h2>
<span>@{{ event.time }} on {{ event.date }}</span>
</div>
</template>

<style scoped>
.event-card {
padding: 20px;
width: 250px;
cursor: pointer;
border: 1px solid #39495c;
margin-bottom: 18px;
}

.event-card:hover {
transform: scale(1.01);
box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.2);
}
</style>
43 changes: 0 additions & 43 deletions src/components/HelloWorld.vue

This file was deleted.

86 changes: 0 additions & 86 deletions src/components/TheWelcome.vue

This file was deleted.

86 changes: 0 additions & 86 deletions src/components/WelcomeItem.vue

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/icons/IconCommunity.vue

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/icons/IconDocumentation.vue

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/icons/IconEcosystem.vue

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/icons/IconSupport.vue

This file was deleted.

Loading