Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
remove below the fold units for now
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr committed Apr 9, 2024
1 parent 204c4de commit e7c4dbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions src/components/AdSpace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ import React, { useEffect } from "react";

export enum UnitType {
BottomRail = "bottom_rail",
Skyscraper160x600 = "sky_atf",
Skyscraper300x600 = "sky_btf",
MediumRect300x250 = "med_rect_atf",
MediumRect320x50 = "med_rect_ctf",
Skyscraper = "sky_atf",
MediumRect = "med_rect_atf",
}

export const adSpaceSize = {
[UnitType.BottomRail]: { height: 50, width: 320 },
[UnitType.Skyscraper160x600]: { height: 600, width: 160 },
[UnitType.Skyscraper300x600]: { height: 600, width: 300 },
[UnitType.MediumRect300x250]: { height: 250, width: 300 },
[UnitType.MediumRect320x50]: { height: 50, width: 320 },
[UnitType.Skyscraper]: { height: 600, width: 160 },
[UnitType.MediumRect]: { height: 250, width: 300 },
};

interface AdSpaceProps {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
<ConstraintBox constraints={[new OutsideBoundsConstraint(900, 1200)]}>
<AdSpace
name={playwireUnitLeftSide}
unitType={UnitType.Skyscraper300x600}
unitType={UnitType.Skyscraper}
/>
</ConstraintBox>
<ConstraintBox
Expand All @@ -212,7 +212,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
>
<AdSpace
name={playwireUnitLeftSideSmall}
unitType={UnitType.MediumRect300x250}
unitType={UnitType.MediumRect}
/>
</ConstraintBox>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/build/Build.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ const Build: React.FC = () => {
<CenterBox>
<AdSpace
name={playwireUnitUnderPerkList}
unitType={UnitType.MediumRect300x250}
unitType={UnitType.MediumRect}
/>
</CenterBox>
</ConstraintBox>
Expand Down

0 comments on commit e7c4dbc

Please sign in to comment.