Skip to content

Commit

Permalink
Add divider
Browse files Browse the repository at this point in the history
  • Loading branch information
eliihen committed Jan 23, 2025
1 parent 79c1c06 commit c3263d5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Divider/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
import * as styles from "./styles.module.css";

const Divider = () => (
<div className={styles.divider}>
<div className={[styles.dividerLine, styles.light].join(' ')}></div>
</div>
)

export default Divider;
19 changes: 19 additions & 0 deletions src/components/Divider/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.divider {
margin-top: 32px;
padding: 8px 0;
width: 100%;
}

.dividerLine {
width: 80%;
margin: 0 auto;
height: 1px;
}

.dark {
background: #4f5a7d;
}

.light {
background: #b2bad1;
}
3 changes: 3 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ import MainFeatures from "../components/MainFeatures"
import AboutTelenor from "../components/AboutTelenor"
import Seo from "../components/seo"
import Layout from "../components/Layout"
import Divider from "../components/Divider"

const Index = () => (
<Layout className={styles.main}>
<Container>
<MainFeatures />
</Container>
<Divider />
<Container>
<MainTechnologies />
</Container>
<Divider />
<Container>
<MainDataPlatformFeatures />
</Container>
Expand Down

0 comments on commit c3263d5

Please sign in to comment.