Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #18 from georgiak/contactPage2
Contact page2
- Loading branch information
Showing
10 changed files
with
283 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
body { | ||
font-family: sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
header { | ||
position: relative; | ||
border-bottom: 10px solid #11B8FF; | ||
margin-bottom: 5px; | ||
padding: 13px 0; | ||
} | ||
|
||
h1 { | ||
|
||
text-align: center; | ||
font-size: 60px; | ||
margin-top: 50px; | ||
margin-bottom: 25px; | ||
padding: 13px 0; | ||
} | ||
|
||
p { | ||
/*float: left;*/ | ||
text-align: center; | ||
font-size: 20px; | ||
} | ||
|
||
#contacttxt{ | ||
text-align:left; | ||
align-content: center; | ||
margin:10px 0; | ||
background: rgba(red, green, blue, alpha); | ||
border-radius: 2px; | ||
font-family: 'Permanent Marker', cursive; | ||
font-size: 15px; | ||
font-weight: bold; | ||
width: 25% | ||
} | ||
|
||
|
||
.wrapper{ | ||
width:1170px; | ||
margin: auto; | ||
} | ||
|
||
#logo { | ||
position: absolute; | ||
margin-top: 0px; | ||
width: 200px; | ||
height: auto; | ||
|
||
} | ||
|
||
.nav-bar{ | ||
float:right; | ||
list-style:none; | ||
margin-top: 30px; | ||
} | ||
|
||
.nav-bar li{ | ||
display: inline-block; | ||
|
||
} | ||
|
||
.nav-bar li a{ | ||
color:#11B8FF; | ||
text-decoration: none; | ||
padding: 5px 20px; | ||
font-family:'Roboto', sans-serif; | ||
font-size: 25px; | ||
transition: 0.8s; | ||
|
||
} | ||
|
||
|
||
|
||
.nav-bar li a:hover{ | ||
background:#11B8FF; | ||
color:#333; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -52,8 +52,8 @@ header{ | ||
width: 200px; | ||
float:left; | ||
height: auto; | ||
} | ||
|
||
} | ||
|
||
.welcome-text{ | ||
position: absolute; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use strict' | ||
|
||
const Uploads = require('../modules/upload.js') | ||
|
||
describe('deleteRecord()', () => { | ||
test('the deletd file does not still exist in db', async done=>{ | ||
expect.assertions(1) | ||
const todo = await new Uploads() | ||
|
||
await expect(todo.deletedRecord('lab5')).toBeNull() | ||
done() | ||
|
||
}) | ||
}) | ||
|
||
|
||
describe('upload()', () => { | ||
test('File Name missing', async done => { | ||
expect.assertions(1) | ||
const todo = await new Uploads() | ||
await expect(todo.upload( | ||
'png','',200,'Wed 20/20/19 15:20:20','path','Userpath')).rejects.toEqual(Error('String cannot be empty.')) | ||
done() | ||
}) | ||
|
||
test('File Not bigger than a GB', async done => { | ||
expect.assertions(1) | ||
const todo = await new Uploads() | ||
await expect(todo.upload( | ||
'png','name',1073741824,'Wed 20/20/19 15:20:20', | ||
'path','Userpath')).rejects.toEqual(Error('Size cannot be equal or greater than a GB')) | ||
done() | ||
}) | ||
|
||
test('File Name string too long', async done => { | ||
expect.assertions(1) | ||
const todo = await new Uploads() | ||
await expect(todo.upload( | ||
'png','K8DbQxhva2qECr7urmCOVOayGnf6OUh2MCjYC9VaO04m9SXLui', | ||
10750,'Wed 20/20/19 15:20:20','path','Userpath')).rejects.toEqual(Error('String size too big')) | ||
done() | ||
}) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.