Skip to content

Commit 91ec07d

Browse files
committed
Work on Second Example
1 parent a9c8998 commit 91ec07d

3 files changed

Lines changed: 66 additions & 3 deletions

File tree

tailwind/Example2/dist/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
34
<head>
45
<meta charset="UTF-8">
56
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67
<title>Tailwind Landing Page</title>
78
<link href="./styles.css" rel="stylesheet">
89
</head>
10+
911
<body>
10-
<h1 class="bg-blue-400">Helllo</h1>
11-
</body>
12+
<nav class="relative container mx-auto p-8">
13+
<div class="flex items-center justify-between">Logo</div>
14+
</nav>
15+
1216
</html>

tailwind/Example2/dist/styles.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,65 @@ video {
554554
--tw-contain-style: ;
555555
}
556556

557+
.container {
558+
width: 100%;
559+
}
560+
561+
@media (min-width: 480px) {
562+
.container {
563+
max-width: 480px;
564+
}
565+
}
566+
567+
@media (min-width: 768px) {
568+
.container {
569+
max-width: 768px;
570+
}
571+
}
572+
573+
@media (min-width: 976px) {
574+
.container {
575+
max-width: 976px;
576+
}
577+
}
578+
579+
@media (min-width: 1440px) {
580+
.container {
581+
max-width: 1440px;
582+
}
583+
}
584+
585+
.relative {
586+
position: relative;
587+
}
588+
589+
.mx-auto {
590+
margin-left: auto;
591+
margin-right: auto;
592+
}
593+
594+
.flex {
595+
display: flex;
596+
}
597+
598+
.items-center {
599+
align-items: center;
600+
}
601+
602+
.justify-between {
603+
justify-content: space-between;
604+
}
605+
557606
.bg-blue-400 {
558607
--tw-bg-opacity: 1;
559608
background-color: rgb(96 165 250 / var(--tw-bg-opacity));
560609
}
610+
611+
.bg-blue-900 {
612+
--tw-bg-opacity: 1;
613+
background-color: rgb(30 58 138 / var(--tw-bg-opacity));
614+
}
615+
616+
.p-8 {
617+
padding: 2rem;
618+
}

tailwind/Example2/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build-dist": "tailwindcss -i ./src/input.css -o ./dist/styles.css --watch "
89
},
910
"keywords": [],
1011
"author": "",

0 commit comments

Comments
 (0)