Skip to content

Commit

Permalink
Merge branch 'main' into speakers-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeak4 authored Mar 24, 2024
2 parents 9211f36 + 6876ef9 commit ddb09a4
Show file tree
Hide file tree
Showing 51 changed files with 1,822 additions and 126 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ import { SurveyQuestionModule } from './survey-question/survey-question.module';
// rootPath: join(__dirname, '..', '..', '..', 'web', 'dist'),
// exclude: ['/api/(.*)', '/sponsor/(.*)', '/admin/(.*)'],
// }),
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', '..', '..', 'web', 'dist'),
serveRoot: '/noviweb',
}),
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', '..', '..', 'sponsor', 'dist'),
serveRoot: '/sponsor',
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ const setupProxies = (app: INestApplication) => {
(pathname: string) =>
!pathname.startsWith('/api') &&
!pathname.startsWith('/admin') &&
!pathname.startsWith('/sponsor'),
!pathname.startsWith('/sponsor') &&
!pathname.startsWith('/noviweb'),
{
target: 'https://ddays.azureedge.net/',
changeOrigin: true,
Expand Down
15 changes: 15 additions & 0 deletions apps/web/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@

body {
margin: 0;
background-color: #f3eadc;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E")
lightgray -235.612px -0.288px / 117.634% 193.021% repeat;
mix-blend-mode: soft-light;
z-index: -1;
opacity: 0.5;
}

@font-face {
Expand Down
12 changes: 12 additions & 0 deletions apps/web/src/api/event/useEventGetAll.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { EventDto } from '@ddays-app/types';
import { QueryOptions, useQuery } from 'react-query';

import { api } from '..';

const eventGetAll = () => {
return api.get<never, EventDto[]>('/event');
};

export const useEventGetAll = (options?: QueryOptions<EventDto[]>) => {
return useQuery(['event'], eventGetAll, options);
};
6 changes: 6 additions & 0 deletions apps/web/src/assets/Plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/web/src/assets/icons/hamburger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/days-sticker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/digitalac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/dizajner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/full-duckie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/hero-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/marketingas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/people.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/web/src/assets/images/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/poduzetnik.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/programer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/images/vinyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/web/src/assets/stamp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/src/assets/vintage-fesb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 56 additions & 14 deletions apps/web/src/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,63 @@
.button {
background-color: #5cc2a0;
color: #fff;
border: 2px solid #5cc2a0;
padding: 9px 26px;
border-radius: 5px;
border: none;
outline: none;
margin: 0;
padding: 14px 16px;
background: white;
position: relative;
transition: 300ms;

.text {
position: relative;
margin: 0;
color: #121212;
font-feature-settings:
'ss09' on,
'ss07' on,
'ss06' on,
'ss08' on,
'ss03' on;
font-family: 'PP Neue Montreal Mono';
font-size: 14px;
font-style: normal;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
}

cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: all 0.3s ease-in-out;
display: block;

&.primary {
background-color: #5cc2a0;
&:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
background-size: cover;
opacity: 0;
z-index: 0;
transition: 300ms;
}

&:hover {
overflow: hidden;
background-color: rgb(17, 17, 17);

.text {
color: white;
z-index: 5;
}

&:before {
opacity: 0.2;
}
}

&.secondary {
background-color: #fff;
color: #5cc2a0;
&:active {
&::before {
opacity: 0.85;
}
}
}
20 changes: 6 additions & 14 deletions apps/web/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@ import c from './Button.module.scss';

type ButtonProps = {
children: React.ReactNode;
variant?: 'primary' | 'secondary';
} & React.ButtonHTMLAttributes<HTMLButtonElement>;

export const Button: React.FC<ButtonProps> = ({
children,
variant = 'primary',
className,
...handlers
}) => {
const Button = ({ children, className, ...handlers }: ButtonProps) => {
const classes = clsx(className, c.button);
return (
<button
className={clsx(c.button, className, {
[c.primary]: variant === 'primary',
[c.secondary]: variant === 'secondary',
})}
{...handlers}>
{children}
<button className={classes} {...handlers}>
<p className={c.text}>{children}</p>
</button>
);
};

export default Button;
4 changes: 3 additions & 1 deletion apps/web/src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './Button';
import Button from './Button';

export default Button;
Loading

0 comments on commit ddb09a4

Please sign in to comment.