Skip to content

Commit

Permalink
[FEATURE] 서비스 SEO 작업 (#63)
Browse files Browse the repository at this point in the history
* feat: sitemap 추가 (#62)

* feat: 이미지 alt 속성 추가 (#62)
  • Loading branch information
hyunmin0317 authored Dec 30, 2024
1 parent be435ad commit 4c90d7a
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 5 deletions.
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

Sitemap: https://smunity.co.kr/sitemap.xml
69 changes: 69 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://smunity.co.kr</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://smunity.co.kr/accounts/login</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://smunity.co.kr/accounts/agree</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/terms</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/privacy</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions/1</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions/2</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions/3</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions/4</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://smunity.co.kr/qna/questions/5</loc>
<lastmod>2024-12-30</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
</urlset>
6 changes: 5 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ interface HeaderProps {
const Header = (props: HeaderProps) => {
return (
<div className="navbar-img">
<img className="navbar-img-image" src="/images/home.jpg" />
<img
className="navbar-img-image"
src="/images/home.jpg"
alt="네비게이션바 이미지"
/>
<div className="navbar-img__text">
<span className="navbar-img__text--title">{props.title}</span>
<span className="navbar-img__text--subtitle">{props.subtitle}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Navbar = () => {
<Link
to="/"
className="d-flex align-items-center mb-md-0 me-md-auto text-dark text-decoration-none">
<img src="/images/logo.png" className="logo_img" />
<img src="/images/logo.png" className="logo_img" alt="스뮤니티 로고" />
</Link>
<button
className="navbar-toggler"
Expand Down
2 changes: 1 addition & 1 deletion src/components/account/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const LoginForm = () => {
<>
<div className="login-form" onKeyDown={handleKeyDown}>
<div className="login_logo">
<img id="login_logo" src="/images/logo.png" />
<img id="login_logo" src="/images/logo.png" alt="스뮤니티 로고" />
</div>
<div className="content">
<div className="input-group flex-nowrap">
Expand Down
6 changes: 5 additions & 1 deletion src/components/mypage/HeaderComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ const HeaderComponent = (props: {title: string}) => {
return (
<>
<div className="navbar-img">
<img className="navbar-img-image" src="/images/home.jpg" />
<img
className="navbar-img-image"
src="/images/home.jpg"
alt="네비게이션바 이미지"
/>
<div className="navbar-img__text">
<span className="navbar-img__text--title">{props.title}</span>
<span className="navbar-img__text--subtitle">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const MainPage = () => {
return (
<div className="bg_wrapper">
<div className="main-img">
<img className="main-img-image" />
<img className="main-img-image" alt="스뮤니티 메인화면" />
<HeadComponent />
<StatComponent />
</div>
Expand Down

0 comments on commit 4c90d7a

Please sign in to comment.