Skip to content

Commit

Permalink
Add beta version banner to the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
minpeter committed Mar 25, 2024
1 parent a1db5b7 commit ad9207c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Outlet, Route, Routes, useNavigate } from 'react-router-dom';
import { Link, Outlet, Route, Routes, useNavigate } from 'react-router-dom';
import { useState, useEffect } from 'react';
import toast, { Toaster, useToasterStore } from 'react-hot-toast';
import { Navbar } from './components';
Expand Down Expand Up @@ -47,6 +47,9 @@ export default function App() {
path="/"
element={
<S.RootLayout>
<Link className="BetaBanner" to="https://beta.tmpf.me/" target="_blank">
๋ฒ ํƒ€๋ฒ„์ „์ด ์ถœ์‹œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. beta.tmpf.me์—์„œ ๋ฒ ํƒ€ ๋ฒ„์ „์„ ์ฒดํ—˜ํ•ด๋ณด์„ธ์š”!
</Link>
<div>
<Toaster
toastOptions={{
Expand Down
12 changes: 12 additions & 0 deletions src/styles/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import styled from '@emotion/styled';

export const RootLayout = styled.div`
.BetaBanner {
width: 100vw;
padding: 2rem;
background-color: #757bab;
display: flex;
justify-content: center;
align-items: center;
color: white;
}
.RootWrapper {
width: 100%;
height: fit-content;
display: flex;
flex-direction: column;
align-items: center;
}
.Text {
Expand Down
1 change: 1 addition & 0 deletions tmp/build-errors.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exit status 1

0 comments on commit ad9207c

Please sign in to comment.