-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
45 lines (43 loc) · 1.3 KB
/
Copy pathtest.php
File metadata and controls
45 lines (43 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
require_once 'separator.php';
$typeList = ['diagonal', 'triangle', 'triangle_inverse', 'big_triangle', 'big_triangle_inverse', 'rounded_triangle', 'rounded_triangle_inverse', 'rounded_corner_left', 'rounded_corner_left_inverse', 'rounded_corner_right', 'rounded_corner_right_inverse', 'big_circle', 'big_circle_inverse'];
$sizeList = [ [10, 100], [3, 30] ];
$sideList = ['up', 'down'];
foreach( $typeList as $type )
{
foreach( $sizeList as $size )
{
echo '<div class="imageContainer"></div>';
echo SVGSeparator::draw( $type, 'up', 'black', $size[1], $size[0] );
echo '<div class="blackContainer">'.$type. ' up & down sides</div>';
echo SVGSeparator::draw( $type, 'down', 'black', $size[1], $size[0] );
}
}
?>
<link href="https://fonts.googleapis.com/css?family=Black+Han+Sans" rel="stylesheet">
<link href="separator.css" rel="stylesheet">
<style>
body,html{
padding:0;
margin:0;
}
.blackContainer{
font-family: 'Black Han Sans', sans-serif;
font-size:30px;
text-align:center;
background:black;
color:white;
width:100%;
display:block;
padding: 100px 0;
}
.imageContainer{
background-image:url('https://images.pexels.com/photos/370799/pexels-photo-370799.jpeg');
background-attachment: fixed;
background-position: center;
width:100%;
display:block;
height:100px;
padding: 100px 0;
}
</style>