Skip to content

Commit

Permalink
Merge pull request #48 from capstone-maru/dev
Browse files Browse the repository at this point in the history
release: 0.4.0
  • Loading branch information
cjeongmin authored Apr 4, 2024
2 parents fa6b7a0 + 50a6b40 commit d80ab17
Show file tree
Hide file tree
Showing 67 changed files with 1,142 additions and 511 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"tsx": "never"
}
],
"no-empty-pattern": ["warn", { "allowObjectPatternsAsParameters": true }],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": ["warn", {}],
Expand Down
2 changes: 2 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// reactStrictMode: false,
reactStrictMode: true,
compiler: {
styledComponents: true,
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maru",
"version": "0.3.0",
"version": "0.4.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -16,6 +16,7 @@
"react": "^18",
"react-dom": "^18",
"react-redux": "^9.1.0",
"react-toastify": "^10.0.5",
"recoil": "^0.7.7",
"sass": "^1.71.1",
"styled-components": "^6.1.8"
Expand Down
8 changes: 7 additions & 1 deletion src/app/globals.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:[email protected]&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:[email protected]&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css');

* {
box-sizing: border-box;
padding: 0;
Expand All @@ -22,7 +26,9 @@ main {
width: 100%;
height: calc(100% - 72px);
max-height: fit-content;
padding: 0 15rem;

display: flex;
justify-content: center;
}

a {
Expand Down
24 changes: 6 additions & 18 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import React from 'react';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import './globals.scss';

import {
StyledComponentsRegistry,
AuthProvider,
RecoilRootProvider,
StyledComponentsRegistry,
TanstackQueryProvider,
AuthProvider,
} from '@/app/lib/providers';
import { NavigationBar, FloatingChatting } from '@/components';
import { FloatingChatting, NavigationBar } from '@/components';

const inter = Inter({ subsets: ['latin'] });

Expand All @@ -26,21 +28,6 @@ export default function RootLayout({
return (
<html lang="ko">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Baloo+2:[email protected]&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
as="style"
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:[email protected]&display=swap"
rel="stylesheet"
/>
<script
async
type="text/javascript"
Expand All @@ -55,6 +42,7 @@ export default function RootLayout({
<NavigationBar />
<main>{children}</main>
<FloatingChatting />
<ToastContainer />
</AuthProvider>
</StyledComponentsRegistry>
</RecoilRootProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/app/lib/providers/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
}

if (auth === null) {
const refreshToken = load({ type: 'local', key: 'refreshToken' });
const refreshToken = load<string>({ type: 'local', key: 'refreshToken' });
if (refreshToken !== null) {
postTokenRefresh(refreshToken)
.then(({ data }) => {
Expand Down
18 changes: 11 additions & 7 deletions src/app/pages/landing-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import styled from 'styled-components';
const styles = {
container: styled.div`
width: 100%;
padding-right: 6rem;
`,
section1: styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0rem 13.75rem;
`,
img: styled.img`
width: 29.1875rem;
Expand Down Expand Up @@ -72,15 +72,17 @@ const styles = {
`,
section2: styled.div`
position: relative;
left: -15rem;
width: 100dvw;
height: 31.25rem;
flex-shrink: 0;
background: #f7f6f9;
`,
section3: styled.div`
display: flex;
justify-content: end;
height: 31.25rem;
padding-left: calc(51.75rem - 15rem + 15rem);
padding-right: 21.25rem;
`,
imageBox: styled.div`
display: flex;
Expand All @@ -95,6 +97,9 @@ const styles = {
flex-direction: column;
gap: 1rem;
margin-top: ${({ $margin }) => `${$margin / 16}rem`};
position: relative;
top: -5rem;
`,
box: styled.div`
display: flex;
Expand All @@ -111,7 +116,6 @@ const styles = {
section4: styled.div`
display: flex;
position: relative;
left: -15rem;
width: 100dvw;
height: 17.9375rem;
padding: 10.0625rem 38.71875rem 5.0625rem 39.90625rem;
Expand Down Expand Up @@ -167,7 +171,7 @@ export function LandingPage() {
<styles.section1>
<styles.img
alt="Brazuca Date Night"
src="https://s3-alpha-sig.figma.com/img/cee1/f195/09c0e7edb4b99b5d73a56afd3391e70c?Expires=1711929600&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=Xl7oUaxM4hm65lINiamHYkCHkdHFXWuzQe8T1uS4T~5VkeQkM3yyJHj5b~ImrqrG8qtnCnUkoVTY-loFtIbkokSJwztdgzyrG3-6LLm4cbZboG31UNoQB04i~4us1xkCeYbsvIQNW2P2ZRJv43mlwfTiy-o8YJQ99N3grve48dne8-2z8f3Mbwt4tQ9SYkUWBfcKGZcy-wDEF-o5~rH4UTcSLJO39tBEIbPzvJkE8~Si1Q0MtkpIUVnoCs1GwyYEBCzNZ~ILPOLBaOL6JU6PkHEuZ8mkcf5vgBrLVzd6OQY5-bBTtpJ51df0YXJ5CUmoTqWB~4b3t1-Sy1uHyEy27g__"
src="https://s3-alpha-sig.figma.com/img/cee1/f195/09c0e7edb4b99b5d73a56afd3391e70c?Expires=1713139200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=GD32LLH2Mn1hwXGowQ4~ZbzqXVnlrJ~PA42mtUf~8IhrvG6frWHG9Z0EAqzF40h9RUUJ8XYyXpcE8L3~wh2falwIiWzXA6R~3irEUOv6YRN1pCVpj43Aftw5-vr3yBPv2Kxyx7NThdtmOpFn5F~PMvarqDzx7Oig4W0pCMgxaWg6RTCG226xbLvIPyS8x5vnn2KePbi84zSGZfS2kiWoYvD7QEaLcIi29kbcb6t9GEuSOB-rV7nJ2y0uJiGafxRelwthA~w4sOPYRQ~I5xmA1fUbjgjnUiByb9iAU9GPlH9TjHh700aTFdpxy-2j2KpbyB7Tz51f0CoqXiX0TH5SQg__"
/>
<styles.description>
<h1>공동주거생활의 A to Z</h1>
Expand All @@ -181,15 +185,15 @@ export function LandingPage() {
>
<img
alt="kakao"
src="https://s3-alpha-sig.figma.com/img/3d3c/d1f5/021fb8c1c71bbfcfdbd58571b78fafa3?Expires=1711929600&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=ij7lN3-5mFIjG4smhXFKW2DLX6yvjrE0DAoSGQp5Gmi9JmVjWgo9WquW6CQOYAeSSNzP8kYDOmRzV2DC88iJ~D3cztENp6zfozg7rcIrDm~v~0EpX4QXCrYJThwRYyNlnLmwciPFwhbX8I4-TmivzhCOBjnE-U1WU-aAF2j~9GWfEio2sGOrh99SldlXU1b6H4Kfue7SlRsQayUGv4ArSFWdNz7y4765V1CE1pdbHmlQaPE2m495WapZDkx0BEkM6IyJo7xzsiXYZFrzIMFgqoWpfALfnIdDoxOb1kIttkhzrDm2eW-oJzZvMnYYSWxMVN7impkHDFDLVBdYSMXxYQ__"
src="https://s3-alpha-sig.figma.com/img/3d3c/d1f5/021fb8c1c71bbfcfdbd58571b78fafa3?Expires=1713139200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=FTAwnytd3IJSGgWXu7yJMR2zsfo4PnCcF9Gdfh7vqYyiCH8X6r74r6DujoZNISOFwozcGVt6ir0AcO8v5OB80YCmIsbpDm6QuSe~gOW9e6CMtDODh4ih7DO3DRu5Z9Fl4kXjIO4De5eoH1rh~S6Aeycar4eJOGCSqgTowxQjbx7vU6zmD0-XwjCa7p4p7BpcPcL2duWbrekHcJ8vLmSUDEjLwG-445rH9k9U-BYMe1KTlzcyhg0HLnitxX~XfW9HSN9VADuidDyp4mwBYPeWG87DRXixuWUSGIdipIYBg~NTFemJIVu8U2UP~TI6NAY9U-aDoP7mFy53RCG2UTdMPg__"
/>
</a>
<a
href={`${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/naver?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_URL}/login`}
>
<img
alt="naver"
src="https://s3-alpha-sig.figma.com/img/bc24/1c57/afda23776f60b331a41aa67a9eaaf66c?Expires=1711929600&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=O67VG5oEK~e8y5lWE~bQGfiEUiXHHaQ0yCSIUUXpbWVfdm0amwAK-79zpYT7rKfXymBKwBxth01ywb96VRwakMMkU~1HXxHsBP3UKaGvBJtSi4Z-~uQI9n79t1aQhE4jTZb0u1mzFkJESOiNU9Rj2igRRN-lZ9OH~MBL8O3RjkHzBdy5jwm5xmr3OvSQ7~fIiN0GjzwZ3F3znhjNSufW1g0TErw59DmcLz8lXfGq9qut2ay8eL67~lJJV8fVi8AXuIEyAxfpgtOQl2JyAGiTgVMij-HKWGYQZ1EpNXA89KVPSOPjmF75o281Z8YwOiLtOev6ivUi0wuSGhFkSOq6Pw__"
src="https://s3-alpha-sig.figma.com/img/bc24/1c57/afda23776f60b331a41aa67a9eaaf66c?Expires=1713139200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=LuD7rvKOi7gYpAsadxPyl7lq4TXQsumgdHexE9YdScyyDAOQ6m03yzmkwFw1lOI9CTF87sIjT~aywIl2fZKkjcK5Udx4UGgacCsebVPWBfZDEibev75yhf0f-ASFamR6Tz6MDKxxzBhWyD1aUdrdMeanKXdK-mKsyY1vMY1gLbPziG~PHXfyUO-3u~FcbnH4FPIfm47jA1qPooGBgMWCg8HdAVRaBexlG3CtPioxKmwG7fm-Xw6PMy~Nw5USxzVipHT-rgmwNGbeWNLhZo4Unrnmyn38vF3rv0bnJVVeDvJT0XWs2oDmch5Bar1GAhpxH3Ojr4HjKqkHSXTNsEXrEw__"
/>
</a>
</styles.loginButtons>
Expand Down
Loading

0 comments on commit d80ab17

Please sign in to comment.