Skip to content

Commit

Permalink
Merge pull request #870 from Edwinliby/old-dev
Browse files Browse the repository at this point in the history
updated Home page to Onepiece Theme
  • Loading branch information
AswinAsok authored Oct 11, 2023
2 parents 54446a1 + bc80a09 commit 9b6d964
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 44 deletions.
Binary file added public/assets/home/hero.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 public/assets/navbar/onepiece.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: 2 additions & 2 deletions src/Components/Navbar/Desktop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Resources = ({ notificationOpen }) => {
rel="noopener noreferrer"
className="py-7 px-3 inline-block"
>
<button className="bg-orange-400 text-white px-6 py-2 rounded-md">
<button className="bg-mublue text-white px-6 py-2 rounded-md">
Join µLearn
</button>
</a>
Expand All @@ -47,7 +47,7 @@ export const Resources = ({ notificationOpen }) => {
rel="noopener noreferrer"
className="py-7 px-3 inline-block"
>
<button className="border-2 border-orange-400 text-orange-400 px-6 py-2 rounded-md">
<button className="border-2 border-mublue text-mublue px-6 py-2 rounded-md">
Magazine
</button>
</a>
Expand Down
21 changes: 13 additions & 8 deletions src/Components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.dashes{
.dashes {
border-bottom: 3px solid rgba(0, 0, 0, 0);

}
.dashes:hover{

.dashes:hover {
border-bottom: 3px solid black;
}

.special {
font-family: Montserrat, Arial;
line-height: 1.3em;
Expand Down Expand Up @@ -52,28 +54,31 @@
background-color: white;
justify-content: space-between;
}

@media screen and (max-width: 1024px) {
.mobile-nav-bar {
z-index: 100;
}
}

@media screen and (max-width: 1200px) {
.change-text{
.change-text {
font-size: 14px;
}
}

@media screen and (max-width: 1100px) {
.change-text{
.change-text {
font-size: 12px;
}
}

.setIndex{
.setIndex {
z-index: 90;

}
.searchBar{

.searchBar {
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.056);
margin: 25px;
Expand Down
33 changes: 16 additions & 17 deletions src/Components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,28 @@ const Navbar = () => {
<div className="flex items-center font-medium justify-around">
<div className={`mobile-nav-bar lg:w-auto w-full ${open ? "absolute top-1" : ""}`}>
<Logo />
<MobileTopBar
setNotificationOpen={setNotificationOpen}
notificationOpen={notificationOpen}
handleScrolling={handleScrolling}
setOpen={setOpen}
open={open}
<MobileTopBar
setNotificationOpen={setNotificationOpen}
notificationOpen={notificationOpen}
handleScrolling={handleScrolling}
setOpen={setOpen}
open={open}
/>
</div>
<DesktopMenu
notificationOpen={notificationOpen}
open={open}
<DesktopMenu
notificationOpen={notificationOpen}
open={open}
/>
<Resources notificationOpen={notificationOpen} />
<MobileMenu
setNotificationOpen={setNotificationOpen}
setOpen={setOpen}
handleScrolling={handleScrolling}
open={open}
<MobileMenu
setNotificationOpen={setNotificationOpen}
setOpen={setOpen}
handleScrolling={handleScrolling}
open={open}
notificationOpen={notificationOpen}
/>
</div>
</nav>

</>
);
};
Expand All @@ -51,9 +50,9 @@ const Logo = () => {
return (
<Link to="/">
<img
src="/assets/navbar/µLearn.webp"
src="/assets/navbar/onepiece.png"
alt="logo"
className="lg:cursor-pointer h-8 z-0"
className="lg:cursor-pointer h-16 z-0 mt-[-.5rem]"
/>
</Link>
)
Expand Down
10 changes: 5 additions & 5 deletions src/Pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ const Home = () => {
>
<button className={styles.primary}>Join Us</button>
</a>
{/* <a
<a
target="_blank"
rel="noopener noreferrer"
href="https://mulearn.org/journey"
href="https://themaze.mulearn.org"
>
<button className={styles.secondary}>Your Journey</button>
</a> */}
<button className={styles.secondary}>Join The Maze</button>
</a>
</div>
</div>
<img
className={styles.fv_image}
src="/assets/home/illustration.webp"
src="/assets/home/hero.png"
alt="illustration"
/>
</div>
Expand Down
25 changes: 14 additions & 11 deletions src/Pages/Home/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ a {
padding-top: 3rem;
background-color: #f2f3f9;
opacity: 1;
background-image: repeating-radial-gradient(
circle at 0 0,
background-image: repeating-radial-gradient(circle at 0 0,
transparent 0,
#f2f3f9 15px
),
#f2f3f9 15px),
repeating-linear-gradient(#fdf1e755, #fdf1e7);
}

Expand Down Expand Up @@ -55,15 +53,16 @@ a {

.fv_heading span {
font-weight: 600;
color: #f78c40;
/* color: #f78c40; */
color: #5C9AE5;
}

.fv_tagline {
margin-top: 1rem;
font-family: "Poppins", sans-serif;
}

.buttons{
.buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
Expand All @@ -74,7 +73,8 @@ a {

.primary,
.secondary {
background-color: #f78c40;
/* background-color: #f78c40; */
background-color: #5C9AE5;
padding: 0.7rem 2.75rem;
border: none;
margin-top: 1rem;
Expand All @@ -86,9 +86,11 @@ a {

.secondary {
background-color: #ffffff;
color: #f78c40;
padding: 0.6rem 2.75rem;
border: 2px solid #f59d5e;
/* color: #f78c40; */
color: #5C9AE5;
padding: 0.6rem 2rem;
/* border: 2px solid #f59d5e; */
border: 2px solid #5C9AE5;
}

@media only screen and (min-width: 1000px) {
Expand Down Expand Up @@ -754,9 +756,10 @@ a {
.karma_img {
max-width: 25rem;
}

.karma_img {
display: block;
margin: auto;
margin-top: 2rem;
}
}
}
2 changes: 1 addition & 1 deletion src/Pages/Pathway/components/contact/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Contact() {
<>
<div className={styles.ContactUs}>
<div className={styles.Contact}>
<img src={img4} />
<img src={img4} alt="logo" />
</div>
<div className={styles.ContactList}>
{links.map((link) => {
Expand Down
Binary file removed src/Pages/Top100Coders/assets/favicon.png
Binary file not shown.
2 changes: 2 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ module.exports = {
theme: {
colors: {
orange: "#f78c40",
blue: "#5C9AE5"
},
},
colors: {
'muorange': "#f78c40",
'mublue': "#5C9AE5"
},
extend: {
fontFamily: {
Expand Down

0 comments on commit 9b6d964

Please sign in to comment.