Skip to content

Commit bc78c43

Browse files
committed
feat(style): add daisyUI
1 parent c0c25a6 commit bc78c43

File tree

3 files changed

+3
-258
lines changed

3 files changed

+3
-258
lines changed

bun.lockb

326 Bytes
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@tailwindcss/postcss": "^4.0.8",
1010
"autoprefixer": "^10.4.20",
1111
"cssnano": "^7.0.6",
12+
"daisyui": "^5.0.2",
1213
"postcss": "^8.5.3",
1314
"postcss-cli": "^11.0.0",
1415
"postcss-nesting": "^13.0.1",

resources/styles/main.css

+2-258
Original file line numberDiff line numberDiff line change
@@ -1,260 +1,5 @@
1-
/* TODO: Uncomment Tailwind when we're ready for it! */
2-
/* @import "tailwindcss"; */
3-
4-
:root {
5-
--color-bg: #ffffff;
6-
--color-bg-secondary: rgba(223, 236, 234, 0.75);
7-
--color-text: #444444;
8-
--color-text-subdued: #666666;
9-
--color-primary: #62a294;
10-
--color-secondary: #f2be56;
11-
--color-tertiary: #d1b43c;
12-
--color-callout: #ffeece;
13-
--color-input-border: #cccccc;
14-
}
15-
16-
* {
17-
box-sizing: border-box;
18-
}
19-
20-
html,
21-
body {
22-
height: 100%;
23-
}
24-
25-
body {
26-
display: flex;
27-
flex-direction: column;
28-
font-family:
29-
system-ui,
30-
-apple-system,
31-
BlinkMacSystemFont,
32-
"Segoe UI",
33-
Roboto,
34-
Oxygen,
35-
Ubuntu,
36-
Cantarell,
37-
"Open Sans",
38-
"Helvetica Neue",
39-
sans-serif;
40-
font-size: 18px;
41-
line-height: 1.8em;
42-
margin: 0px;
43-
background-color: var(--color-bg);
44-
color: var(--color-text);
45-
}
46-
47-
a {
48-
color: var(--color-primary);
49-
&:visited {
50-
color: var(--color-tertiary);
51-
}
52-
}
53-
54-
header {
55-
.logo {
56-
color: black;
57-
img {
58-
max-width: 200px;
59-
}
60-
}
61-
.content {
62-
padding-top: 2rem;
63-
}
64-
}
65-
66-
footer {
67-
background-color: var(--color-primary);
68-
color: var(--color-bg);
69-
font-size: 0.8em;
70-
line-height: 1.2em;
71-
width: 100%;
72-
gap: 1rem;
73-
flex: 1;
74-
.content {
75-
padding: 4rem 0rem;
76-
display: flex;
77-
flex-direction: row;
78-
flex-wrap: nowrap;
79-
justify-content: space-between;
80-
}
81-
82-
a,
83-
a:visited,
84-
a:hover {
85-
color: var(--color-bg);
86-
font-weight: bold;
87-
}
88-
}
89-
90-
.container {
91-
padding: 0rem 4rem;
92-
}
93-
94-
.content {
95-
width: 100%;
96-
margin: 0 auto;
97-
max-width: 1200px;
98-
}
99-
100-
.main {
101-
display: flex;
102-
flex-direction: row;
103-
flex-wrap: nowrap;
104-
justify-content: space-between;
105-
gap: 3rem;
106-
}
107-
108-
.illustration {
109-
width: 50%;
110-
p {
111-
text-align: center;
112-
}
113-
img {
114-
width: 100%;
115-
max-width: 400px;
116-
}
117-
}
118-
119-
.aboutus {
120-
background-color: var(--color-bg-secondary);
121-
.content {
122-
padding: 2rem 0 4rem 0;
123-
}
124-
}
125-
126-
.signup {
127-
margin: 2rem auto;
128-
width: 50%;
129-
max-width: 500px;
130-
131-
form {
132-
display: flex;
133-
margin-bottom: 0px;
134-
}
135-
input {
136-
padding: 0.5rem;
137-
border-radius: 10px;
138-
font-size: 1.5rem;
139-
box-sizing: border-box;
140-
}
141-
input[type="email"] {
142-
flex: 2;
143-
border: 2px solid var(--color-input-border);
144-
}
145-
input[type="submit"] {
146-
flex: 1;
147-
margin-left: 0.5rem;
148-
border: 2px solid var(--color-primary);
149-
background-color: var(--color-primary);
150-
color: white;
151-
}
152-
.error {
153-
p {
154-
&::before {
155-
content: "⤴︎";
156-
transform: scaleX(-1);
157-
position: absolute;
158-
left: -1.1rem;
159-
top: -0.3rem;
160-
}
161-
margin-top: 0.2rem;
162-
margin-left: 1.5rem;
163-
position: relative;
164-
}
165-
}
166-
.success {
167-
background-color: var(--color-callout);
168-
padding: 0.1rem 1rem;
169-
border-radius: 1rem;
170-
text-align: center;
171-
}
172-
}
173-
174-
.hero {
175-
max-width: 800px;
176-
h1 {
177-
font-family:
178-
"DM Serif Display", Georgia, Times, "Times New Roman", serif;
179-
color: var(--color-primary);
180-
font-weight: normal;
181-
font-size: 3rem;
182-
line-height: 1.2em;
183-
}
184-
}
185-
186-
.person-cards {
187-
display: flex;
188-
flex-direction: row;
189-
flex-wrap: nowrap;
190-
justify-content: space-between;
191-
gap: 3rem;
192-
.person-card {
193-
padding-left: 10rem;
194-
position: relative;
195-
min-height: 8rem;
196-
img {
197-
position: absolute;
198-
top: 0px;
199-
left: 0px;
200-
height: 8rem;
201-
width: 8rem;
202-
border-radius: 50%;
203-
}
204-
p {
205-
margin: 0;
206-
}
207-
}
208-
}
209-
210-
@media (max-width: 900px) {
211-
.main {
212-
flex-direction: column;
213-
gap: 0;
214-
}
215-
216-
.person-cards {
217-
flex-direction: column;
218-
gap: 1rem;
219-
}
220-
221-
.illustration,
222-
.signup {
223-
width: 100%;
224-
}
225-
226-
.signup {
227-
margin-top: 0;
228-
}
229-
}
230-
231-
@media (max-width: 600px) {
232-
.hero h1 {
233-
font-size: 2rem;
234-
}
235-
236-
.signup form {
237-
flex-direction: column;
238-
}
239-
240-
.signup input[type="email"],
241-
.signup input[type="submit"] {
242-
flex: 1;
243-
width: 100%;
244-
margin-left: 0;
245-
margin-bottom: 0.5rem;
246-
}
247-
248-
.container {
249-
padding: 0rem 1rem;
250-
}
251-
252-
footer .content {
253-
flex-direction: column;
254-
gap: 0;
255-
padding: 2rem 0rem;
256-
}
257-
}
1+
@import "tailwindcss";
2+
@plugin "daisyui";
2583

2594
.system-view {
2605
.node {
@@ -296,7 +41,6 @@ footer {
29641
}
29742

29843
.parts-toolbar {
299-
background: white;
30044
border-radius: 5px;
30145
padding: 0.2rem 0.5rem;
30246
border: 1px solid #cccccc;

0 commit comments

Comments
 (0)