diff --git a/src/App.tsx b/src/App.tsx index 948142c..a62d24f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,10 @@ import './App.css' +import HomePage from './pages/HomePage' function App() { return ( - <> -

Project for Team 12

- + ) } diff --git a/src/assets/hero.png b/src/assets/hero.png index 02251f4..6bab106 100644 Binary files a/src/assets/hero.png and b/src/assets/hero.png differ diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000..683a4c3 Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/components/Hero.css b/src/components/Hero.css new file mode 100644 index 0000000..8124d7a --- /dev/null +++ b/src/components/Hero.css @@ -0,0 +1,76 @@ +.hero { + min-height: 750px; + padding: 70px; + display: flex; + justify-content: center; + align-items: center; + gap: 70px; + background-color: black; + color: white; + overflow: hidden; + border-radius: 0 0 50% 50% / 0 0 10% 10%; +} + +.hero-content { + width: 360px; +} + +.logo { + width: 100%; + height: auto; +} + +.hero-description { + margin: 25px 0 35px; + font-size: 16px; + line-height: 1.3; +} + +.hero-button { + width: 100%; + padding: 15px; + display: block; + background-color: #45b4ca; + color: white; + border-radius: 18px; + text-align: center; + text-decoration: none; + font-size: 18px; +} + +.hero-characters { + width: 480px; + height: auto; +} + +@media (max-width: 900px) { + .hero { + min-height: 740px; + padding: 80px 20px; + display: block; + border-radius: 0 0 50% 50% / 0 0 4% 4%; + } + + .hero-content { + width: 100%; + max-width: 310px; + margin: 70px auto 0; + } + + .logo { + width: 100%; + } + + .hero-description { + margin: 30px 5px 40px; + font-size: 16px; + } + + .hero-button { + width: 100%; + } + + .hero-characters { + display: none; + } +} \ No newline at end of file diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx new file mode 100644 index 0000000..29c7ce3 --- /dev/null +++ b/src/components/Hero.tsx @@ -0,0 +1,25 @@ +import heroImage from "../assets/hero.png"; +import logo from "../assets/logo.png"; +import "./Hero.css"; + +function Hero() { + return ( +
+
+ Rick and Morty + +

+ Explore every character in the TV universe Rick and Morty. + Enter an item name or keyword in the search bar to instantly + narrow down the results and find exactly what you're looking for. +

+ + Read more +
+ + Rick and Morty characters +
+ ); +} + +export default Hero; \ No newline at end of file diff --git a/src/index.css b/src/index.css index f6e6759..895c604 100644 --- a/src/index.css +++ b/src/index.css @@ -51,14 +51,8 @@ } #root { - margin-top: 2rem; - margin-left: 2rem; - margin-right: 2rem; - border-inline: 1px solid var(--border); - min-height: 100svh; - display: flex; - flex-direction: column; - box-sizing: border-box; + width: 100%; + min-height: 100vh; } body { diff --git a/src/pages/CharactersPage.css b/src/pages/CharactersPage.css index 04c9b51..40ce9b7 100644 --- a/src/pages/CharactersPage.css +++ b/src/pages/CharactersPage.css @@ -1,5 +1,6 @@ .content{ display: flex; + padding-top: 6rem; } .search-area{ diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx new file mode 100644 index 0000000..b9c2bbb --- /dev/null +++ b/src/pages/HomePage.tsx @@ -0,0 +1,11 @@ +import Hero from "../components/Hero"; + +function HomePage() { + return ( +
+ +
+ ); +} + +export default HomePage; \ No newline at end of file