| 1 |
<?php |
| 2 |
/** |
| 3 |
* Staff onboard page template |
| 4 |
* |
| 5 |
* @package Timetics |
| 6 |
*/ |
| 7 |
|
| 8 |
$user = wp_get_current_user(); |
| 9 |
$integrations = timetics_get_staff_integrations( $user->ID ); |
| 10 |
?> |
| 11 |
|
| 12 |
<!DOCTYPE html> |
| 13 |
<html lang="en"> |
| 14 |
<head> |
| 15 |
<meta charset="UTF-8" /> |
| 16 |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 17 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 18 |
<title><?php esc_html_e( 'Staff onboard', 'timetics' ); ?></title> |
| 19 |
<link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 20 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 21 |
<link |
| 22 |
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" |
| 23 |
rel="stylesheet" |
| 24 |
/> |
| 25 |
</head> |
| 26 |
<style> |
| 27 |
body { |
| 28 |
box-sizing: border-box; |
| 29 |
background-color: #f4f5f7; |
| 30 |
font-family: 'Poppins', sans-serif; |
| 31 |
font-weight: 400; |
| 32 |
} |
| 33 |
ul { |
| 34 |
list-style: none; |
| 35 |
padding: 0; |
| 36 |
margin: 0; |
| 37 |
} |
| 38 |
h2, |
| 39 |
h3, |
| 40 |
h4 { |
| 41 |
margin: 0; |
| 42 |
font-weight: 500; |
| 43 |
} |
| 44 |
p { |
| 45 |
margin: 0; |
| 46 |
color: #00000073; |
| 47 |
} |
| 48 |
|
| 49 |
header { |
| 50 |
margin-bottom: 30px; |
| 51 |
} |
| 52 |
|
| 53 |
.onboard-wraper { |
| 54 |
height: 100vh; |
| 55 |
display: flex; |
| 56 |
align-items: center; |
| 57 |
justify-content: center; |
| 58 |
} |
| 59 |
.template-container { |
| 60 |
max-width: 690px; |
| 61 |
background-color: #ffffff; |
| 62 |
border-radius: 10px; |
| 63 |
padding: 30px 40px; |
| 64 |
margin: 0 auto; |
| 65 |
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; |
| 66 |
} |
| 67 |
.single-list { |
| 68 |
border-bottom: 1px solid #f0f0f0; |
| 69 |
margin-bottom: 20px; |
| 70 |
} |
| 71 |
.single-list:last-child { |
| 72 |
border-bottom: none; |
| 73 |
margin-bottom: 0; |
| 74 |
} |
| 75 |
.single-item { |
| 76 |
display: flex; |
| 77 |
justify-content: space-between; |
| 78 |
align-items: center; |
| 79 |
gap: 20px; |
| 80 |
flex-wrap: wrap; |
| 81 |
margin-bottom: 20px; |
| 82 |
} |
| 83 |
|
| 84 |
.integration-logo { |
| 85 |
width: 54px; |
| 86 |
height: 54px; |
| 87 |
border-radius: 50%; |
| 88 |
display: flex; |
| 89 |
align-items: center; |
| 90 |
justify-content: center; |
| 91 |
background-color: #edf4ff; |
| 92 |
} |
| 93 |
.connect-btn { |
| 94 |
background-color: #1890ff; |
| 95 |
border: none; |
| 96 |
padding: 10px 18px; |
| 97 |
border-radius: 5px; |
| 98 |
color: #fff; |
| 99 |
cursor: pointer; |
| 100 |
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); |
| 101 |
line-height: 1; |
| 102 |
text-decoration: none; |
| 103 |
font-size: 14px; |
| 104 |
} |
| 105 |
.connect-btn:hover { |
| 106 |
background: #40a9ff; |
| 107 |
} |
| 108 |
.skip-wrapper{ |
| 109 |
text-align: right; |
| 110 |
} |
| 111 |
@media screen and (max-width: 767px) { |
| 112 |
.template-container { |
| 113 |
padding: 15px 25px; |
| 114 |
} |
| 115 |
.single-item { |
| 116 |
flex-direction: column; |
| 117 |
align-items: flex-start; |
| 118 |
} |
| 119 |
} |
| 120 |
</style> |
| 121 |
<body> |
| 122 |
<div class="onboard-wraper"> |
| 123 |
<div class="template-container"> |
| 124 |
<header><h2><?php esc_html_e( 'Integrations', 'timetics' ); ?></h2></header> |
| 125 |
<main class="main-wrapper"> |
| 126 |
<ul> |
| 127 |
<?php foreach( $integrations as $integration ): ?> |
| 128 |
<li class="single-list"> |
| 129 |
<div class="single-item"> |
| 130 |
<div class="integration-logo"> |
| 131 |
<svg |
| 132 |
width="20" |
| 133 |
height="20" |
| 134 |
viewBox="0 0 20 20" |
| 135 |
fill="none" |
| 136 |
xmlns="http://www.w3.org/2000/svg" |
| 137 |
> |
| 138 |
<path |
| 139 |
d="M11.1816 10.4049L12.9362 12.4103L15.2955 13.9181L15.7068 10.4172L15.2955 6.99451L12.8909 8.31916L11.1816 10.4049Z" |
| 140 |
fill="#00832D" |
| 141 |
/> |
| 142 |
<path |
| 143 |
d="M1 13.5931V16.5756C1 17.2575 1.55228 17.8097 2.23414 17.8097H5.21666L5.83373 15.5554L5.21666 13.5931L3.17004 12.976L1 13.5931Z" |
| 144 |
fill="#0066DA" |
| 145 |
/> |
| 146 |
<path |
| 147 |
d="M5.21666 3L1 7.21666L3.17004 7.83373L5.21666 7.21666L5.82345 5.28111L5.21666 3Z" |
| 148 |
fill="#E94235" |
| 149 |
/> |
| 150 |
<path |
| 151 |
d="M5.21666 7.21666H1V13.5931H5.21666V7.21666Z" |
| 152 |
fill="#2684FC" |
| 153 |
/> |
| 154 |
<path |
| 155 |
d="M17.9902 4.78541L15.2956 6.99453V13.9181L18.0025 16.1375C18.4077 16.4542 19.0001 16.1652 19.0001 15.65V5.26261C19.0001 4.74118 18.3944 4.45527 17.9902 4.78541ZM11.1818 10.4049V13.5931H5.2168V17.8097H14.0615C14.7434 17.8097 15.2956 17.2575 15.2956 16.5756V13.9181L11.1818 10.4049Z" |
| 156 |
fill="#00AC47" |
| 157 |
/> |
| 158 |
<path |
| 159 |
d="M14.0615 3H5.2168V7.21666H11.1818V10.4049L15.2956 6.99657V4.23414C15.2956 3.55228 14.7434 3 14.0615 3Z" |
| 160 |
fill="#FFBA00" |
| 161 |
/> |
| 162 |
</svg> |
| 163 |
</div> |
| 164 |
<div class="content"> |
| 165 |
<h3><?php echo esc_html( $integration['name'] ); ?></h3> |
| 166 |
<p> |
| 167 |
<?php echo esc_html( $integration['description'] ); ?> |
| 168 |
</p> |
| 169 |
</div> |
| 170 |
<a class="connect-btn" href="<?php echo esc_url( $integration['auth_url'] ); ?>"><?php esc_html_e( 'Connect', 'timetics' ); ?></a> |
| 171 |
</div> |
| 172 |
</li> |
| 173 |
<?php endforeach; ?> |
| 174 |
</ul> |
| 175 |
<div class="skip-wrapper"> |
| 176 |
<a class="skip-button" href="<?php echo esc_url( admin_url('admin.php?page=timetics#/my-profile') ); ?>"><?php esc_html_e( 'Skip', 'timetics' ); ?></a> |
| 177 |
</div> |
| 178 |
</main> |
| 179 |
</div> |
| 180 |
</div> |
| 181 |
</body> |
| 182 |
</html> |
| 183 |
|