File tree Expand file tree Collapse file tree 4 files changed +33
-1
lines changed Expand file tree Collapse file tree 4 files changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Home from '../routes/home';
8
8
import Blogs from '../routes/blogs' ;
9
9
import Blog from '../routes/blog' ;
10
10
import Contact from '../routes/contact' ;
11
+ import ContactSuccess from '../routes/contact-success' ;
11
12
12
13
export default class App extends Component {
13
14
@@ -29,6 +30,7 @@ export default class App extends Component {
29
30
< Blogs path = "/blogs/" />
30
31
< Blog path = "/blog/:name" />
31
32
< Contact path = "/contact/" />
33
+ < ContactSuccess path = "/contact/success" />
32
34
</ Router >
33
35
</ div >
34
36
</ Provider >
Original file line number Diff line number Diff line change
1
+ import { h } from 'preact' ;
2
+ import style from './style' ;
3
+
4
+ const photographs = ( props ) => {
5
+ return (
6
+ < div class = { style . pageContact } >
7
+ < h1 class = { style . pageTitle } > Thanks! I'll be in touch soon.</ h1 >
8
+ </ div >
9
+ ) ;
10
+ } ;
11
+
12
+ export default photographs ;
Original file line number Diff line number Diff line change
1
+ .pageContact {
2
+ padding : 0 5% ;
3
+ }
4
+
5
+ .pageTitle {
6
+ position : relative;
7
+ display : inline-block;
8
+ font-weight : 500 ;
9
+ }
10
+
11
+ .pageTitle : after {
12
+ position : absolute;
13
+ bottom : -5px ;
14
+ left : 0px ;
15
+ content : '' ;
16
+ width : 75% ;
17
+ border-bottom : 2px solid # FFC107 ;
18
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const photographs = (props) => {
12
12
< div > </ div >
13
13
< div > Cheers 🍻</ div >
14
14
</ p >
15
- < form name = "contact" method = "POST" data-netlify = "true" >
15
+ < form name = "contact" method = "POST" data-netlify = "true" action = "/contact/success" >
16
16
< p >
17
17
< input type = "text" name = "name" placeholder = "Name" required />
18
18
</ p >
You can’t perform that action at this time.
0 commit comments