Skip to content

Commit d48d7fd

Browse files
committed
Vue Starter SPA
1 parent 40f5399 commit d48d7fd

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed

README_DEV.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,13 @@ php artisan lang:publish
8080
# Strony błędów
8181
php artisan vendor:publish --tag=laravel-errors
8282
```
83+
84+
## Contributing example
85+
86+
```sh
87+
Fork it
88+
Create your feature branch (git checkout -b my-new-feature)
89+
Commit your changes (git commit -am 'Add some feature')
90+
Push to the branch (git push origin my-new-feature)
91+
Create new Pull Request
92+
```

resources/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ iframe {
9595

9696
::before,
9797
::after {
98+
box-sizing: border-box;
9899
content: none;
99100
}
100101

resources/js/assets/main.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,52 @@ h1 {
22
float: left;
33
width: 100%;
44
font-weight: 900;
5+
}
6+
7+
.btn {
8+
cursor: pointer;
9+
display: inline-block;
10+
font-weight: 500;
11+
line-height: 1.5;
12+
color: #212529;
13+
text-align: center;
14+
text-decoration: none;
15+
vertical-align: middle;
16+
user-select: none;
17+
background-color: transparent;
18+
border: 1px solid transparent;
19+
padding: .375rem .75rem;
20+
font-size: 1rem;
21+
border-radius: .25rem;
22+
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
23+
}
24+
25+
.btn-primary {
26+
color: #fff;
27+
background-color: var(--accent-primary); /* #C51B2A; */
28+
border-color: var(--accent-primary); /* #C51B2A; */
29+
padding: .5rem 2rem;
30+
min-width: 130px;
31+
}
32+
33+
.btn-secondary {
34+
color: #fff;
35+
background-color: #212529;
36+
border-color: #212529;
37+
padding: .5rem 2rem;
38+
min-width: 130px;
39+
}
40+
41+
.my-0 {
42+
margin-top: 0 !important;
43+
margin-bottom: 0 !important;
44+
}
45+
46+
.mx-2 {
47+
margin-right: .5rem !important;
48+
margin-left: .5rem !important;
49+
}
50+
51+
.btn:hover {
52+
filter: brightness(1.2);
553
}

resources/js/views/error/404.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<script setup>
22
import TopMenu from '@/views/page/menu/TopMenu.vue'
33
import ChangeTitle from '@/components/utils/ChangeTitle/ChangeTitle.vue'
4+
5+
function go1() {
6+
window.location.href='/'
7+
}
8+
function go2() {
9+
window.location.href='/about'
10+
}
411
</script>
512

613
<template>
@@ -9,11 +16,22 @@ import ChangeTitle from '@/components/utils/ChangeTitle/ChangeTitle.vue'
916

1017
<h1>404</h1>
1118
<h2>{{ $t('error404.title') }}</h2>
19+
20+
<div class="text-center">
21+
<button id="home-btn" class="btn btn-secondary my-0 mx-2" @click="go1">Home</button>
22+
<button id="contact-btn" class="btn btn-primary my-0 mx-2" @click="go2">About</button>
23+
</div>
1224
</template>
1325

1426
<style scoped>
1527
@import url('https://fonts.googleapis.com/css2?family=Carter+One&display=swap');
1628
29+
.text-center {
30+
display: block;
31+
height: auto;
32+
text-align: center;
33+
}
34+
1735
h1 {
1836
float: left;
1937
width: 100%;

0 commit comments

Comments
 (0)