Skip to content

Commit 0411db6

Browse files
committed
improved navbar so its a typescript component and changed structure of css
1 parent f7bdb7b commit 0411db6

File tree

5 files changed

+385
-371
lines changed

5 files changed

+385
-371
lines changed

frontend/src/app/globals.css

+2-345
Original file line numberDiff line numberDiff line change
@@ -32,348 +32,5 @@ body {
3232
}
3333
}
3434

35-
* {
36-
padding: 0;
37-
margin: 0;
38-
box-sizing: border-box;
39-
font-family: 'PixelOperator', sans-serif;
40-
text-decoration: none;
41-
}
42-
43-
html {
44-
font-size: 12px;
45-
}
46-
47-
body {
48-
background: linear-gradient(245.59deg, #36393f 0%, #242629 38.53%, #050505 68.52%, #050505 100%);
49-
background-attachment: fixed;
50-
padding-top: 100px;
51-
display: flex;
52-
align-items: center;
53-
justify-content: center;
54-
flex-direction: column;
55-
min-height: 100dvh;
56-
}
57-
58-
.hero {
59-
height: 100%;
60-
width: 100%;
61-
min-height: calc(100vh - 100px);
62-
position: relative;
63-
display: grid;
64-
grid-template-columns: repeat(2, 1fr);
65-
align-items: center;
66-
justify-content: center;
67-
gap: 2em;
68-
overflow-x: hidden;
69-
padding: 0 15%;
70-
}
71-
72-
.hero-text {
73-
display: flex;
74-
flex-direction: column;
75-
gap: 2em;
76-
padding: 2em 0;
77-
text-align: center;
78-
color: white;
79-
}
80-
81-
@keyframes fade-in-down {
82-
from {
83-
opacity: 0;
84-
transform: translateY(-15px);
85-
}
86-
to {
87-
opacity: 1;
88-
transform: translateY(0px);
89-
}
90-
}
91-
92-
@keyframes grow-vert {
93-
from {
94-
max-height: 0px;
95-
}
96-
to {
97-
max-height: 500px;
98-
}
99-
}
100-
101-
@keyframes run-in {
102-
0% {
103-
transform: translateX(400px);
104-
}
105-
50% {
106-
opacity: 0;
107-
}
108-
100% {
109-
transform: translateX(0px);
110-
opacity: 1;
111-
}
112-
}
113-
114-
.hero-text h3 {
115-
font-size: 1.25em;
116-
opacity: 0;
117-
animation: 0.5s ease 0s forwards fade-in-down;
118-
}
119-
120-
.hero-text h2 {
121-
font-size: 1.75em;
122-
opacity: 0;
123-
animation: 0.5s ease 0s forwards fade-in-down;
124-
}
125-
126-
.hero-text h1 {
127-
font-size: 4em;
128-
opacity: 0;
129-
animation: 0.5s ease 1s forwards fade-in-down;
130-
}
131-
132-
.hero-text div {
133-
display: flex;
134-
flex-direction: column;
135-
align-items: center;
136-
gap: 2em;
137-
max-height: 0px;
138-
opacity: 0;
139-
animation: 0.5s ease 2s forwards grow-vert, 0.5s ease 2.25s forwards fade-in-down;
140-
overflow-y: hidden;
141-
padding-bottom: 1em;
142-
}
143-
144-
.hero-text p {
145-
font-size: 1.25em;
146-
line-height: 2.0;
147-
}
148-
149-
.hero-img img {
150-
width: 100%;
151-
opacity: 0;
152-
animation: 0.5s ease 1s forwards run-in;
153-
}
154-
155-
.hero-text div > a {
156-
font-size: 1.25em;
157-
color: white;
158-
background: #333;
159-
border: 2px solid transparent;
160-
padding: 1em;
161-
border-radius: 30px;
162-
text-transform: uppercase;
163-
transition: width 0.25s ease, border-color 0.25s ease;
164-
width: 75%;
165-
}
166-
167-
.hero-text div > a:hover {
168-
border-color: white;
169-
width: 80%;
170-
}
171-
172-
.hero-text div > a > i {
173-
padding-right: 0.5em;
174-
font-size: 1.25em;
175-
vertical-align: bottom;
176-
}
177-
178-
.scroll-down {
179-
position: absolute;
180-
bottom: 5%;
181-
right: 5%;
182-
}
183-
184-
.scroll-down i {
185-
display: block;
186-
padding: 1rem;
187-
font-size: 2rem;
188-
color: white;
189-
background: #36393f;
190-
border-radius: 50%;
191-
transition: all .50s ease;
192-
}
193-
194-
.scroll-down i:hover {
195-
transform: translateY(-5px);
196-
}
197-
198-
@media (max-width: 1200px) {
199-
.hero-img {
200-
width: 50%;
201-
}
202-
203-
.hero {
204-
display: flex;
205-
flex-direction: column-reverse;
206-
gap: 0;
207-
max-width: 600px;
208-
padding: 0 2em;
209-
}
210-
211-
.hero-text {
212-
padding-top: 0;
213-
font-size: 0.9em;
214-
}
215-
216-
.scroll-down {
217-
display: none;
218-
}
219-
}
220-
221-
/* !!!!!!!!!!!!!! FAQ STYLE CSS !!!!!!!!!!!!!!!!!!!!!*/
222-
223-
.c-faq__answer {
224-
position: absolute;
225-
opacity: 0;
226-
z-index: -1;
227-
}
228-
229-
.container {
230-
display: flex;
231-
justify-content: center;
232-
margin: 0 -1rem;
233-
background-color: #fff;
234-
width: 100%;
235-
padding-bottom: 4em;
236-
}
237-
238-
.faq-container {
239-
width: 100%;
240-
max-width: 1100px;
241-
}
242-
243-
.section__headline {
244-
font-size: 4em;
245-
color: #1e88e5;
246-
padding-left: 15px;
247-
padding-top: 30px;
248-
}
249-
250-
.c-faqs__headline {
251-
text-align: left;
252-
padding-left: 15px;
253-
font-size: 1.5em;
254-
margin-top: 1.5em;
255-
font-weight: bold;
256-
}
257-
258-
.c-faqs {
259-
padding: 0 15px;
260-
border-top: 1px solid transparent;
261-
border-bottom: 1px solid transparent;
262-
}
263-
264-
.c-faq {
265-
list-style: none;
266-
margin: 10px 0 5px;
267-
}
268-
269-
.c-faq__title {
270-
cursor: pointer;
271-
font-weight: 500;
272-
background: white;
273-
z-index: 10;
274-
position: relative;
275-
font-size: 1.1em;
276-
}
277-
278-
.c-faq__title:hover {
279-
text-decoration: underline;
280-
}
281-
282-
.c-faq__title::after {
283-
white-space: nowrap;
284-
font-weight: 300;
285-
padding-left: 5px;
286-
opacity: 0;
287-
transform-origin: 11px;
288-
transform: rotateZ(90deg);
289-
display: none;
290-
content: ">";
291-
}
292-
293-
.c-faq--active .c-faq__title {
294-
color: #1e88e5;
295-
}
296-
297-
.c-faq--active .c-faq__title::after {
298-
opacity: 1;
299-
transform: rotateZ(90deg);
300-
display: inline-block;
301-
}
302-
303-
.c-faq__answer {
304-
font-weight: normal;
305-
margin-top: -10%;
306-
transition: all 0.1s;
307-
z-index: 1;
308-
line-height: 1.25;
309-
color: #505050;
310-
}
311-
312-
.c-faq--active .c-faq__answer {
313-
opacity: 1;
314-
position: relative;
315-
top: 0;
316-
left: 0;
317-
font-weight: 300;
318-
margin-top: 5px;
319-
margin-bottom: 10px;
320-
transition: all 0.2s;
321-
border-radius: 3px;
322-
border: 1px solid #f1f2f3;
323-
border-top: 1px solid #1e88e5;
324-
padding: 20px;
325-
}
326-
327-
@media (min-width: 780px) {
328-
.c-faqs {
329-
position: relative;
330-
margin-left: auto;
331-
margin-right: auto;
332-
height: auto;
333-
}
334-
335-
.c-faqs::before {
336-
opacity: 0.2;
337-
}
338-
339-
.c-faq {
340-
margin-top: 15px;
341-
margin-bottom: 15px;
342-
}
343-
344-
.c-faq .c-faq__title {
345-
width: 50%;
346-
padding-right: 40px;
347-
display: inline-block;
348-
}
349-
350-
.c-faq .c-faq__title::after {
351-
display: none;
352-
}
353-
354-
.c-faq .c-faq__answer {
355-
position: absolute;
356-
top: 50%;
357-
transform: translateY(-50%);
358-
left: 50%;
359-
width: 50%;
360-
border-left-color: #1e88e5;
361-
border-top-color: #f1f2f3;
362-
}
363-
}
364-
365-
.c-note {
366-
font-size: 0.8em;
367-
padding-left: 15px;
368-
opacity: 0.5;
369-
transition: opacity 0.2s ease-in-out;
370-
}
371-
372-
.c-note:hover {
373-
opacity: 1;
374-
transition: opacity 0.2s ease-in-out;
375-
}
376-
377-
.c-note a {
378-
color: #1e88e5;
379-
}
35+
/* this is where the addition starts
36+
*/

0 commit comments

Comments
 (0)