Skip to content

Commit 0454078

Browse files
welcome page updated
1 parent 15de3ff commit 0454078

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

public/asset/css/style.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,27 @@
22
margin:0;
33
padding: 0;
44
box-sizing: border-box;
5-
}
5+
}
6+
body {
7+
height: 100vh;
8+
background: linear-gradient(to right, white 0%, white 50%, black 0%, black 50%);
9+
}
10+
11+
h1 {
12+
color: white;
13+
white-space: nowrap;
14+
font-size: 5rem;
15+
position: absolute;
16+
top: 50%;
17+
left: 50%;
18+
transform: translate(-50%, -50%);
19+
}
20+
21+
h1::before {
22+
content: attr(data-heading);
23+
position: absolute;
24+
left: 0;
25+
color: black;
26+
width: 50%;
27+
overflow: hidden;
28+
}

resources/views/welcome.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
Welcome page.
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>Welcome::Micro</title>
9+
<link rel="stylesheet" href="<?php asset('css/style.css'); ?>">
10+
</head>
11+
12+
<body>
13+
<h1 data-heading="WELCOME">WELCOME TO <a href="https://github.com/grayphp/micro#readme">MICRO</a></h1>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)