Skip to content

Commit

Permalink
add logo lost
Browse files Browse the repository at this point in the history
Signed-off-by: Tanuj22 <[email protected]>
  • Loading branch information
Tanuj22 committed Oct 21, 2020
1 parent 5856091 commit aa1efa6
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"env": {
"browser": true,
"es2020": true
"browser": true,
"es2020": true,
"amd": true
},
"settings": {
"react": {
Expand All @@ -22,7 +23,7 @@
},
"plugins": [
"react"

],
"rules": {
"no-unused-vars": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ export const StepWrapper = styled.li`
color: var(--gray-2);
}
}
& > .logo-list {
margin-top: 38px;
}
`;
2 changes: 2 additions & 0 deletions src/components/Animated-steps-list/Steps-list/Step/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from "react";
import { useInView } from "react-intersection-observer";
import LogoList from "../../../Logo-List";
import { StepWrapper } from "./Step.style";

const Step =({ name, description, logos, onInViewStatusChanged }) => {
Expand All @@ -17,6 +18,7 @@ const Step =({ name, description, logos, onInViewStatusChanged }) => {
<StepWrapper ref={ref}>
<h2>{name}</h2>
<div className="description">{description}</div>
<LogoList className="logo-list" logos={logos} />
</StepWrapper>
);
};
Expand Down
22 changes: 22 additions & 0 deletions src/components/Logo-List/LogoList.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styled from "styled-components";

export const LogoListWrapper = styled.div`
ul {
list-style: none;
padding: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: -10px -16px;
& > li {
height: 32px;
margin: 10px 16px;
& img {
max-height: 32px;
max-width: 96px;
}
}
}
`;
18 changes: 18 additions & 0 deletions src/components/Logo-List/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import {LogoListWrapper} from "./LogoList.style";

const LogoList = ({ logos, className }) => {
return (
<LogoListWrapper className={className}>
<ul>
{logos.map((logo) => (
<li key={logo.url}>
<img src={logo.url} alt={logo.alt} />
</li>
))}
</ul>
</LogoListWrapper>
);
};

export default LogoList;
10 changes: 5 additions & 5 deletions src/pages/animated-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const temp = () => (
</>
),
logos: [
// {
// url: require("../assets/images/mesheryctl/kubernetes.svg"),
// alt: "Kubernetes",
// }
{
url: require("../assets/images/mesheryctl/kubernetes.svg"),
alt: "Kubernetes",
}
// {
// url: require('./img/step-logos/react.svg'),
// alt: 'React',
Expand Down Expand Up @@ -190,7 +190,7 @@ const temp = () => (
],
short: true,
color: "gray",
},
},
{
frames: 5,
code: [
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Events/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { MeetupStyle } from "./meetups.style";
import Card from "../../components/EventCard"
import Card from "../../components/EventCard";
import {Col, Container, Row} from "../../reusecore/Layout";
import PageHeader from "../../reusecore/PageHeader";

Expand Down

0 comments on commit aa1efa6

Please sign in to comment.