Skip to content

Commit e9a0c9b

Browse files
committed
Initial commit
1 parent f4e7664 commit e9a0c9b

File tree

13 files changed

+163
-1
lines changed

13 files changed

+163
-1
lines changed

easy/advice-generator-app-main

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Generate advice by clicking a button, built using fetch API
2+
3+
![Design preview for the Advice generator app coding challenge](./design/desktop-preview.jpg)
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
*,
2+
*::before,
3+
*::after {
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: inherit;
7+
}
8+
9+
html {
10+
font-size: 62.5%;
11+
}
12+
13+
body {
14+
background-color: hsl(218, 23%, 16%);
15+
display: flex;
16+
align-items: center;
17+
justify-content: center;
18+
font-family: "Manrope", sans-serif;
19+
font-weight: 800;
20+
}
21+
22+
.card {
23+
background-color: hsl(217, 19%, 24%);
24+
width: 50%;
25+
height: 40rem;
26+
margin-top: 15rem;
27+
display: flex;
28+
flex-direction: column;
29+
align-items: center;
30+
justify-content: space-around;
31+
border-radius: 2rem;
32+
}
33+
34+
.heading {
35+
font-size: 2.5rem;
36+
color: hsl(150, 100%, 66%);
37+
margin-top: 1rem;
38+
margin-bottom: -1rem;
39+
letter-spacing: 5px;
40+
}
41+
42+
.advice {
43+
/* background-color: orange; */
44+
color: hsl(193, 38%, 86%);
45+
width: 90%;
46+
height: 20rem;
47+
48+
font-size: 2.8rem;
49+
display: flex;
50+
align-items: center;
51+
justify-content: center;
52+
text-align: center;
53+
}
54+
55+
.img__pattern {
56+
width: 90%;
57+
height: 2.5rem;
58+
}
59+
60+
.img__dice {
61+
position: absolute;
62+
top: 53.5rem;
63+
width: 3rem;
64+
height: 3rem;
65+
margin-bottom: -6.5rem;
66+
cursor: pointer;
67+
}
68+
69+
.img__dice:hover + .img__dice-background {
70+
color: hsl(150, 100%, 66%);
71+
box-shadow: 0px 0px 30px hsl(150, 100%, 66%);
72+
transition: all 0.2s ease-in;
73+
}
74+
75+
.img__dice-background {
76+
width: 8rem;
77+
height: 8rem;
78+
margin-bottom: -5.5rem;
79+
background-color: hsl(150, 100%, 66%);
80+
border-radius: 50%;
81+
cursor: pointer;
82+
}
83+
84+
.img__dice-background:hover {
85+
color: hsl(150, 100%, 66%);
86+
box-shadow: 0px 0px 30px hsl(150, 100%, 66%);
87+
transition: all 0.2s ease-in;
88+
}
89+
90+
@media (max-width: 400px) {
91+
.card {
92+
width: 90%;
93+
}
94+
95+
/* .advice {
96+
font-size: 1.5rem;
97+
} */
98+
}
108 KB
Loading
104 KB
Loading
173 KB
Loading
63.6 KB
Loading
1.04 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)